Fix unstable span checks
This commit is contained in:
@@ -848,7 +848,7 @@ impl CodeMap {
|
||||
|
||||
let span_comes_from_this_expansion =
|
||||
info.callee.span.map_or(span == info.call_site, |mac_span| {
|
||||
mac_span.lo <= span.lo && span.hi < mac_span.hi
|
||||
mac_span.lo <= span.lo && span.hi <= mac_span.hi
|
||||
});
|
||||
|
||||
debug!("span_allows_unstable: from this expansion? {}, allows unstable? {}",
|
||||
|
||||
Reference in New Issue
Block a user