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(
5353 } ;
5454 return Err ( tcx. dcx ( ) . emit_err ( errors:: ExplicitDestructorCall { span, sugg } ) ) ;
5555 }
56- tcx. coherent_trait ( trait_id)
56+ tcx. ensure ( ) . coherent_trait ( trait_id)
5757}
5858
5959#[ derive( Debug ) ]
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ fn report_conflicting_impls<'tcx>(
446446 match used_to_be_allowed {
447447 None => {
448448 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 ( )
450450 {
451451 let mut err = tcx. dcx ( ) . struct_span_err ( impl_span, msg) ;
452452 err. code ( E0119 ) ;
You can’t perform that action at this time.
0 commit comments