Skip to content

Commit c6be37e

Browse files
committed
---
yaml --- r: 221042 b: refs/heads/auto c: 9ca1c61 h: refs/heads/master v: v3
1 parent 725c483 commit c6be37e

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
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 07afe91fda3df8e3b7bbb14006a64d136627f33c
11+
refs/heads/auto: 9ca1c618794b3da0603ffedff488cd42a32c4eb6
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/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/auto/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)