Skip to content

Commit 10629c1

Browse files
committed
---
yaml --- r: 23083 b: refs/heads/master c: c8bad36 h: refs/heads/master i: 23081: d214b98 23079: 3a0972e v: v3
1 parent d9f3d25 commit 10629c1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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: 8b79bed6dd9299af6caacc0c56a30ec3c2a92c92
2+
refs/heads/master: c8bad3631234f02c297e9117df67f3a4b3cd645c
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/rustc/middle/typeck/collect.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ fn ensure_trait_methods(ccx: @crate_ctxt, id: ast::node_id) {
197197

198198
let tcx = ccx.tcx;
199199
let rp = tcx.region_paramd_items.contains_key(id);
200-
match check tcx.items.get(id) {
200+
match tcx.items.get(id) {
201201
ast_map::node_item(@{node: ast::item_trait(params, _, ms), _}, _) => {
202202
store_methods::<ast::trait_method>(ccx, id, ms, |m| {
203203
let trait_bounds = ty_param_bounds(ccx, params);
@@ -218,6 +218,7 @@ fn ensure_trait_methods(ccx: @crate_ctxt, id: ast::node_id) {
218218
ty_of_method(ccx, m, rp)
219219
});
220220
}
221+
_ => { /* Ignore things that aren't traits or classes */ }
221222
}
222223
}
223224

0 commit comments

Comments
 (0)