File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ rustc_queries! {
501
501
desc { |tcx| "unsafety-checking `{}`" , tcx. def_path_str( key. to_def_id( ) ) }
502
502
cache_on_disk_if { true }
503
503
}
504
- query unsafety_check_result_const_arg ( key: ( LocalDefId , DefId ) ) -> & ' tcx mir:: UnsafetyCheckResult {
504
+ query unsafety_check_result_for_const_arg ( key: ( LocalDefId , DefId ) ) -> & ' tcx mir:: UnsafetyCheckResult {
505
505
desc {
506
506
|tcx| "unsafety-checking the const argument `{}`" ,
507
507
tcx. def_path_str( key. 0 . to_def_id( ) )
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ pub(crate) fn provide(providers: &mut Providers) {
493
493
unsafety_check_result : |tcx, def_id| {
494
494
unsafety_check_result ( tcx, ty:: WithOptConstParam :: unknown ( def_id) )
495
495
} ,
496
- unsafety_check_result_const_arg : |tcx, ( did, param_did) | {
496
+ unsafety_check_result_for_const_arg : |tcx, ( did, param_did) | {
497
497
unsafety_check_result (
498
498
tcx,
499
499
ty:: WithOptConstParam { did, const_param_did : Some ( param_did) } ,
@@ -553,7 +553,7 @@ fn unsafety_check_result<'tcx>(
553
553
) -> & ' tcx UnsafetyCheckResult {
554
554
if def. const_param_did . is_none ( ) {
555
555
if let Some ( param_did) = tcx. opt_const_param_of ( def. did ) {
556
- return tcx. unsafety_check_result_const_arg ( ( def. did , param_did) ) ;
556
+ return tcx. unsafety_check_result_for_const_arg ( ( def. did , param_did) ) ;
557
557
}
558
558
}
559
559
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ fn mir_const<'tcx>(
274
274
275
275
// Unsafety check uses the raw mir, so make sure it is run.
276
276
if let Some ( param_did) = def. const_param_did {
277
- tcx. ensure ( ) . unsafety_check_result_const_arg ( ( def. did , param_did) ) ;
277
+ tcx. ensure ( ) . unsafety_check_result_for_const_arg ( ( def. did , param_did) ) ;
278
278
} else {
279
279
tcx. ensure ( ) . unsafety_check_result ( def. did ) ;
280
280
}
You can’t perform that action at this time.
0 commit comments