Skip to content

Commit 80ede5e

Browse files
committed
---
yaml --- r: 228660 b: refs/heads/try c: 9ca1c61 h: refs/heads/master v: v3
1 parent d4f1b84 commit 80ede5e

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 07afe91fda3df8e3b7bbb14006a64d136627f33c
4+
refs/heads/try: 9ca1c618794b3da0603ffedff488cd42a32c4eb6
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc/middle/stability.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,9 +543,19 @@ pub fn check_pat(tcx: &ty::ctxt, pat: &ast::Pat,
543543

544544
fn maybe_do_stability_check(tcx: &ty::ctxt, id: ast::DefId, span: Span,
545545
cb: &mut FnMut(ast::DefId, Span, &Option<&Stability>)) {
546-
if !is_staged_api(tcx, id) { return }
547-
if is_internal(tcx, span) { return }
546+
if !is_staged_api(tcx, id) {
547+
debug!("maybe_do_stability_check: \
548+
skipping id={:?} since it is not staged_api", id);
549+
return;
550+
}
551+
if is_internal(tcx, span) {
552+
debug!("maybe_do_stability_check: \
553+
skipping span={:?} since it is internal", span);
554+
return;
555+
}
548556
let ref stability = lookup(tcx, id);
557+
debug!("maybe_do_stability_check: \
558+
inspecting id={:?} span={:?} of stability={:?}", id, span, stability);
549559
cb(id, span, stability);
550560
}
551561

branches/try/src/libsyntax/codemap.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,10 @@ impl CodeMap {
980980
mac_span.lo <= span.lo && span.hi <= mac_span.hi
981981
});
982982

983+
debug!("span_allows_unstable: span: {:?} call_site: {:?} callee: {:?}",
984+
(span.lo, span.hi),
985+
(info.call_site.lo, info.call_site.hi),
986+
info.callee.span.map(|x| (x.lo, x.hi)));
983987
debug!("span_allows_unstable: from this expansion? {}, allows unstable? {}",
984988
span_comes_from_this_expansion,
985989
info.callee.allow_internal_unstable);

0 commit comments

Comments
 (0)