-
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
Add long error explanation for E0550 #64838
Add long error explanation for E0550 #64838
Conversation
Some changes occurred in diagnostic error codes |
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
src/libsyntax/error_codes.rs
Outdated
The `deprecated` attribute can only be present **once** on an item. | ||
|
||
``` | ||
#[deprecated(note = "because why not?")] |
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.
#[deprecated(note = "because why not?")] | |
#[deprecated(note = "because why not, right?")] |
maybe something like this would suggest merging the two attributes into one
src/libsyntax/error_codes.rs
Outdated
@@ -144,6 +144,25 @@ fn deprecated_function() {} | |||
``` | |||
"##, | |||
|
|||
E0550: r##" | |||
More than one `deprecated` attribute have been put on an item. |
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.
More than one `deprecated` attribute have been put on an item. | |
More than one `deprecated` attribute has been put on an item. |
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.
r=me with nits resolved
r? @oli-obk |
4733f29
to
e67ae0e
Compare
Nits resolved, tests passed. @bors: r=oli-obk |
📌 Commit e67ae0e has been approved by |
⌛ Testing commit e67ae0e with merge d78d6188048f40cd938e70990a85395777708698... |
…-e0550, r=oli-obk Add long error explanation for E0550 Part of rust-lang#61137
@bors retry rolled up |
…-e0550, r=oli-obk Add long error explanation for E0550 Part of rust-lang#61137
Rollup of 9 pull requests Successful merges: - #64377 (Add long error explanation for E0493) - #64786 (Use https for curl when building for linux) - #64828 (Graphviz debug output for generic dataflow analysis) - #64838 (Add long error explanation for E0550) - #64891 (Fix `vec![x; n]` with null raw fat pointer zeroing the pointer metadata) - #64893 (Zero-initialize `vec![None; n]` for `Option<&T>`, `Option<&mut T>` and `Option<Box<T>>`) - #64911 (Fixed a misleading documentation issue #64844) - #64921 (Add test for issue-64662) - #64923 (Add missing links for mem::needs_drop) Failed merges: - #64918 (Add long error explanation for E0551) r? @ghost
Part of #61137