diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-21 09:20:35 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-21 09:20:35 -0800 |
| commit | 87c3ee861ec488827044e07d5d0cd7c8508c681f (patch) | |
| tree | 49a374a1baf3e3b816120ffdbf28959e10a5ea34 /src/libsyntax/util | |
| parent | e4b81d25122b0ff230182375d09300d5403b1750 (diff) | |
| parent | 3cb9fa26ef9905c00a29ea577fb55a12a91c8e7b (diff) | |
rollup merge of #21457: alexcrichton/issue-21436
Conflicts: src/liballoc/boxed.rs src/librustc/middle/traits/error_reporting.rs src/libstd/sync/mpsc/mod.rs
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/interner.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index 66b225f30dd..1b35b1b04a3 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -114,9 +114,16 @@ impl Ord for RcStr { } } -impl fmt::Show for RcStr { +impl fmt::Debug for RcStr { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - use std::fmt::Show; + use std::fmt::Debug; + self[].fmt(f) + } +} + +impl fmt::Display for RcStr { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + use std::fmt::Display; self[].fmt(f) } } |
