]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_span/src/hygiene.rs
Auto merge of #106301 - notriddle:notriddle/dir-entry, r=GuillaumeGomez
[rust.git] / compiler / rustc_span / src / hygiene.rs
index c2d8287f2431dc3faa5cad0a1b0070e97257dc72..7d1443559fe53b503637cedbc156957a68c869a5 100644 (file)
@@ -316,6 +316,7 @@ pub fn expansion_cause(mut self) -> Option<Span> {
             // 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;
             }