Fix spans

This commit is contained in:
Michael Goulet 2024-07-01 16:32:32 -04:00 committed by Guillaume Gomez
parent 3eb28444b5
commit 007fa3b94e

View File

@ -17,7 +17,7 @@
}; };
use rustc_middle::ty::{self, Instance, ParamEnv, PolyExistentialTraitRef, Ty, TyCtxt}; use rustc_middle::ty::{self, Instance, ParamEnv, PolyExistentialTraitRef, Ty, TyCtxt};
use rustc_session::Session; use rustc_session::Session;
use rustc_span::{source_map::respan, Span}; use rustc_span::{source_map::respan, Span, DUMMY_SP};
use rustc_target::abi::{ use rustc_target::abi::{
call::FnAbi, HasDataLayout, PointeeInfo, Size, TargetDataLayout, VariantIdx, call::FnAbi, HasDataLayout, PointeeInfo, Size, TargetDataLayout, VariantIdx,
}; };
@ -494,7 +494,7 @@ fn eh_personality(&self) -> RValue<'gcc> {
ty::ParamEnv::reveal_all(), ty::ParamEnv::reveal_all(),
def_id, def_id,
ty::List::empty(), ty::List::empty(),
None, DUMMY_SP,
); );
let symbol_name = tcx.symbol_name(instance).name; let symbol_name = tcx.symbol_name(instance).name;