about summary refs log tree commit diff
path: root/src/libsyntax/util
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2015-02-18 14:48:57 -0500
committerNiko Matsakis <niko@alum.mit.edu>2015-02-18 17:36:03 -0500
commit9ea84aeed4ed3006eddb6a7b24e9714f2844cd22 (patch)
tree566226c57e31172bd55c585a18651130786af96c /src/libsyntax/util
parent64cd30e0cacb6b509f9368004afb0b6bde7a5143 (diff)
downloadrust-9ea84aeed4ed3006eddb6a7b24e9714f2844cd22.tar.gz
rust-9ea84aeed4ed3006eddb6a7b24e9714f2844cd22.zip
Replace all uses of `&foo[]` with `&foo[..]` en masse.
Diffstat (limited to 'src/libsyntax/util')
-rw-r--r--src/libsyntax/util/interner.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs
index 51144267519..c286ff9d65c 100644
--- a/src/libsyntax/util/interner.rs
+++ b/src/libsyntax/util/interner.rs
@@ -110,34 +110,34 @@ impl Eq for RcStr {}
 
 impl Ord for RcStr {
     fn cmp(&self, other: &RcStr) -> Ordering {
-        self[].cmp(&other[])
+        self[..].cmp(&other[..])
     }
 }
 
 impl fmt::Debug for RcStr {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         use std::fmt::Debug;
-        self[].fmt(f)
+        self[..].fmt(f)
     }
 }
 
 impl fmt::Display for RcStr {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         use std::fmt::Display;
-        self[].fmt(f)
+        self[..].fmt(f)
     }
 }
 
 impl BorrowFrom<RcStr> for str {
     fn borrow_from(owned: &RcStr) -> &str {
-        &owned.string[]
+        &owned.string[..]
     }
 }
 
 impl Deref for RcStr {
     type Target = str;
 
-    fn deref(&self) -> &str { &self.string[] }
+    fn deref(&self) -> &str { &self.string[..] }
 }
 
 /// A StrInterner differs from Interner<String> in that it accepts