about summary refs log tree commit diff
path: root/compiler/rustc_save_analysis
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-09-19 18:56:32 +0200
committeroli <oli@uhura.edef.eu>2020-10-27 14:08:07 +0000
commitc8a866ea176f1d7250a714647a6ce7a4636f5705 (patch)
tree44070d82ce7adc4e3ca3e0f29c6ce7eeba8c93c7 /compiler/rustc_save_analysis
parent4445e465182f13590fb7c938881ee1225175740d (diff)
downloadrust-c8a866ea176f1d7250a714647a6ce7a4636f5705.tar.gz
rust-c8a866ea176f1d7250a714647a6ce7a4636f5705.zip
Show the inline stack of MIR lints that only occur after inlining
Diffstat (limited to 'compiler/rustc_save_analysis')
-rw-r--r--compiler/rustc_save_analysis/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_save_analysis/src/lib.rs b/compiler/rustc_save_analysis/src/lib.rs
index 48d15370ee3..eed9f2eb74d 100644
--- a/compiler/rustc_save_analysis/src/lib.rs
+++ b/compiler/rustc_save_analysis/src/lib.rs
@@ -799,7 +799,9 @@ impl<'tcx> SaveContext<'tcx> {
 
             // These are not macros.
             // FIXME(eddyb) maybe there is a way to handle them usefully?
-            ExpnKind::Root | ExpnKind::AstPass(_) | ExpnKind::Desugaring(_) => return None,
+            ExpnKind::Inlined | ExpnKind::Root | ExpnKind::AstPass(_) | ExpnKind::Desugaring(_) => {
+                return None;
+            }
         };
 
         let callee_span = self.span_from_span(callee.def_site);