Skip to content

Commit ea7654f

Browse files
committed
manually bless an aarch64 test
1 parent 6a5a7a1 commit ea7654f

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

tests/ui/asm/aarch64/type-check-4.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ const fn const_bar<T>(x: T) -> T {
2323
x
2424
}
2525
global_asm!("{}", const S);
26-
//~^ ERROR constants cannot refer to statics
26+
//~^ ERROR referencing statics
2727
global_asm!("{}", const const_foo(0));
2828
global_asm!("{}", const const_foo(S));
29-
//~^ ERROR constants cannot refer to statics
29+
//~^ ERROR referencing statics
3030
global_asm!("{}", const const_bar(0));
3131
global_asm!("{}", const const_bar(S));
32-
//~^ ERROR constants cannot refer to statics
32+
//~^ ERROR referencing statics
+19-7
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,39 @@
1-
error[E0013]: constants cannot refer to statics
1+
error[E0658]: referencing statics in constants is unstable
22
--> $DIR/type-check-4.rs:25:25
33
|
44
LL | global_asm!("{}", const S);
55
| ^
66
|
7-
= help: consider extracting the value of the `static` to a `const`, and referring to that
7+
= note: see issue #119618 <https://github.com/rust-lang/rust/issues/119618> for more information
8+
= help: add `#![feature(const_refs_to_static)]` to the crate attributes to enable
9+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10+
= note: `static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable.
11+
= help: to fix this, the value can be extracted to a `const` and then used.
812

9-
error[E0013]: constants cannot refer to statics
13+
error[E0658]: referencing statics in constants is unstable
1014
--> $DIR/type-check-4.rs:28:35
1115
|
1216
LL | global_asm!("{}", const const_foo(S));
1317
| ^
1418
|
15-
= help: consider extracting the value of the `static` to a `const`, and referring to that
19+
= note: see issue #119618 <https://github.com/rust-lang/rust/issues/119618> for more information
20+
= help: add `#![feature(const_refs_to_static)]` to the crate attributes to enable
21+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
22+
= note: `static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable.
23+
= help: to fix this, the value can be extracted to a `const` and then used.
1624

17-
error[E0013]: constants cannot refer to statics
25+
error[E0658]: referencing statics in constants is unstable
1826
--> $DIR/type-check-4.rs:31:35
1927
|
2028
LL | global_asm!("{}", const const_bar(S));
2129
| ^
2230
|
23-
= help: consider extracting the value of the `static` to a `const`, and referring to that
31+
= note: see issue #119618 <https://github.com/rust-lang/rust/issues/119618> for more information
32+
= help: add `#![feature(const_refs_to_static)]` to the crate attributes to enable
33+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
34+
= note: `static` and `const` variables can refer to other `const` variables. A `const` variable, however, cannot refer to a `static` variable.
35+
= help: to fix this, the value can be extracted to a `const` and then used.
2436

2537
error: aborting due to 3 previous errors
2638

27-
For more information about this error, try `rustc --explain E0013`.
39+
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)