Fix infinite recursion in the compiler.

This was detected by the unconditional_recursion lint.
This commit is contained in:
Huon Wilson 2015-01-25 00:05:42 +11:00
parent fbef241709
commit 0684c8ebf9

View File

@ -544,7 +544,7 @@ fn repr(&self, tcx: &ctxt<'tcx>) -> String {
impl<'tcx, T:Repr<'tcx>> Repr<'tcx> for P<T> {
fn repr(&self, tcx: &ctxt<'tcx>) -> String {
(*self).repr(tcx)
(**self).repr(tcx)
}
}