diff options
| author | Waffle Lapkin <waffle.lapkin@gmail.com> | 2025-01-16 14:24:35 +0100 |
|---|---|---|
| committer | Waffle Lapkin <waffle.lapkin@gmail.com> | 2025-03-08 14:49:47 +0100 |
| commit | b62d58f5415032291863d6b20654e86fcb7c4aea (patch) | |
| tree | 88575fa3550185cb455268db01a73e05ccecef1b /compiler/rustc_pattern_analysis/src | |
| parent | 5712d2e956e592bc4184e9c28cda9cfb5975a3db (diff) | |
| download | rust-b62d58f5415032291863d6b20654e86fcb7c4aea.tar.gz rust-b62d58f5415032291863d6b20654e86fcb7c4aea.zip | |
check that `UnsizeCoerce` may hold before trying unsizing coercion
this prevents us from trying unsizing coercion in cases like `*const W<dyn T>` -> `*const dyn T`, where it would later cause a compilation error since `W<dyn T>: Sized` and `W<dyn T>: T` do not hold.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
