diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2017-05-04 14:17:23 +0200 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2017-05-08 12:56:15 +0200 |
| commit | dd87eabd83296baa4c2214d2cf3aeef24f753ba7 (patch) | |
| tree | 4d6b198ad0e356961a8b64603caa847a81b86b68 /src/libsyntax/attr.rs | |
| parent | 70198a0a44633c7c9d14fce2159c1f750491287b (diff) | |
| download | rust-dd87eabd83296baa4c2214d2cf3aeef24f753ba7.tar.gz rust-dd87eabd83296baa4c2214d2cf3aeef24f753ba7.zip | |
Remove need for &format!(...) or &&"" dances in `span_label` calls
Diffstat (limited to 'src/libsyntax/attr.rs')
| -rw-r--r-- | src/libsyntax/attr.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 82492d97627..0980b73e80c 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -511,8 +511,7 @@ pub fn find_export_name_attr(diag: &Handler, attrs: &[Attribute]) -> Option<Symb } else { struct_span_err!(diag, attr.span, E0558, "export_name attribute has invalid format") - .span_label(attr.span, - &format!("did you mean #[export_name=\"*\"]?")) + .span_label(attr.span, "did you mean #[export_name=\"*\"]?") .emit(); None } |
