diff options
| author | bors <bors@rust-lang.org> | 2015-03-09 21:02:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-03-09 21:02:50 +0000 |
| commit | b83b26bacb6371173cdec6bf68c7ffa69f858c84 (patch) | |
| tree | 5657bd41b93f00786469b3fade19ff617c14c673 /src/libsyntax | |
| parent | 638832e64cc62ec46721161ca19731ba00d4da58 (diff) | |
| parent | 7981aa6ac9165b0bb1a5f624b8802192b8ebc9ee (diff) | |
| download | rust-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.rs | 4 |
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)); } } } |
