summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorJonathan Turner <jonathandturner@users.noreply.github.com>2016-09-02 15:28:52 -0700
committerGitHub <noreply@github.com>2016-09-02 15:28:52 -0700
commitc70149004ac57c17d0cf73b6738464fea96abbab (patch)
treef558d88c104cc02ae35c3c6619b82d04426e1192 /src/libsyntax
parent5284bee03a94cf5c9c8a84f42c17f563ae76bca4 (diff)
parent18434f94572ee047aff8898a0d25ee8939585827 (diff)
downloadrust-c70149004ac57c17d0cf73b6738464fea96abbab.tar.gz
rust-c70149004ac57c17d0cf73b6738464fea96abbab.zip
Rollup merge of #36223 - abhiQmar:e0558-formatting, r=jonathandturner
Update compiler error E0558 to use new error format

Fixes #36196 part of #35233

r? @jonathandturner
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/attr.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs
index 703f3f7adf9..81ee96459fd 100644
--- a/src/libsyntax/attr.rs
+++ b/src/libsyntax/attr.rs
@@ -438,8 +438,9 @@ pub fn find_export_name_attr(diag: &Handler, attrs: &[Attribute]) -> Option<Inte
             } else {
                 struct_span_err!(diag, attr.span, E0558,
                                  "export_name attribute has invalid format")
-                                .help("use #[export_name=\"*\"]")
-                                .emit();
+                    .span_label(attr.span,
+                                &format!("did you mean #[export_name=\"*\"]?"))
+                    .emit();
                 None
             }
         } else {