Skip to content

Commit

Permalink
Fix Repr impl for method::Candidate to include the method_ty.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Mar 26, 2014
1 parent 6b5ca8b commit ab8e026
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc/middle/typeck/check/method.rs
Expand Up @@ -1436,9 +1436,10 @@ impl<'a> LookupContext<'a> {

impl Repr for Candidate {
fn repr(&self, tcx: &ty::ctxt) -> ~str {
format!("Candidate(rcvr_ty={}, rcvr_substs={}, origin={:?})",
format!("Candidate(rcvr_ty={}, rcvr_substs={}, method_ty={}, origin={:?})",
self.rcvr_match_condition.repr(tcx),
self.rcvr_substs.repr(tcx),
self.method_ty.repr(tcx),
self.origin)
}
}
Expand Down

0 comments on commit ab8e026

Please sign in to comment.