Skip to content

Commit 007fa3b

Browse files
compiler-errorsGuillaumeGomez
authored andcommitted
Fix spans
1 parent 3eb2844 commit 007fa3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use rustc_middle::ty::layout::{
1717
};
1818
use rustc_middle::ty::{self, Instance, ParamEnv, PolyExistentialTraitRef, Ty, TyCtxt};
1919
use rustc_session::Session;
20-
use rustc_span::{source_map::respan, Span};
20+
use rustc_span::{source_map::respan, Span, DUMMY_SP};
2121
use rustc_target::abi::{
2222
call::FnAbi, HasDataLayout, PointeeInfo, Size, TargetDataLayout, VariantIdx,
2323
};
@@ -494,7 +494,7 @@ impl<'gcc, 'tcx> MiscMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
494494
ty::ParamEnv::reveal_all(),
495495
def_id,
496496
ty::List::empty(),
497-
None,
497+
DUMMY_SP,
498498
);
499499

500500
let symbol_name = tcx.symbol_name(instance).name;

0 commit comments

Comments
 (0)