Skip to content

Commit 77c2794

Browse files
committed
---
yaml --- r: 30556 b: refs/heads/incoming c: e874d37 h: refs/heads/master v: v3
1 parent 14b3d07 commit 77c2794

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 4cad58c4645c7e2247e0655d4c1d7d70ae75339b
9+
refs/heads/incoming: e874d375694fe70de084c8ef32b32b8bc906e0f6
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/rustc/middle/typeck/check.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,11 @@ fn check_struct(ccx: @crate_ctxt, struct_def: @ast::struct_def,
488488
}
489489

490490
fn check_item(ccx: @crate_ctxt, it: @ast::item) {
491+
debug!("check_item(it.id=%d, it.ident=%s)",
492+
it.id,
493+
ty::item_path_str(ccx.tcx, local_def(it.id)));
494+
let _indenter = indenter();
495+
491496
match it.node {
492497
ast::item_const(_, e) => check_const(ccx, it.span, e, it.id),
493498
ast::item_enum(enum_definition, _) => {
@@ -2525,6 +2530,9 @@ fn check_bounds_are_used(ccx: @crate_ctxt,
25252530
span: span,
25262531
tps: ~[ast::ty_param],
25272532
ty: ty::t) {
2533+
debug!("check_bounds_are_used(n_tps=%u, ty=%s)",
2534+
tps.len(), ty_to_str(ccx.tcx, ty));
2535+
25282536
// make a vector of booleans initially false, set to true when used
25292537
if tps.len() == 0u { return; }
25302538
let tps_used = vec::to_mut(vec::from_elem(tps.len(), false));
@@ -2534,7 +2542,10 @@ fn check_bounds_are_used(ccx: @crate_ctxt,
25342542
|_r| {},
25352543
|t| {
25362544
match ty::get(t).sty {
2537-
ty::ty_param({idx, _}) => { tps_used[idx] = true; }
2545+
ty::ty_param({idx, _}) => {
2546+
debug!("Found use of ty param #%u", idx);
2547+
tps_used[idx] = true;
2548+
}
25382549
_ => ()
25392550
}
25402551
true

0 commit comments

Comments
 (0)