diff options
| author | Alan Egerton <eggyal@gmail.com> | 2021-12-01 00:55:57 +0000 |
|---|---|---|
| committer | Alan Egerton <eggyal@gmail.com> | 2021-12-02 16:14:16 +0000 |
| commit | bfc434b6d0e64dab88def4c5282eeb4a294faf76 (patch) | |
| tree | 82df3c0e564f6e72abdc13b32b39c8a768dbd513 /compiler/rustc_const_eval/src/transform | |
| parent | db7295fa960a729a4577e0e206f7a3a5a472addb (diff) | |
| download | rust-bfc434b6d0e64dab88def4c5282eeb4a294faf76.tar.gz rust-bfc434b6d0e64dab88def4c5282eeb4a294faf76.zip | |
Reduce boilerplate around infallible folders
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/validate.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs index c86c8f81dbd..b4bb6390db4 100644 --- a/compiler/rustc_const_eval/src/transform/validate.rs +++ b/compiler/rustc_const_eval/src/transform/validate.rs @@ -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()) |
