Skip to content

Commit 3181213

Browse files
committed
Fix unstable span checks
1 parent bd6ed22 commit 3181213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/codemap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ impl CodeMap {
848848

849849
let span_comes_from_this_expansion =
850850
info.callee.span.map_or(span == info.call_site, |mac_span| {
851-
mac_span.lo <= span.lo && span.hi < mac_span.hi
851+
mac_span.lo <= span.lo && span.hi <= mac_span.hi
852852
});
853853

854854
debug!("span_allows_unstable: from this expansion? {}, allows unstable? {}",

0 commit comments

Comments
 (0)