Reduce boilerplate around infallible folders
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user