@@ -29,7 +29,7 @@ use rustc_middle::ty::{
29
29
} ;
30
30
use rustc_semver:: RustcVersion ;
31
31
use 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 } ;
33
33
use rustc_trait_selection:: infer:: InferCtxtExt as _;
34
34
use rustc_trait_selection:: traits:: { query:: evaluate_obligation:: InferCtxtExt as _, Obligation , ObligationCause } ;
35
35
use std:: collections:: VecDeque ;
@@ -990,7 +990,7 @@ fn binding_ty_auto_deref_stability<'tcx>(
990
990
cx. typeck_results ( ) . node_type ( ty. ty . hir_id ) ,
991
991
binder_args,
992
992
) )
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 ( ) ) ,
994
994
)
995
995
}
996
996
} ,
@@ -1005,7 +1005,7 @@ fn binding_ty_auto_deref_stability<'tcx>(
1005
1005
cx. typeck_results ( ) . node_type ( ty. ty . hir_id ) ,
1006
1006
binder_args,
1007
1007
) )
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 ( ) ) ,
1009
1009
) ,
1010
1010
TyKind :: OpaqueDef ( ..) | TyKind :: Infer | TyKind :: Typeof ( ..) | TyKind :: TraitObject ( ..) | TyKind :: Err => {
1011
1011
Position :: ReborrowStable ( precedence)
@@ -1297,7 +1297,7 @@ impl<'tcx> TyPosition<'tcx> {
1297
1297
fn position_for_result ( self , cx : & LateContext < ' tcx > ) -> Position {
1298
1298
match ( self . position , self . ty ) {
1299
1299
( 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 ) )
1301
1301
} ,
1302
1302
( position, _) => position,
1303
1303
}
@@ -1348,7 +1348,7 @@ fn ty_auto_deref_stability<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>, precedenc
1348
1348
| ty:: Tuple ( _)
1349
1349
| ty:: Projection ( _) => Position :: DerefStable (
1350
1350
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 ( ) ) ,
1352
1352
)
1353
1353
. into ( ) ,
1354
1354
} ;
0 commit comments