Skip to content

Commit c6b883b

Browse files
Fix spans
1 parent e4bde05 commit c6b883b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/abi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ pub(crate) fn codegen_terminator_call<'tcx>(
376376
ty::ParamEnv::reveal_all(),
377377
def_id,
378378
fn_args,
379-
Some(source_info.span),
379+
source_info.span,
380380
)
381381
.polymorphize(fx.tcx);
382382

src/main_shim.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use rustc_middle::ty::AssocKind;
44
use rustc_middle::ty::GenericArg;
55
use rustc_session::config::{sigpipe, EntryFnType};
66
use rustc_span::symbol::Ident;
7+
use rustc_span::DUMMY_SP;
78

89
use crate::prelude::*;
910

@@ -119,7 +120,7 @@ pub(crate) fn maybe_create_entry_wrapper(
119120
ParamEnv::reveal_all(),
120121
report.def_id,
121122
tcx.mk_args(&[GenericArg::from(main_ret_ty)]),
122-
None,
123+
DUMMY_SP,
123124
)
124125
.polymorphize(tcx);
125126

@@ -145,7 +146,7 @@ pub(crate) fn maybe_create_entry_wrapper(
145146
ParamEnv::reveal_all(),
146147
start_def_id,
147148
tcx.mk_args(&[main_ret_ty.into()]),
148-
None,
149+
DUMMY_SP,
149150
)
150151
.polymorphize(tcx);
151152
let start_func_id = import_function(tcx, m, start_instance);

0 commit comments

Comments
 (0)