Skip to content

Commit

Permalink
Move a comment to where it belongs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkuper committed Aug 10, 2012
1 parent 9a1a258 commit 0c35489
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rustc/middle/typeck/check/method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ class lookup {
}

loop {
// First, see whether this is a bounded parameter.
match ty::get(self.self_ty).struct {
// First, see whether this is a bounded parameter.
ty::ty_param(p) => {
self.add_candidates_from_param(p.idx, p.def_id);
}

ty::ty_trait(did, substs) => {
self.add_candidates_from_trait(did, substs);
}
Expand Down

0 comments on commit 0c35489

Please sign in to comment.