From 0c354898581e195703a887082bf25ea0ea971838 Mon Sep 17 00:00:00 2001 From: Lindsey Kuper Date: Fri, 10 Aug 2012 11:25:23 -0700 Subject: [PATCH] Move a comment to where it belongs. --- src/rustc/middle/typeck/check/method.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rustc/middle/typeck/check/method.rs b/src/rustc/middle/typeck/check/method.rs index a552b4201e691..3091e28d556b4 100644 --- a/src/rustc/middle/typeck/check/method.rs +++ b/src/rustc/middle/typeck/check/method.rs @@ -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); }