diff options
| author | Richo Healey <richo@psych0tik.net> | 2015-03-07 18:08:48 -0800 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2015-03-09 07:54:19 -0700 |
| commit | 061d84399e66dc3d47c567370b71e047202ba60f (patch) | |
| tree | 4f6c6b638144dab0c537cbe9f7856595c9f79fea /src/libsyntax | |
| parent | 14ce607d9b96ab3c8d5564bcddd553d6f8e175c7 (diff) | |
| download | rust-061d84399e66dc3d47c567370b71e047202ba60f.tar.gz rust-061d84399e66dc3d47c567370b71e047202ba60f.zip | |
remove uses of as_slice where deref coercions can be used
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)); } } } |
