You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/thread-local/no-unstable.stderr
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ error[E0658]: use of an internal attribute
3
3
|
4
4
LL | / thread_local! {
5
5
... |
6
-
LL | | pub static BARZ: () = ();
6
+
LL | | pub static BAZ: () = ();
7
7
LL | | }
8
8
| |_^
9
9
|
@@ -13,21 +13,25 @@ LL | | }
13
13
= note: this error originates in the macro `$crate::thread::local_impl::thread_local_inner` which comes from the expansion of the macro `thread_local` (in Nightly builds, run with -Z macro-backtrace for more info)
14
14
15
15
error[E0658]: use of an internal attribute
16
-
--> $DIR/no-unstable.rs:9:22
16
+
--> $DIR/no-unstable.rs:1:1
17
17
|
18
-
LL | #[cfg_attr(true, rustc_dummy = 17)]
19
-
| ^^^^^^^^^^^^^^^^
18
+
LL | / thread_local! {
19
+
... |
20
+
LL | | pub static BAZ: () = ();
21
+
LL | | }
22
+
| |_^
20
23
|
21
24
= help: add `#![feature(rustc_attrs)]` to the crate attributes to enable
22
25
= note: the `#[rustc_dummy]` attribute is an internal implementation detail that will never be stable
23
26
= note: the `#[rustc_dummy]` attribute is used for rustc unit tests
27
+
= note: this error originates in the macro `$crate::thread::local_impl::thread_local_process_attrs` which comes from the expansion of the macro `thread_local` (in Nightly builds, run with -Z macro-backtrace for more info)
24
28
25
29
error[E0658]: `#[used(linker)]` is currently unstable
26
30
--> $DIR/no-unstable.rs:1:1
27
31
|
28
32
LL | / thread_local! {
29
33
... |
30
-
LL | | pub static BARZ: () = ();
34
+
LL | | pub static BAZ: () = ();
31
35
LL | | }
32
36
| |_^
33
37
|
@@ -41,7 +45,7 @@ error: `#[used]` attribute cannot be used on constants
0 commit comments