Closed saethlin closed 3 months ago
That's this assertion.
Fun, so after normalization the type of the argument and the type given in the function signature at the call site do not have the same layout. That's clearly invalid MIR, I think an ICE is a completely appropriate reaction to that.
Makes sense. I'll close this and just post a comment on the precipitating issue.
The following code is the reproducer for https://github.com/rust-lang/rust/issues/57893, but with a little
main
to actually run it. I found this example by testing https://crates.io/crates/transmutter.This ICEs Miri: