about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorWaffle Lapkin <waffle.lapkin@gmail.com>2025-01-16 14:24:35 +0100
committerWaffle Lapkin <waffle.lapkin@gmail.com>2025-03-08 14:49:47 +0100
commitb62d58f5415032291863d6b20654e86fcb7c4aea (patch)
tree88575fa3550185cb455268db01a73e05ccecef1b /compiler/rustc_pattern_analysis/src
parent5712d2e956e592bc4184e9c28cda9cfb5975a3db (diff)
downloadrust-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