diff options
| author | Lindsey Kuper <lindsey@rockstargirl.org> | 2012-08-07 11:27:09 -0700 |
|---|---|---|
| committer | Lindsey Kuper <lindsey@rockstargirl.org> | 2012-08-08 16:07:52 -0700 |
| commit | c8bad3631234f02c297e9117df67f3a4b3cd645c (patch) | |
| tree | bd1df01b69f6dcb5b02b2c31b57a214dea3a6fb7 /src | |
| parent | 8b79bed6dd9299af6caacc0c56a30ec3c2a92c92 (diff) | |
Change a `match check` to `match`
Diffstat (limited to 'src')
| -rw-r--r-- | src/rustc/middle/typeck/collect.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rustc/middle/typeck/collect.rs b/src/rustc/middle/typeck/collect.rs index 08eaad73e65..a668aa8b72f 100644 --- a/src/rustc/middle/typeck/collect.rs +++ b/src/rustc/middle/typeck/collect.rs @@ -197,7 +197,7 @@ fn ensure_trait_methods(ccx: @crate_ctxt, id: ast::node_id) { let tcx = ccx.tcx; let rp = tcx.region_paramd_items.contains_key(id); - match check tcx.items.get(id) { + match tcx.items.get(id) { ast_map::node_item(@{node: ast::item_trait(params, _, ms), _}, _) => { store_methods::<ast::trait_method>(ccx, id, ms, |m| { let trait_bounds = ty_param_bounds(ccx, params); @@ -218,6 +218,7 @@ fn ensure_trait_methods(ccx: @crate_ctxt, id: ast::node_id) { ty_of_method(ccx, m, rp) }); } + _ => { /* Ignore things that aren't traits or classes */ } } } |
