-
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
Fix ICE when ADT tail has type error #124057
Conversation
rustbot has assigned @compiler-errors. Use |
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.
I don't like putting this fix here. It feels redundant -- recomputing the tail just to check if it has errors. Can you integrate it into one of the branches below?
Also, why did you choose to handle it here rather than just handle it in the size skeleton code where the ICE actually occurs?
bdfddb3
to
f83793c
Compare
Yes, it's better to put it in the size skeleton location. I've moved it there now. |
@rustbot label -S-waiting-on-author +S-waiting-on-review |
@bors r+ |
…=compiler-errors Fix ICE when ADT tail has type error Fixes rust-lang#124031
…=compiler-errors Fix ICE when ADT tail has type error Fixes rust-lang#124031
this probably needs rebase and fixes another ICE |
@bors r- |
f83793c
to
7e20f0f
Compare
Rebased and removed the crash test tests/crashes/124031.rs |
7e20f0f
to
06cd79b
Compare
@rustbot label -S-waiting-on-author +S-waiting-on-review |
@bors r+ |
…=compiler-errors Fix ICE when ADT tail has type error Fixes rust-lang#124031
…llaumeGomez Rollup of 5 pull requests Successful merges: - rust-lang#104087 (Stabilise inline_const) - rust-lang#123792 (Require explicitly marking closures as coroutines) - rust-lang#124057 (Fix ICE when ADT tail has type error) - rust-lang#124178 ([cleanup] [llvm backend] Prevent creating the same `Instance::mono` multiple times) - rust-lang#124220 (Miri: detect wrong vtables in wide pointers) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#123680 (Deny gen keyword in `edition_2024_compat` lints) - rust-lang#124057 (Fix ICE when ADT tail has type error) - rust-lang#124168 (Use `DefiningOpaqueTypes::Yes` in rustdoc, where the `InferCtxt` is guaranteed to have no opaque types it can define) - rust-lang#124197 (Move duplicated code in functions in `tests/rustdoc-gui/notable-trait.goml`) - rust-lang#124200 (Improve handling of expr->field errors) - rust-lang#124220 (Miri: detect wrong vtables in wide pointers) - rust-lang#124266 (remove an unused type from the reentrant lock tests) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#124057 - gurry:124031-ice-layout-errored, r=compiler-errors Fix ICE when ADT tail has type error Fixes rust-lang#124031
Fixes #124031