implement type-changing-struct-update

put the test dir in test/ui/rfcs
This commit is contained in:
SparrowLii
2021-10-19 11:08:12 +08:00
parent 41d8c94d45
commit 7bde18a0f3
10 changed files with 275 additions and 29 deletions

View File

@@ -602,6 +602,7 @@ impl<'a, 'tcx> Lift<'tcx> for ty::error::TypeError<'a> {
TupleSize(x) => TupleSize(x),
FixedArraySize(x) => FixedArraySize(x),
ArgCount => ArgCount,
FieldMisMatch(x, y) => FieldMisMatch(x, y),
RegionsDoesNotOutlive(a, b) => {
return tcx.lift((a, b)).map(|(a, b)| RegionsDoesNotOutlive(a, b));
}