Skip to content

Commit f106af5

Browse files
committed
Show unused patch error after the output of cargo tree
1 parent f4caf7f commit f106af5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/nightly_cross_rustc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ jobs:
109109
cd ../..
110110
111111
echo Checking Rust
112-
cargo tree -i linux-raw-sys 2>&1 | grep "was not used in the crate graph" && (echo "Unused patches found"; cargo tree; exit 1) || exit 0
112+
cargo tree -i linux-raw-sys 2>&1 | grep "was not used in the crate graph" && { cargo tree; echo "Error: Unused patches found"; exit 1; } || exit 0
113113
114114
echo Checking rustc_codegen_gcc
115-
cargo tree --manifest-path compiler/rustc_codegen_gcc/Cargo.toml -i linux-raw-sys 2>&1 | grep "was not used in the crate graph" && (echo "Unused patches found"; cargo tree; exit 1) || exit 0
115+
cargo tree --manifest-path compiler/rustc_codegen_gcc/Cargo.toml -i linux-raw-sys 2>&1 | grep "was not used in the crate graph" && { cargo tree; echo "Error: Unused patches found"; exit 1; } || exit 0
116116
117117
- name: Compile rustc
118118
run: |
@@ -126,7 +126,7 @@ jobs:
126126
- name: Smoke test
127127
run: |
128128
sudo chroot vm qemu-${{ matrix.arch.cross_target }}-static /bin/sh -c '/home/stage2/bin/rustc' > output
129-
grep rustc output
129+
grep rustc2 output
130130
131131
# TODO: compile a test program for m68k when the compiler works.
132132
#- name: Compile test program

0 commit comments

Comments
 (0)