fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.7 KiB52 linesraw
1error: attribute must be of the form `#[inline]` or `#[inline(always|never)]`
2  --> $DIR/issue-43106-gating-of-inline.rs:17:5
3   |
4LL |     #[inline = "2100"] fn f() { }
5   |     ^^^^^^^^^^^^^^^^^^
6   |
7   = note: `#[deny(ill_formed_attribute_input)]` on by default
8   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9   = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
10
11error[E0518]: attribute should be applied to function or closure
12  --> $DIR/issue-43106-gating-of-inline.rs:11:1
13   |
14LL |   #[inline]
15   |   ^^^^^^^^^
16LL |
17LL | / mod inline {
18LL | |     mod inner { #![inline] }
19LL | |
20LL | |
21...  |
22LL | |
23LL | | }
24   | |_- not a function or closure
25
26error[E0518]: attribute should be applied to function or closure
27  --> $DIR/issue-43106-gating-of-inline.rs:14:17
28   |
29LL |     mod inner { #![inline] }
30   |     ------------^^^^^^^^^^-- not a function or closure
31
32error[E0518]: attribute should be applied to function or closure
33  --> $DIR/issue-43106-gating-of-inline.rs:21:5
34   |
35LL |     #[inline] struct S;
36   |     ^^^^^^^^^ --------- not a function or closure
37
38error[E0518]: attribute should be applied to function or closure
39  --> $DIR/issue-43106-gating-of-inline.rs:24:5
40   |
41LL |     #[inline] type T = S;
42   |     ^^^^^^^^^ ----------- not a function or closure
43
44error[E0518]: attribute should be applied to function or closure
45  --> $DIR/issue-43106-gating-of-inline.rs:27:5
46   |
47LL |     #[inline] impl S { }
48   |     ^^^^^^^^^ ---------- not a function or closure
49
50error: aborting due to 6 previous errors
51
52For more information about this error, try `rustc --explain E0518`.