Skip to content

Commit 3a19de7

Browse files
henry40408weihanglo
andcommitted
refactor: apply suggestions from code review
Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
1 parent dd59059 commit 3a19de7

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tests/testsuite/shell_quoting.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,14 @@ fn features_are_quoted() {
2727
p.cargo("check -v")
2828
.env("MSYSTEM", "1")
2929
.with_status(101)
30-
.with_stderr_data(str![])
3130
.with_stderr_data(str![[r#"
3231
[CHECKING] foo v0.1.0 ([ROOT]/foo)
33-
[RUNNING] `rustc --crate-name foo --edition=2015 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="some_feature"' -C metadata=c2925e00c1458fcb -C extra-filename=-c2925e00c1458fcb --out-dir [ROOT]/foo/target/debug/deps -L dependency=[ROOT]/foo/target/debug/deps`
34-
error[E0425]: cannot find value `error` in this scope
35-
--> src/main.rs:1:12
36-
|
37-
1 | fn main() {error}
38-
| ^^^^^ not found in this scope
39-
40-
For more information about this error, try `rustc --explain E0425`.
32+
[RUNNING] `rustc [..] --cfg 'feature="default"' --cfg 'feature="some_feature"' [..]`
33+
...
4134
[ERROR] could not compile `foo` (bin "foo") due to 1 previous error
4235
4336
Caused by:
44-
process didn't exit successfully: `rustc --crate-name foo --edition=2015 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="some_feature"' -C metadata=c2925e00c1458fcb -C extra-filename=-c2925e00c1458fcb --out-dir [ROOT]/foo/target/debug/deps -L dependency=[ROOT]/foo/target/debug/deps` (exit status: 1)
37+
process didn't exit successfully: [..] --cfg 'feature="default"' --cfg 'feature="some_feature"' [..]
4538
4639
"#]])
4740
.run();

0 commit comments

Comments
 (0)