-
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 E0587 #65563
Add long error explanation for E0587 #65563
Conversation
src/librustc_typeck/error_codes.rs
Outdated
@@ -3891,6 +3891,25 @@ details. | |||
[issue #33685]: https://github.com/rust-lang/rust/issues/33685 | |||
"##, | |||
|
|||
E0587: r##" | |||
A type has conflicting packed and align representation hints. |
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.
The word conflicting here suggests that the hints are in conflict by value rather than inherently because they conflict by mere existence. It may be better to simplify this sentence thusly:
A type has conflicting packed and align representation hints. | |
A type has both `packed` and `align` representation hints. |
And then allow the subsequent paragraph to explain that you can't have them
r? @Dylan-DPC |
2aa6201
to
53a7c70
Compare
Updated! |
☔ The latest upstream changes (presumably #65716) made this pull request unmergeable. Please resolve the merge conflicts. |
53a7c70
to
42a805e
Compare
Ping form triage - this looks like it's ready for review Thanks! |
Thanks @JohnCSimon @bors r+ rollup |
📌 Commit 42a805e has been approved by |
…-E0587, r=Dylan-DPC Add long error explanation for E0587 Part of rust-lang#61137. r? @kinnison
…-E0587, r=Dylan-DPC Add long error explanation for E0587 Part of rust-lang#61137. r? @kinnison
Rollup of 9 pull requests Successful merges: - #65563 (Add long error explanation for E0587) - #65640 (Use heuristics to recover parsing of missing `;`) - #65643 (Correct handling of type flags with `ConstValue::Placeholder`) - #65825 (rustc: use IndexVec<DefIndex, T> instead of Vec<T>.) - #65858 (suggest `const_in_array_repeat_expression` flag) - #65877 (doc: introduce `once` in `iter::chain` document) - #65887 (doc: mention `get(_mut)` in Vec) - #65891 (self-profiling: Record something more useful for crate metadata generation event.) - #65893 (Output previous stable error messaging when using stable build.) Failed merges: r? @ghost
Part of #61137.
r? @kinnison