@@ -29,7 +29,7 @@ use rustc_middle::ty::{
2929} ;
3030use rustc_semver:: RustcVersion ;
3131use rustc_session:: { declare_tool_lint, impl_lint_pass} ;
32- use rustc_span:: { symbol:: sym, Span , Symbol , DUMMY_SP } ;
32+ use rustc_span:: { symbol:: sym, Span , Symbol } ;
3333use rustc_trait_selection:: infer:: InferCtxtExt as _;
3434use rustc_trait_selection:: traits:: { query:: evaluate_obligation:: InferCtxtExt as _, Obligation , ObligationCause } ;
3535use std:: collections:: VecDeque ;
@@ -990,7 +990,7 @@ fn binding_ty_auto_deref_stability<'tcx>(
990990 cx. typeck_results ( ) . node_type ( ty. ty . hir_id ) ,
991991 binder_args,
992992 ) )
993- . is_sized ( cx. tcx . at ( DUMMY_SP ) , cx. param_env . without_caller_bounds ( ) ) ,
993+ . is_sized ( cx. tcx , cx. param_env . without_caller_bounds ( ) ) ,
994994 )
995995 }
996996 } ,
@@ -1005,7 +1005,7 @@ fn binding_ty_auto_deref_stability<'tcx>(
10051005 cx. typeck_results ( ) . node_type ( ty. ty . hir_id ) ,
10061006 binder_args,
10071007 ) )
1008- . is_sized ( cx. tcx . at ( DUMMY_SP ) , cx. param_env . without_caller_bounds ( ) ) ,
1008+ . is_sized ( cx. tcx , cx. param_env . without_caller_bounds ( ) ) ,
10091009 ) ,
10101010 TyKind :: OpaqueDef ( ..) | TyKind :: Infer | TyKind :: Typeof ( ..) | TyKind :: TraitObject ( ..) | TyKind :: Err => {
10111011 Position :: ReborrowStable ( precedence)
@@ -1297,7 +1297,7 @@ impl<'tcx> TyPosition<'tcx> {
12971297 fn position_for_result ( self , cx : & LateContext < ' tcx > ) -> Position {
12981298 match ( self . position , self . ty ) {
12991299 ( Position :: ReborrowStable ( precedence) , Some ( ty) ) => {
1300- Position :: DerefStable ( precedence, ty. is_sized ( cx. tcx . at ( DUMMY_SP ) , cx. param_env ) )
1300+ Position :: DerefStable ( precedence, ty. is_sized ( cx. tcx , cx. param_env ) )
13011301 } ,
13021302 ( position, _) => position,
13031303 }
@@ -1348,7 +1348,7 @@ fn ty_auto_deref_stability<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>, precedenc
13481348 | ty:: Tuple ( _)
13491349 | ty:: Projection ( _) => Position :: DerefStable (
13501350 precedence,
1351- ty. is_sized ( cx. tcx . at ( DUMMY_SP ) , cx. param_env . without_caller_bounds ( ) ) ,
1351+ ty. is_sized ( cx. tcx , cx. param_env . without_caller_bounds ( ) ) ,
13521352 )
13531353 . into ( ) ,
13541354 } ;
0 commit comments