Reduce boilerplate around infallible folders
This commit is contained in:
parent
db7295fa96
commit
bfc434b6d0
41 changed files with 898 additions and 727 deletions
|
@ -23,7 +23,6 @@ Rust MIR: a lowered representation of Rust.
|
|||
#![feature(trusted_len)]
|
||||
#![feature(trusted_step)]
|
||||
#![feature(try_blocks)]
|
||||
#![feature(unwrap_infallible)]
|
||||
#![recursion_limit = "256"]
|
||||
|
||||
#[macro_use]
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue