Add backticks to E0558

This commit is contained in:
varkor 2018-06-23 22:33:36 +01:00
parent 74609bca80
commit 82803fd9bd
4 changed files with 3 additions and 8 deletions

View File

@ -48,8 +48,3 @@ unsafe { simd_add(i32x2(0, 0), i32x2(1, 2)); } // ok!
"##,
}
register_diagnostics! {
E0558
}

View File

@ -1909,7 +1909,7 @@ fn codegen_fn_attrs<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, id: DefId) -> Codegen
codegen_fn_attrs.export_name = Some(s);
} else {
struct_span_err!(tcx.sess, attr.span, E0558,
"export_name attribute has invalid format")
"`export_name` attribute has invalid format")
.span_label(attr.span, "did you mean #[export_name=\"*\"]?")
.emit();
}

View File

@ -3709,7 +3709,7 @@ The `export_name` attribute was malformed.
Erroneous code example:
```ignore (error-emitted-at-codegen-which-cannot-be-handled-by-compile_fail)
#[export_name] // error: export_name attribute has invalid format
#[export_name] // error: `export_name` attribute has invalid format
pub fn something() {}
fn main() {}

View File

@ -1,4 +1,4 @@
error[E0558]: export_name attribute has invalid format
error[E0558]: `export_name` attribute has invalid format
--> $DIR/E0558.rs:11:1
|
LL | #[export_name]