Keep a parent LocalDefId in SpanData.
This commit is contained in:
@@ -95,7 +95,7 @@ impl CognitiveComplexity {
|
||||
});
|
||||
|
||||
if let Some((low, high)) = pos {
|
||||
Span::new(low, high, header_span.ctxt())
|
||||
Span::new(low, high, header_span.ctxt(), header_span.parent())
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user