From 0684c8ebf92933e6382d1ac13a77999296411dac Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Sun, 25 Jan 2015 00:05:42 +1100 Subject: [PATCH] Fix infinite recursion in the compiler. This was detected by the unconditional_recursion lint. --- src/librustc/util/ppaux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/util/ppaux.rs b/src/librustc/util/ppaux.rs index c5aced4eb86f5..266048fce51c9 100644 --- a/src/librustc/util/ppaux.rs +++ b/src/librustc/util/ppaux.rs @@ -544,7 +544,7 @@ impl<'tcx, T:Repr<'tcx>> Repr<'tcx> for Option { impl<'tcx, T:Repr<'tcx>> Repr<'tcx> for P { fn repr(&self, tcx: &ctxt<'tcx>) -> String { - (*self).repr(tcx) + (**self).repr(tcx) } }