rust/compiler/rustc_const_eval/src
Dylan DPC 32dde232d8
Rollup merge of #102559 - compiler-errors:issue-102553, r=oli-obk
Don't ICE when trying to copy unsized value in const prop

When we have a trivially false where-clause predicate like `Self: Sized` where `Self = dyn Trait`, we sometimes don't throw an error during typeck for an illegal operation such as copying an unsized type.

This, unfortunately, cannot be made into an error (at least not without some migration -- see #95611 for example), but we should at least not ICE, since this function will never actually be reachable from main, for example.

r? `@RalfJung` since I think you added these assertions? but feel free to reassign.

Fixes #102553
2022-10-04 16:11:02 +05:30
..
const_eval Refactor rustc lint API 2022-10-01 10:03:06 +00:00
interpret Don't ICE when trying to copy unsized value in const prop 2022-10-02 19:21:06 +00:00
transform Rollup merge of #102194 - fee1-dead-contrib:improve-const-drop, r=oli-obk 2022-09-25 22:06:39 +08:00
util Auto merge of #100064 - RalfJung:disaligned, r=petrochenkov 2022-08-03 16:09:56 +00:00
errors.rs UPDATE - rename DiagnosticHandler macro to Diagnostic 2022-09-21 11:39:53 -04:00
lib.rs Change feature name to is_some_and 2022-10-01 11:45:52 -05:00
might_permit_raw_init.rs fix ICE with extra-const-ub-checks 2022-08-21 20:00:38 -04:00