-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Normalize types when applying uninhabited predicate. #113103
Conversation
r? @davidtwco (rustbot has picked a reviewer for you, use r? to override) |
Should be fine. It's a shame that we don't normalize as we're descending the ADT though, and have to normalize on what's essentially an failure path of this logic. @bors r+ |
My first attempt was to normalize during substitution. This was conceptually nicer, but cumbersome because introduces a dependency on the param_env in that code path. |
Yeah, I fear it might negatively affect query caching if we now have |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#112207 (Add trustzone and virtualization target features for aarch32.) - rust-lang#112454 (Make compiletest aware of targets without dynamic linking) - rust-lang#112628 (Allow comparing `Box`es with different allocators) - rust-lang#112692 (Provide more context for `rustc +nightly -Zunstable-options` on stable) - rust-lang#112972 (Make `UnwindAction::Continue` explicit in MIR dump) - rust-lang#113020 (Add tests impl via obj unless denied) - rust-lang#113084 (Simplify some conditions) - rust-lang#113103 (Normalize types when applying uninhabited predicate.) r? `@ghost` `@rustbot` modify labels: rollup
Fixes #112997