Erase regions when confirming transmutability candidate

This commit is contained in:
Michael Goulet
2023-04-07 05:25:56 +00:00
parent 8a778ca1e3
commit f6bfb4bf8e
8 changed files with 88 additions and 44 deletions

View File

@@ -649,7 +649,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
// FIXME(transmutability): This really should be returning nested goals for `Answer::If*`
match rustc_transmute::TransmuteTypeEnv::new(self.infcx).is_transmutable(
ObligationCause::dummy(),
ty::Binder::dummy(src_and_dst),
src_and_dst,
scope,
assume,
) {