Skip to content

Commit 21bb60a

Browse files
committed
Replace grep -z by tr -d '\r\n' | grep for cross-compatibility
1 parent 8205c34 commit 21bb60a

File tree

1 file changed

+1
-1
lines changed
  • src/test/run-make/type-mismatch-same-crate-name

1 file changed

+1
-1
lines changed

src/test/run-make/type-mismatch-same-crate-name/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ all:
88
$(RUSTC) --crate-type=rlib crateB.rs --extern crateA=$(TMPDIR)/libcrateA-1.rlib
99
# make crateC depend on version 2 of crateA
1010
$(RUSTC) crateC.rs --extern crateA=$(TMPDIR)/libcrateA-2.rlib 2>&1 | \
11-
grep -z \
11+
tr -d '\r\n' | grep \
1212
"mismatched types.*\
1313
crateB::try_foo(foo2);.*\
1414
expected struct \`crateA::foo::Foo\`, found struct \`crateA::Foo\`.*\

0 commit comments

Comments
 (0)