diff options
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr.rs | 5 |
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 { |
