Skip to content

Commit f0327f5

Browse files
committed
---
yaml --- r: 28534 b: refs/heads/try c: e874d37 h: refs/heads/master v: v3
1 parent 91901ba commit f0327f5

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
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: 4cad58c4645c7e2247e0655d4c1d7d70ae75339b
5+
refs/heads/try: e874d375694fe70de084c8ef32b32b8bc906e0f6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

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