Skip to content

Commit 83c455a

Browse files
committed
---
yaml --- r: 235731 b: refs/heads/stable c: 9ca1c61 h: refs/heads/master i: 235729: 530a84c 235727: e9bd2c9 v: v3
1 parent 72752b4 commit 83c455a

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
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 07afe91fda3df8e3b7bbb14006a64d136627f33c
32+
refs/heads/stable: 9ca1c618794b3da0603ffedff488cd42a32c4eb6
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

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