1
Fork 0

Give the correct track-caller location with MIR inlining.

This commit is contained in:
Camille GILLOT 2022-12-25 17:52:42 +00:00
parent d9ee0f468f
commit edc73f9719
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;
}