about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-03-09 21:02:50 +0000
committerbors <bors@rust-lang.org>2015-03-09 21:02:50 +0000
commitb83b26bacb6371173cdec6bf68c7ffa69f858c84 (patch)
tree5657bd41b93f00786469b3fade19ff617c14c673 /src/libsyntax
parent638832e64cc62ec46721161ca19731ba00d4da58 (diff)
parent7981aa6ac9165b0bb1a5f624b8802192b8ebc9ee (diff)
downloadrust-b83b26bacb6371173cdec6bf68c7ffa69f858c84.tar.gz
rust-b83b26bacb6371173cdec6bf68c7ffa69f858c84.zip
Auto merge of #22561 - richo:as_slice-as_str, r=Manishearth
This may not be quite ready to go out, I fixed some docs but suspect I missed a bunch.

I also wound up fixing a bunch of redundant `[]` suffixes, but on closer inspection I don't believe that can land until after a snapshot.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 425c517cb29..c3bac0cf57c 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -403,11 +403,11 @@ impl<'a> Context<'a> {
                                for the compiler");
         } else {
             self.gate_feature("custom_attribute", attr.span,
-                       format!("The attribute `{}` is currently \
+                       &format!("The attribute `{}` is currently \
                                 unknown to the the compiler and \
                                 may have meaning \
                                 added to it in the future",
-                                name).as_slice());
+                                name));
         }
     }
 }