Skip to content

Commit

Permalink
Fix infinite recursion in the compiler.
Browse files Browse the repository at this point in the history
This was detected by the unconditional_recursion lint.
  • Loading branch information
huonw committed Jan 24, 2015
1 parent fbef241 commit 0684c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/util/ppaux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ impl<'tcx, T:Repr<'tcx>> Repr<'tcx> for Option<T> {

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

Expand Down

0 comments on commit 0684c8e

Please sign in to comment.