1
1
error: `crate_type` within an `#![cfg_attr] attribute is deprecated`
2
- --> $DIR/future-compat-crate-attributes-using-cfg_attr.rs:5 :18
2
+ --> $DIR/future-compat-crate-attributes-using-cfg_attr.rs:4 :18
3
3
|
4
4
LL | #![cfg_attr(foo, crate_type="bin")]
5
5
| ^^^^^^^^^^^^^^^^
6
6
|
7
- note: the lint level is defined here
8
- --> $DIR/future-compat-crate-attributes-using-cfg_attr.rs:4:9
9
- |
10
- LL | #![deny(warnings)]
11
- | ^^^^^^^^
12
- = note: `#[deny(deprecated_cfg_attr_crate_type_name)]` implied by `#[deny(warnings)]`
7
+ = note: `#[deny(deprecated_cfg_attr_crate_type_name)]` on by default
13
8
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
14
9
= note: for more information, see issue #91632 <https://github.com/rust-lang/rust/issues/91632>
15
10
16
11
error: `crate_name` within an `#![cfg_attr] attribute is deprecated`
17
- --> $DIR/future-compat-crate-attributes-using-cfg_attr.rs:10 :18
12
+ --> $DIR/future-compat-crate-attributes-using-cfg_attr.rs:9 :18
18
13
|
19
14
LL | #![cfg_attr(foo, crate_name="bar")]
20
15
| ^^^^^^^^^^^^^^^^
@@ -23,7 +18,7 @@ LL | #![cfg_attr(foo, crate_name="bar")]
23
18
= note: for more information, see issue #91632 <https://github.com/rust-lang/rust/issues/91632>
24
19
25
20
error: `crate_type` within an `#![cfg_attr] attribute is deprecated`
26
- --> $DIR/future-compat-crate-attributes-using-cfg_attr.rs:5 :18
21
+ --> $DIR/future-compat-crate-attributes-using-cfg_attr.rs:4 :18
27
22
|
28
23
LL | #![cfg_attr(foo, crate_type="bin")]
29
24
| ^^^^^^^^^^^^^^^^
@@ -32,7 +27,7 @@ LL | #![cfg_attr(foo, crate_type="bin")]
32
27
= note: for more information, see issue #91632 <https://github.com/rust-lang/rust/issues/91632>
33
28
34
29
error: `crate_name` within an `#![cfg_attr] attribute is deprecated`
35
- --> $DIR/future-compat-crate-attributes-using-cfg_attr.rs:10 :18
30
+ --> $DIR/future-compat-crate-attributes-using-cfg_attr.rs:9 :18
36
31
|
37
32
LL | #![cfg_attr(foo, crate_name="bar")]
38
33
| ^^^^^^^^^^^^^^^^
0 commit comments