Skip to content

Commit e1206c4

Browse files
committed
save-anlaysis: fix filter_generated
1 parent 66702b4 commit e1206c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_save_analysis/span_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ impl<'a> SpanUtils<'a> {
409409

410410
// Otherwise, a generated span is deemed invalid if it is not a sub-span of the root
411411
// callsite. This filters out macro internal variables and most malformed spans.
412-
!parent.source_callsite().contains(parent)
412+
!parent.source_callsite().contains(sub_span.unwrap())
413413
}
414414
}
415415

0 commit comments

Comments
 (0)