Fix spans
This commit is contained in:
parent
e4bde05ed6
commit
c6b883bb2e
2 changed files with 4 additions and 3 deletions
src
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue