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
+16-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,20 +640,36 @@ fn cfg_keywords() {
642
640
.with_stderr_data(str![[r#"
643
641
[WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: `cfg(async)` is deprecated as `async` 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#async)`
645
645
[WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: `cfg(fn)` is deprecated as `fn` 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#fn)`
647
649
[WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: `cfg(const)` is deprecated as `const` is a keyword and not an identifier and should not have have been accepted in this position.
648
650
| this was previously accepted by Cargo but is being phased out; it will become a hard error in a future release!
651
+
|
652
+
| [HELP] use raw-idents instead: `cfg(r#const)`
649
653
[WARNING] [[ROOT]/foo/Cargo.toml] future-incompatibility: `cfg(return)` is deprecated as `return` is a keyword and not an identifier and should not have have been accepted in this position.
650
654
| this was previously accepted by Cargo but is being phased out; it will become a hard error in a future release!
655
+
|
656
+
| [HELP] use raw-idents instead: `cfg(r#return)`
651
657
[WARNING] [.cargo/config.toml] future-incompatibility: `cfg(for)` is deprecated as `for` is a keyword and not an identifier and should not have have been accepted in this position.
652
658
| this was previously accepted by Cargo but is being phased out; it will become a hard error in a future release!
659
+
|
660
+
| [HELP] use raw-idents instead: `cfg(r#for)`
653
661
[WARNING] [.cargo/config.toml] future-incompatibility: `cfg(match)` is deprecated as `match` is a keyword and not an identifier and should not have have been accepted in this position.
654
662
| this was previously accepted by Cargo but is being phased out; it will become a hard error in a future release!
663
+
|
664
+
| [HELP] use raw-idents instead: `cfg(r#match)`
655
665
[WARNING] [.cargo/config.toml] future-incompatibility: `cfg(extern)` is deprecated as `extern` is a keyword and not an identifier and should not have have been accepted in this position.
656
666
| this was previously accepted by Cargo but is being phased out; it will become a hard error in a future release!
667
+
|
668
+
| [HELP] use raw-idents instead: `cfg(r#extern)`
657
669
[WARNING] [.cargo/config.toml] future-incompatibility: `cfg(crate)` is deprecated as `crate` is a keyword and not an identifier and should not have have been accepted in this position.
658
670
| this was previously accepted by Cargo but is being phased out; it will become a hard error in a future release!
671
+
|
672
+
| [HELP] use raw-idents instead: `cfg(r#crate)`
659
673
[LOCKING] 1 package to latest compatible version
660
674
[CHECKING] foo v0.1.0 ([ROOT]/foo)
661
675
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
0 commit comments