Use Span::eq_ctxt
method instead of .ctxt() == .ctxt()
This commit is contained in:
parent
2c3bb42ebd
commit
52c9906c4b
7 changed files with 12 additions and 9 deletions
|
@ -195,7 +195,7 @@ impl CoverageSpan {
|
|||
.expn_span
|
||||
.parent_callsite()
|
||||
.unwrap_or_else(|| bug!("macro must have a parent"))
|
||||
.ctxt() == body_span.ctxt()
|
||||
.eq_ctxt(body_span)
|
||||
{
|
||||
return Some(current_macro);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue