-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Reword E0392 slightly #64931
Reword E0392 slightly #64931
Conversation
Make it clearer that a type or lifetime argument not being used can be fixed by referencing it in a struct's fields, not just using `PhathomData`.
(rust_highfive has picked a reviewer for you, use r? to override) |
r=me with Centril's comment addressed |
Seems like some submodules were accidentally updated? |
0ed41de
to
a180294
Compare
@Centril sigh, cleaned up |
@bors r=matthewjasper,Centril rollup |
📌 Commit a180294 has been approved by |
…ewjasper,Centril Reword E0392 slightly Make it clearer that a type or lifetime argument not being used can be fixed by referencing it in a struct's fields, not just using `PhathomData`. CC rust-lang#53589.
…ewjasper,Centril Reword E0392 slightly Make it clearer that a type or lifetime argument not being used can be fixed by referencing it in a struct's fields, not just using `PhathomData`. CC rust-lang#53589.
Rollup of 7 pull requests Successful merges: - #63678 (Improve HRTB error span when -Zno-leak-check is used) - #64931 (Reword E0392 slightly) - #64959 (syntax: improve parameter without type suggestions) - #64975 (Implement Clone::clone_from for LinkedList) - #64993 (BacktraceStatus: add Eq impl) - #64998 (Filter out RLS output directories on tidy runs) - #65010 (Compare `primary` with maximum of `children`s' line num instead of dropping it) Failed merges: r? @ghost
} | ||
let msg = if let Some(def_id) = suggested_marker_id { | ||
format!( | ||
"consider removing `{}`, refering to it in a field, or using a marker such as `{}`", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be referring
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And so on in other locations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should yes, but let's fix it in a follow-up (pending rollup...)
typo: fix typo in E0392 See rust-lang#64931. --- Cc: @Centril @estebank
typo: fix typo in E0392 See rust-lang#64931. --- Cc: @Centril @estebank
typo: fix typo in E0392 See rust-lang#64931. --- Cc: @Centril @estebank
typo: fix typo in E0392 See rust-lang#64931. --- Cc: @Centril @estebank
Make it clearer that a type or lifetime argument not being used can be
fixed by referencing it in a struct's fields, not just using
PhathomData
.CC #53589.