Reduce boilerplate around infallible folders

This commit is contained in:
Alan Egerton
2021-12-01 00:55:57 +00:00
parent db7295fa96
commit bfc434b6d0
41 changed files with 898 additions and 727 deletions

View File

@@ -94,8 +94,7 @@ pub fn equal_up_to_regions(
// Leave consts and types unchanged.
ct_op: |ct| ct,
ty_op: |ty| ty,
})
.into_ok(),
}),
)
};
tcx.infer_ctxt().enter(|infcx| infcx.can_eq(param_env, normalize(src), normalize(dest)).is_ok())