We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66702b4 commit e1206c4Copy full SHA for e1206c4
src/librustc_save_analysis/span_utils.rs
@@ -409,7 +409,7 @@ impl<'a> SpanUtils<'a> {
409
410
// Otherwise, a generated span is deemed invalid if it is not a sub-span of the root
411
// callsite. This filters out macro internal variables and most malformed spans.
412
- !parent.source_callsite().contains(parent)
+ !parent.source_callsite().contains(sub_span.unwrap())
413
}
414
415
0 commit comments