rust/compiler
bors fb3ea63d9b Auto merge of #86245 - lqd:const-ub-align, r=RalfJung
Fix ICEs on invalid vtable size/alignment const UB errors

The invalid vtable size/alignment errors from `InterpCx::read_size_and_align_from_vtable` were "freeform const UB errors", causing ICEs when reaching validation. This PR turns them into const UB hard errors to catch them during validation and avoid that.

Fixes #86193

r? `@RalfJung`

(It seemed cleaner to have 2 variants but they can be merged into one variant with a message payload if you prefer that ?)
2021-06-13 12:08:59 +00:00
..
2021-05-24 11:07:48 -04:00
2021-05-24 11:07:48 -04:00
2021-06-04 13:20:05 +02:00
2021-06-07 14:20:39 +02:00
2021-06-11 12:25:02 +02:00
2021-05-24 11:07:48 -04:00
2021-05-31 13:55:43 +02:00
2021-05-24 11:07:48 -04:00
2021-06-10 17:10:40 +10:00
2021-05-31 13:55:43 +02:00