Keep a parent LocalDefId in SpanData.

This commit is contained in:
Camille GILLOT
2021-04-18 14:27:04 +02:00
parent 261e34d534
commit 11e2966f3f
8 changed files with 10 additions and 7 deletions

View File

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