Skip to content

Commit 67608b8

Browse files
committed
Minor wording tweaks
1 parent d443666 commit 67608b8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

compiler/rustc_codegen_ssa/messages.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ codegen_ssa_expected_one_argument = expected one argument
5252
5353
codegen_ssa_expected_used_symbol = expected `used`, `used(compiler)` or `used(linker)`
5454
55-
codegen_ssa_export_name_llvm_intrinsic = exported symbol name must not start with "llvm."
56-
.note = symbols starting with "llvm." are reserved for LLVM intrinsics and cannot be defined in user code
55+
codegen_ssa_export_name_llvm_intrinsic = exported symbol name must not start with `llvm.`
56+
.note = symbols starting with `llvm.` are reserved for LLVM intrinsics
5757
5858
codegen_ssa_extern_funcs_not_found = some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
5959

tests/ui/attributes/export_name-checks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
// rdtsc is an existing LLVM intrinsic
44
#[export_name = "llvm.x86.rdtsc"]
5-
//~^ ERROR: exported symbol name must not start with "llvm."
5+
//~^ ERROR: exported symbol name must not start with `llvm.`
66
pub unsafe fn foo(a: u8) -> u8 {
77
2 * a
88
}
99

1010
// qwerty is not a real llvm intrinsic
1111
#[export_name = "llvm.x86.qwerty"]
12-
//~^ ERROR: exported symbol name must not start with "llvm."
12+
//~^ ERROR: exported symbol name must not start with `llvm.`
1313
pub unsafe fn bar(a: u8) -> u8 {
1414
2 * a
1515
}

tests/ui/attributes/export_name-checks.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
error: exported symbol name must not start with "llvm."
1+
error: exported symbol name must not start with `llvm.`
22
--> $DIR/export_name-checks.rs:4:17
33
|
44
LL | #[export_name = "llvm.x86.rdtsc"]
55
| ^^^^^^^^^^^^^^^^
66
|
7-
= note: symbols starting with "llvm." are reserved for LLVM intrinsics and cannot be defined in user code
7+
= note: symbols starting with `llvm.` are reserved for LLVM intrinsics
88

9-
error: exported symbol name must not start with "llvm."
9+
error: exported symbol name must not start with `llvm.`
1010
--> $DIR/export_name-checks.rs:11:17
1111
|
1212
LL | #[export_name = "llvm.x86.qwerty"]
1313
| ^^^^^^^^^^^^^^^^^
1414
|
15-
= note: symbols starting with "llvm." are reserved for LLVM intrinsics and cannot be defined in user code
15+
= note: symbols starting with `llvm.` are reserved for LLVM intrinsics
1616

1717
error[E0648]: `export_name` may not contain null characters
1818
--> $DIR/export_name-checks.rs:17:15

0 commit comments

Comments
 (0)