about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-05-24 20:26:24 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-05-25 16:43:14 +0000
commit0919ec3eccfc06534dcf392b91b616a70d0bf8b1 (patch)
tree8267c2028d8d96bb06cf3b02a8158f2ca123fc5f /compiler/rustc_codegen_ssa/src
parentd300bffa4f0036e9138ef752610d08fc63f87a77 (diff)
downloadrust-0919ec3eccfc06534dcf392b91b616a70d0bf8b1.tar.gz
rust-0919ec3eccfc06534dcf392b91b616a70d0bf8b1.zip
Remove ExpnKind::Inlined.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/mir/block.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/block.rs b/compiler/rustc_codegen_ssa/src/mir/block.rs
index 1f5f5b69d4d..d516ac4ebb7 100644
--- a/compiler/rustc_codegen_ssa/src/mir/block.rs
+++ b/compiler/rustc_codegen_ssa/src/mir/block.rs
@@ -1450,11 +1450,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
     ) -> OperandRef<'tcx, Bx::Value> {
         let tcx = bx.tcx();
 
-        let mut span_to_caller_location = |mut span: Span| {
-            // Remove `Inlined` marks as they pollute `expansion_cause`.
-            while span.is_inlined() {
-                span.remove_mark();
-            }
+        let mut span_to_caller_location = |span: Span| {
             let topmost = span.ctxt().outer_expn().expansion_cause().unwrap_or(span);
             let caller = tcx.sess.source_map().lookup_char_pos(topmost.lo());
             let const_loc = tcx.const_caller_location((