Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a pretty printer crash on /***. #12586

Conversation

chris-morgan
Copy link
Member

The pretty printer was treating block comments with more than two
asterisks after the first slash (e.g. /***) as doc comments (which are
attributes), whereas in actual fact they are just regular comments.

The pretty printer was treating block comments with more than two
asterisks after the first slash (e.g. `/***`) as doc comments (which are
attributes), whereas in actual fact they are just regular comments.
bors added a commit that referenced this pull request Feb 27, 2014
…star-star-crash, r=alexcrichton

The pretty printer was treating block comments with more than two
asterisks after the first slash (e.g. `/***`) as doc comments (which are
attributes), whereas in actual fact they are just regular comments.
@bors bors closed this Feb 27, 2014
@bors bors merged commit e6b032a into rust-lang:master Feb 27, 2014
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 2, 2024
fix [`large_stack_arrays`] linting in `vec` macro

fixes: rust-lang#12586

this PR also adds a wrapper function `matching_root_macro_call` to `clippy_utils::macros`, considering how often that same pattern appears in the codebase.

(I'm always very indecisive towards naming, so, if anyone have better idea of how that function should be named, feel free to suggest it)

---

changelog: fix [`large_stack_arrays`] linting in `vec` macro; add `matching_root_macro_call` to clippy_utils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants