diff options
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/interner.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index 4b5a05f4cb8..7b885df0317 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -18,6 +18,7 @@ use collections::HashMap; use std::cast; use std::cell::RefCell; use std::cmp::Equiv; +use std::fmt; use std::hash::Hash; use std::rc::Rc; @@ -114,6 +115,13 @@ impl Str for RcStr { } } +impl fmt::Show for RcStr { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + use std::fmt::Show; + self.as_slice().fmt(f) + } +} + impl RcStr { pub fn new(string: &str) -> RcStr { RcStr { |
