File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -1153,6 +1153,7 @@ it is false
1153
1153
. exists( ) ) ;
1154
1154
}
1155
1155
1156
+ #[ allow( deprecated) ]
1156
1157
#[ cargo_test]
1157
1158
fn proc_macro_ws ( ) {
1158
1159
// Checks for bug with proc-macro in a workspace with dependency (shouldn't panic).
@@ -1225,22 +1226,12 @@ fn proc_macro_ws() {
1225
1226
"# ] ] )
1226
1227
. run ( ) ;
1227
1228
// Selecting just foo will build without unification.
1228
- let expected = if cfg ! ( target_os = "macos" ) {
1229
- str![ [ r#"
1230
- ...
1231
- [RUNNING] `rustc --crate-name foo --edition=2015 foo/src/lib.rs --error-format=json --json=[..] --crate-type lib --emit=[..] -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --check-cfg[..] --check-cfg[..] -C metadata=[..] -C extra-filename=[..] --out-dir [ROOT]/foo/target/debug/deps -L dependency=[ROOT]/foo/target/debug/deps`
1232
- ...
1233
- "# ] ]
1234
- } else {
1235
- str![ [ r#"
1236
- ...
1237
- [RUNNING] `rustc --crate-name foo --edition=2015 foo/src/lib.rs --error-format=json --json=[..] --crate-type lib --emit=[..] -C embed-bitcode=no -C debuginfo=2 --check-cfg[..] --check-cfg[..] -C metadata=[..] -C extra-filename=[..] --out-dir [ROOT]/foo/target/debug/deps -L dependency=[ROOT]/foo/target/debug/deps`
1238
- ...
1239
- "# ] ]
1240
- } ;
1241
1229
p. cargo ( "check -p foo -v" )
1242
1230
// Make sure `foo` is built without feat1
1243
- . with_stderr_data ( expected)
1231
+ . with_stderr_line_without (
1232
+ & [ "[RUNNING] `rustc --crate-name foo --edition=2015" ] ,
1233
+ & [ "--cfg[..]feat1" ] ,
1234
+ )
1244
1235
. run ( ) ;
1245
1236
}
1246
1237
You can’t perform that action at this time.
0 commit comments