diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2022-09-19 22:03:59 -0500 | 
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2022-10-07 07:10:40 -0500 | 
| commit | 283abbf0e7d20176f76006825b5c52e9a4234e4c (patch) | |
| tree | 169a55f89da9def5accb58df926ef0efd1cdf46d /compiler/rustc_const_eval/src/transform/validate.rs | |
| parent | 91269fa5b8a7272a2a45b0b5e8a6fa4be24fe96a (diff) | |
| download | rust-283abbf0e7d20176f76006825b5c52e9a4234e4c.tar.gz rust-283abbf0e7d20176f76006825b5c52e9a4234e4c.zip | |
Change InferCtxtBuilder from enter to build
Diffstat (limited to 'compiler/rustc_const_eval/src/transform/validate.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/validate.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs index 9c95ffca19b..23276e60982 100644 --- a/compiler/rustc_const_eval/src/transform/validate.rs +++ b/compiler/rustc_const_eval/src/transform/validate.rs @@ -105,7 +105,7 @@ pub fn equal_up_to_regions<'tcx>( }, ) }; - tcx.infer_ctxt().enter(|infcx| infcx.can_eq(param_env, normalize(src), normalize(dest)).is_ok()) + tcx.infer_ctxt().build().can_eq(param_env, normalize(src), normalize(dest)).is_ok() } struct TypeChecker<'a, 'tcx> { | 
