about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-07-01 16:32:32 -0400
committerMichael Goulet <michael@errs.io>2024-07-02 15:48:48 -0400
commitc6b883bb2eefd5377f2d75be95d8f20e271924ca (patch)
treea0cec83f237cd6ae92d259c3414101406cb64516 /src
parente4bde05ed6e4028e936ac223e0322ff66020ad9f (diff)
downloadrust-c6b883bb2eefd5377f2d75be95d8f20e271924ca.tar.gz
rust-c6b883bb2eefd5377f2d75be95d8f20e271924ca.zip
Fix spans
Diffstat (limited to 'src')
-rw-r--r--src/abi/mod.rs2
-rw-r--r--src/main_shim.rs5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/abi/mod.rs b/src/abi/mod.rs
index 81dfde81e93..9dc94ab33ea 100644
--- a/src/abi/mod.rs
+++ b/src/abi/mod.rs
@@ -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);
 
diff --git a/src/main_shim.rs b/src/main_shim.rs
index d1dc147dba8..fe0a1551419 100644
--- a/src/main_shim.rs
+++ b/src/main_shim.rs
@@ -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);