1
Fork 0

Auto merge of #106139 - cjgillot:mir-inline-location, r=eholk

Give the correct track-caller location with MIR inlining.

Fixes https://github.com/rust-lang/rust/issues/105538
This commit is contained in:
bors 2022-12-29 08:06:03 +00:00
commit 11a338ab66
11 changed files with 24 additions and 24 deletions

View file

@ -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;
}