From edc73f97190b4ee9c47933282c416d492f089dab Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sun, 25 Dec 2022 17:52:42 +0000 Subject: Give the correct track-caller location with MIR inlining. --- compiler/rustc_span/src/hygiene.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_span/src') diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs index c2d8287f243..7d1443559fe 100644 --- a/compiler/rustc_span/src/hygiene.rs +++ b/compiler/rustc_span/src/hygiene.rs @@ -316,6 +316,7 @@ impl ExpnId { // Stop going up the backtrace once include! is encountered if expn_data.is_root() || expn_data.kind == ExpnKind::Macro(MacroKind::Bang, sym::include) + || expn_data.kind == ExpnKind::Inlined { break; } -- cgit 1.4.1-3-g733a5