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/testsuite/cfg.rs
+4-2
Original file line number
Diff line number
Diff line change
@@ -544,8 +544,6 @@ fn cfg_raw_idents() {
544
544
545
545
p.cargo("check")
546
546
.with_stderr_data(str![[r#"
547
-
[WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: `cfg(r#fn)` is deprecated as `r#fn` is a keyword and not an identifier and should not have have been accepted in this position.
548
-
| this was previously accepted by Cargo but is being phased out; it will become a hard error in a future release!
549
547
[LOCKING] 1 package to latest compatible version
550
548
[CHECKING] foo v0.1.0 ([ROOT]/foo)
551
549
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
@@ -642,8 +640,12 @@ fn cfg_keywords() {
642
640
.with_stderr_data(str![[r#"
643
641
[WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: `cfg(true)` is deprecated as `true` is a keyword and not an identifier and should not have have been accepted in this position.
644
642
| this was previously accepted by Cargo but is being phased out; it will become a hard error in a future release!
643
+
|
644
+
| [HELP] use raw-idents instead: `cfg(r#true)`
645
645
[WARNING] [.cargo/config.toml] future-incompatibility: `cfg(false)` is deprecated as `false` is a keyword and not an identifier and should not have have been accepted in this position.
646
646
| this was previously accepted by Cargo but is being phased out; it will become a hard error in a future release!
647
+
|
648
+
| [HELP] use raw-idents instead: `cfg(r#false)`
647
649
[LOCKING] 1 package to latest compatible version
648
650
[CHECKING] foo v0.1.0 ([ROOT]/foo)
649
651
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
0 commit comments