-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
"unexpected end of macro invocation" error has a bogus span #12779
Comments
Closing as a dupe of #7970 |
fasterthanlime
pushed a commit
to fasterthanlime/rust
that referenced
this issue
Jul 22, 2022
…=Veykril fix: Correctly generate default `PartialEq::ne` Fixes rust-lang#12779 For the `Generate default members` assist on the `PartialEq` trait, the assist will now give the default implementation instead of generating a function.
fasterthanlime
pushed a commit
to fasterthanlime/rust
that referenced
this issue
Jul 26, 2022
…gen, r=Veykril fix: don't replace default members' body cc rust-lang#12779, rust-lang#12821 addresses rust-lang/rust-analyzer#12821 (comment) `gen_trait_fn_body()` only attempts to implement required trait member functions, so we shouldn't call it for `Implement default members` assist. This patch also documents the precondition of `gen_trait_fn_body()` and inserts `debug_assert!`, but I'm not entirely sure if the assertions are appropriate.
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
May 17, 2024
…ntic, r=y21 `assigning_clones`: move to `pedantic` so it is allow by default In a nutshell, the `assigning_clones` lint suggests to make your code less readable for a small performance gain. See rust-lang#12778 for more motivation. fixes rust-lang#12778 changelog: [`assigning_clones`]: move to the `pedantic` group
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does anyone know if this has ever worked? Did the recent change to spans break zero-width ones?
The text was updated successfully, but these errors were encountered: