diff options
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)); } } } |
