@@ -12,7 +12,7 @@ use rustc_index::bit_set::BitSet;
1212use rustc_index:: vec:: { Idx , IndexVec } ;
1313use rustc_session:: { DataTypeKind , FieldInfo , SizeKind , VariantInfo } ;
1414use rustc_span:: symbol:: { Ident , Symbol } ;
15- use rustc_span:: DUMMY_SP ;
15+ use rustc_span:: DUMMY_SPID ;
1616use rustc_target:: abi:: call:: {
1717 ArgAbi , ArgAttribute , ArgAttributes , Conv , FnAbi , PassMode , Reg , RegKind ,
1818} ;
@@ -535,7 +535,7 @@ impl<'tcx> LayoutCx<'tcx, TyCtxt<'tcx>> {
535535 }
536536
537537 let pointee = tcx. normalize_erasing_regions ( param_env, pointee) ;
538- if pointee. is_sized ( tcx. at ( DUMMY_SP ) , param_env) {
538+ if pointee. is_sized ( tcx. at ( DUMMY_SPID ) , param_env) {
539539 return Ok ( tcx. intern_layout ( Layout :: scalar ( self , data_ptr) ) ) ;
540540 }
541541
@@ -798,7 +798,7 @@ impl<'tcx> LayoutCx<'tcx, TyCtxt<'tcx>> {
798798 let param_env = tcx. param_env ( def. did ) ;
799799 let last_field = def. variants [ v] . fields . last ( ) . unwrap ( ) ;
800800 let always_sized =
801- tcx. type_of ( last_field. did ) . is_sized ( tcx. at ( DUMMY_SP ) , param_env) ;
801+ tcx. type_of ( last_field. did ) . is_sized ( tcx. at ( DUMMY_SPID ) , param_env) ;
802802 if !always_sized {
803803 StructKind :: MaybeUnsized
804804 } else {
@@ -2160,7 +2160,7 @@ where
21602160
21612161 ty:: Ref ( _, ty, mt) if offset. bytes ( ) == 0 => {
21622162 let tcx = cx. tcx ( ) ;
2163- let is_freeze = ty. is_freeze ( tcx, cx. param_env ( ) , DUMMY_SP ) ;
2163+ let is_freeze = ty. is_freeze ( tcx, cx. param_env ( ) , DUMMY_SPID ) ;
21642164 let kind = match mt {
21652165 hir:: Mutability :: Not => {
21662166 if is_freeze {
0 commit comments