Fix spans

This commit is contained in:
Michael Goulet 2024-07-01 16:32:32 -04:00
parent e4bde05ed6
commit c6b883bb2e
2 changed files with 4 additions and 3 deletions

View file

@ -376,7 +376,7 @@ pub(crate) fn codegen_terminator_call<'tcx>(
ty::ParamEnv::reveal_all(),
def_id,
fn_args,
Some(source_info.span),
source_info.span,
)
.polymorphize(fx.tcx);

View file

@ -4,6 +4,7 @@ use rustc_middle::ty::AssocKind;
use rustc_middle::ty::GenericArg;
use rustc_session::config::{sigpipe, EntryFnType};
use rustc_span::symbol::Ident;
use rustc_span::DUMMY_SP;
use crate::prelude::*;
@ -119,7 +120,7 @@ pub(crate) fn maybe_create_entry_wrapper(
ParamEnv::reveal_all(),
report.def_id,
tcx.mk_args(&[GenericArg::from(main_ret_ty)]),
None,
DUMMY_SP,
)
.polymorphize(tcx);
@ -145,7 +146,7 @@ pub(crate) fn maybe_create_entry_wrapper(
ParamEnv::reveal_all(),
start_def_id,
tcx.mk_args(&[main_ret_ty.into()]),
None,
DUMMY_SP,
)
.polymorphize(tcx);
let start_func_id = import_function(tcx, m, start_instance);