File tree 1 file changed +4
-4
lines changed
compiler/rustc_trait_selection/src/traits/specialize
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -269,11 +269,11 @@ pub(super) fn specializes(
269
269
return false ;
270
270
}
271
271
272
- // create a parameter environment corresponding to an identity instantiation of impl1 ,
273
- // i.e. the most generic instantiation of impl1 .
272
+ // create a parameter environment corresponding to an identity instantiation of the specializing impl ,
273
+ // i.e. the most generic instantiation of the specializing impl .
274
274
let param_env = tcx. param_env ( specializing_impl_def_id) ;
275
275
276
- // Create an infcx, taking the predicates of impl1 as assumptions:
276
+ // Create an infcx, taking the predicates of the specializing impl as assumptions:
277
277
let infcx = tcx. infer_ctxt ( ) . build ( TypingMode :: non_body_analysis ( ) ) ;
278
278
279
279
let specializing_impl_trait_ref =
@@ -284,7 +284,7 @@ pub(super) fn specializes(
284
284
param_env, specializing_impl_trait_ref, parent_impl_def_id
285
285
) ;
286
286
287
- // Attempt to prove that impl2 applies, given all of the above.
287
+ // Attempt to prove that the parent impl applies, given all of the above.
288
288
289
289
let ocx = ObligationCtxt :: new ( & infcx) ;
290
290
let specializing_impl_trait_ref = ocx. normalize ( cause, param_env, specializing_impl_trait_ref) ;
You can’t perform that action at this time.
0 commit comments