cmse: do not calculate the layout of a type with infer types by folkertdev · Pull Request #149269 · rust-lang/rust (original) (raw)
tracking issue: #81391
tracking issue: #75835
fixes #130104
Don't calculate the layout of a type with an infer type (_). This now emits LayoutError::Unknown, causing an error similar to when any other calling convention is used in this location.
The tests use separate functions because only the first such error in a function body is reported.
r? @davidtwco (might need some T-types assistance)