File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
rustc_trait_selection/src/traits/specialize Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ pub fn check_legal_trait_for_method_call(
53
53
} ;
54
54
return Err ( tcx. dcx ( ) . emit_err ( errors:: ExplicitDestructorCall { span, sugg } ) ) ;
55
55
}
56
- tcx. coherent_trait ( trait_id)
56
+ tcx. ensure ( ) . coherent_trait ( trait_id)
57
57
}
58
58
59
59
#[ derive( Debug ) ]
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ fn report_conflicting_impls<'tcx>(
446
446
match used_to_be_allowed {
447
447
None => {
448
448
let reported = if overlap. with_impl . is_local ( )
449
- || tcx. orphan_check_impl ( impl_def_id) . is_ok ( )
449
+ || tcx. ensure ( ) . orphan_check_impl ( impl_def_id) . is_ok ( )
450
450
{
451
451
let mut err = tcx. dcx ( ) . struct_span_err ( impl_span, msg) ;
452
452
err. code ( E0119 ) ;
You can’t perform that action at this time.
0 commit comments