File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
compiler/rustc_trait_selection/src/solve/eval_ctxt Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ use rustc_infer::infer::canonical::{CanonicalExt, QueryRegionConstraints};
2121use rustc_infer:: infer:: resolve:: EagerResolver ;
2222use rustc_infer:: infer:: type_variable:: TypeVariableOrigin ;
2323use rustc_infer:: infer:: RegionVariableOrigin ;
24- use rustc_infer:: infer:: { InferCtxt , InferOk } ;
24+ use rustc_infer:: infer:: { InferCtxt , } ;
2525use rustc_infer:: traits:: solve:: NestedNormalizationGoals ;
2626use rustc_middle:: infer:: canonical:: Canonical ;
2727use rustc_middle:: infer:: unify_key:: ConstVariableOrigin ;
@@ -347,12 +347,10 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
347347
348348 let cause = ObligationCause :: dummy ( ) ;
349349 for ( & orig, response) in iter:: zip ( original_values, var_values. var_values ) {
350- let InferOk { value : ( ) , obligations } = infcx
350+ let _ = infcx
351351 . at ( & cause, param_env)
352352 . trace ( orig, response)
353- . eq_structurally_relating_aliases ( orig, response)
354- . unwrap ( ) ;
355- assert ! ( obligations. is_empty( ) ) ;
353+ . eq_structurally_relating_aliases ( orig, response) ;
356354 }
357355 }
358356
You can’t perform that action at this time.
0 commit comments