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 rust-mode font lock for macros using [] #14094

Closed

Conversation

tomjakubowski
Copy link
Contributor

This makes vec![] highlight the same as vec!() or vec!{}.

This makes `vec![]` highlight the same as `vec!()` or `vec!{}`.
@tomjakubowski
Copy link
Contributor Author

dupe of #14087

bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 13, 2023
Reuse fetching target data layout from rustc function

fix rust-lang/rust-analyzer#14087
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 20, 2025
…rust-lang#14094)

close rust-lang#12157

`needless_return` sometimes makes incorrect suggestions by omitting
necessary enclosing parentheses. This PR resolves the issue by using
`clippy_utils::sugg::Sugg`.

changelog: [`needless_return`]: now makes correct suggestions which
require enclosing parentheses
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.

1 participant