-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Add Explanation For Error E0772 #88205
Conversation
Some changes occurred in diagnostic error codes |
r? @nagisa (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
@rustbot label +S-waiting-on-author -S-waiting-on-review I can't get tests to work on my machine right now, I'll fix this later today probably |
No worries, whenever you have the time. Ping me once it's updated so I can review. |
@rustbot label -S-waiting-on-author +S-waiting-on-review |
This comment has been minimized.
This comment has been minimized.
Ah. Is using hashtags to hide code fine? |
Yes it is. |
☔ The latest upstream changes (presumably #88556) made this pull request unmergeable. Please resolve the merge conflicts. |
triage: |
@@ -5,7 +5,7 @@ | |||
// /!\ IMPORTANT /!\ | |||
// | |||
// Error messages' format must follow the RFC 1567 available here: | |||
// /~https://github.com/rust-lang/rfcs/pull/1567 | |||
// /~https://github.com/rust-lang/rfcs/blob/master/text/1567-long-error-codes-explanation-normalization.md |
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.
Please don't change that, or at least not part of this PR.
@@ -0,0 +1,87 @@ | |||
A pointer to a trait object has some specific lifetime `'1`, but the trait |
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.
Talking about pointers here is a bit off the plate and introduce unneeded complexity in my opinion.
``` | ||
|
||
The trait object `person` in the function `get_is_cool`, while already being | ||
behind a pointer with lifetime `'p`, also has it's own lifetime, `'2`. |
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.
If you're using "pointer" instead of "reference", then please replace pointer
with reference
.
triage: |
Hello, it has been a while. I apologize for my procrastination, I know it's not professional. |
📌 Commit 4f8b9a4 has been approved by |
…askrgr Rollup of 8 pull requests Successful merges: - rust-lang#88205 (Add Explanation For Error E0772) - rust-lang#92274 (Add `intrinsics::const_deallocate`) - rust-lang#93236 (Make `NonNull::new` `const`) - rust-lang#93299 (Fix dot separator when there is no source link) - rust-lang#93410 (kmc-solid: Implement `net::FileDesc::duplicate`) - rust-lang#93424 (fix nit) - rust-lang#93431 (remove unused `jemallocator` crate) - rust-lang#93453 (Add GUI theme change test) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
I've added an error explanation for the error code E0772.
Assists with #61137