Skip to content

Commit 0684c8e

Browse files
committed
Fix infinite recursion in the compiler.
This was detected by the unconditional_recursion lint.
1 parent fbef241 commit 0684c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/util/ppaux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ impl<'tcx, T:Repr<'tcx>> Repr<'tcx> for Option<T> {
544544

545545
impl<'tcx, T:Repr<'tcx>> Repr<'tcx> for P<T> {
546546
fn repr(&self, tcx: &ctxt<'tcx>) -> String {
547-
(*self).repr(tcx)
547+
(**self).repr(tcx)
548548
}
549549
}
550550

0 commit comments

Comments
 (0)