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
+7-7
Original file line number
Diff line number
Diff line change
@@ -543,12 +543,12 @@ fn cfg_raw_idents() {
543
543
.build();
544
544
545
545
p.cargo("check")
546
-
.with_status(101)
547
546
.with_stderr_data(str![[r#"
548
-
[ERROR] failed to parse manifest at `[ROOT]/foo/Cargo.toml`
549
-
550
-
Caused by:
551
-
failed to parse `any(r#fn, r#all, r#target_os = "<>")` as a cfg expression: unexpected character `#` in cfg, expected parens, a comma, an identifier, or a string
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
+
[LOCKING] 1 package to latest compatible version
550
+
[CHECKING] foo v0.1.0 ([ROOT]/foo)
551
+
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
552
552
553
553
"#]])
554
554
.run();
@@ -577,7 +577,7 @@ fn cfg_raw_idents_empty() {
577
577
[ERROR] failed to parse manifest at `[ROOT]/foo/Cargo.toml`
578
578
579
579
Caused by:
580
-
failed to parse `r#)` as a cfg expression: unexpected content `#)` found after cfg expression
580
+
failed to parse `r#)` as a cfg expression: unexpected character `)` in cfg, expected parens, a comma, an identifier, or a string
0 commit comments