Skip to content

Commit 2883eb5

Browse files
committed
---
yaml --- r: 221595 b: refs/heads/master c: 9ca1c61 h: refs/heads/master i: 221593: d31a5fa 221591: cfb3ff5 v: v3
1 parent 86c5e5b commit 2883eb5

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,5 +1,5 @@
11
---
2-
refs/heads/master: 07afe91fda3df8e3b7bbb14006a64d136627f33c
2+
refs/heads/master: 9ca1c618794b3da0603ffedff488cd42a32c4eb6
33
refs/heads/snap-stage3: a5c12f4e39d32af3c951b66bd2839bc0b5a1125b
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/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

trunk/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)