Fix Repr impl for method::Candidate to include the method_ty.

This commit is contained in:
Felix S. Klock II 2014-03-26 12:00:52 +01:00
parent 6b5ca8b1aa
commit ab8e02616c

View File

@ -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)
}
}