-
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 TooGeneric
variant to LayoutError
and emit Unknown
#135158
Conversation
HIR ty lowering was modified cc @fmease |
Feel free to ask me anything. |
This comment has been minimized.
This comment has been minimized.
(The fluent slug needs to be sorted lexicographically) |
5a546aa
to
6d48c1a
Compare
seems somewhat unfortunate diagnostics-wise because:
Introducing this Anyway, cc @lukas-code. |
This comment has been minimized.
This comment has been minimized.
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.
In particular, let me know if you would like the addition of a test within the
tests/ui/layout/
folder.
Yes, this definitely needs tests, for both of the issues. See here for a guide on adding tests.
6d48c1a
to
fc6c929
Compare
This comment has been minimized.
This comment has been minimized.
3463d0f
to
3d8a88a
Compare
This comment has been minimized.
This comment has been minimized.
3d8a88a
to
0ef08fb
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5a0ba5d
to
514360b
Compare
Some changes occurred to the CTFE machinery cc @rust-lang/wg-const-eval |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
17b87fd
to
32cdc4d
Compare
This comment has been minimized.
This comment has been minimized.
32cdc4d
to
d09c4e4
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment has been minimized.
This comment has been minimized.
997c3f4
to
888d7c0
Compare
This comment has been minimized.
This comment has been minimized.
888d7c0
to
768fef5
Compare
@oli-obk I don't want to sound pushy, but I think this PR may be merged. Currently I think Lukas doesn't have much time to do the last review. What can we do in this situation? |
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.
Thank you, the implementation LGTM now!
The PR description needs to be updated and I have a few minor remarks, then I think this is ready to merge.
d61d19c
to
cef97bc
Compare
@bors r+ |
Add `TooGeneric` variant to `LayoutError` and emit `Unknown` What's in this PR? - Add `TooGeneric` variant to `LayoutError` and emit `Unknown` one With this PR these issues and their respective ICEs are resolved: - fixes rust-lang#135020 - fixes rust-lang#135138
Rollup of 8 pull requests Successful merges: - rust-lang#126604 (Uplift `clippy::double_neg` lint as `double_negations`) - rust-lang#135158 (Add `TooGeneric` variant to `LayoutError` and emit `Unknown`) - rust-lang#135635 (Move `std::io::pipe` code into its own file) - rust-lang#136072 (add two old crash tests) - rust-lang#136079 (compiler_fence: fix example) - rust-lang#136091 (Add some tracing to core bootstrap logic) - rust-lang#136097 (rustc_ast: replace some len-checks + indexing with slice patterns etc.) - rust-lang#136101 (triagebot: set myself on vacation) r? `@ghost` `@rustbot` modify labels: rollup
- `check-pass` test for a MRE of rust-lang#135020 - fail test for rust-lang#135138 - switch to `TooGeneric` for checking CMSE fn signatures - switch to `TooGeneric` for compute `SizeSkeleton` (for transmute) - fix broken tests
cef97bc
to
246bf1f
Compare
@FedericoBruzzone please do not push after this has been approved! This is already being tested in #136116 and your new commit won't get merged. @bors r- (but the rollup can continue for now) |
Unfortunately I had this commit on master, I am working on another PR and mistakenly pushed :/ |
Rollup merge of rust-lang#135158 - FedericoBruzzone:master, r=lukas-code Add `TooGeneric` variant to `LayoutError` and emit `Unknown` What's in this PR? - Add `TooGeneric` variant to `LayoutError` and emit `Unknown` one With this PR these issues and their respective ICEs are resolved: - fixes rust-lang#135020 - fixes rust-lang#135138
Closing as this has been merged in #136116. |
What's in this PR?
TooGeneric
variant toLayoutError
and emitUnknown
oneWith this PR these issues and their respective ICEs are resolved:
encountered unexpected unsized field in layout of
#135020