Fix unstable span checks

This commit is contained in:
Steven Fackler
2015-03-10 19:47:57 -07:00
parent bd6ed22fdf
commit 3181213f91

View File

@@ -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? {}",