Skip to content

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