Skip to content

Commit 82803fd

Browse files
committed
Add backticks to E0558
1 parent 74609bc commit 82803fd

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

src/librustc_codegen_llvm/diagnostics.rs

-5
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,3 @@ unsafe { simd_add(i32x2(0, 0), i32x2(1, 2)); } // ok!
4848
"##,
4949

5050
}
51-
52-
53-
register_diagnostics! {
54-
E0558
55-
}

src/librustc_typeck/collect.rs

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

src/librustc_typeck/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3709,7 +3709,7 @@ The `export_name` attribute was malformed.
37093709
Erroneous code example:
37103710
37113711
```ignore (error-emitted-at-codegen-which-cannot-be-handled-by-compile_fail)
3712-
#[export_name] // error: export_name attribute has invalid format
3712+
#[export_name] // error: `export_name` attribute has invalid format
37133713
pub fn something() {}
37143714
37153715
fn main() {}

src/test/ui/error-codes/E0558.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0558]: export_name attribute has invalid format
1+
error[E0558]: `export_name` attribute has invalid format
22
--> $DIR/E0558.rs:11:1
33
|
44
LL | #[export_name]

0 commit comments

Comments
 (0)