Don't concatenate binders across types

This commit is contained in:
Jack Huey
2021-04-05 00:10:09 -04:00
parent 4fdac23f31
commit 1a14315975
4 changed files with 215 additions and 86 deletions

View File

@@ -751,9 +751,10 @@ fn sanitize_witness<'tcx>(
span_bug!(
body.span,
"Broken MIR: generator contains type {} in MIR, \
but typeck only knows about {}",
decl.ty,
witness,
but typeck only knows about {} and {:?}",
decl_ty,
allowed,
allowed_upvars
);
}
}