Skip to content

Commit 8c71848

Browse files
Kriskras99emilio
authored andcommitted
Fix creduce example
rustc-grep won't find [E0277] as it's reading it as a regex. The arguments need to be escaped
1 parent 7a4f04a commit 8c71848

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CONTRIBUTING.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,11 @@ to fail to compile `bindgen`'s emitted bindings, you can invoke `predicate.py`
490490
like this:
491491

492492
```bash
493+
# the rustc-grep argument expects a regex, thus escape where necessary
493494
path/to/rust-bindgen/csmith-fuzzing/predicate.py \
494495
--bindings-grep NameOfTheStructThatIsErroneouslyDerivingEq \
495496
--expect-compile-fail \
496-
--rustc-grep 'error[E0277]: the trait bound `f64: std::cmp::Eq` is not satisfied' \
497+
--rustc-grep 'error\[E0277\]: the trait bound `f64: std::cmp::Eq` is not satisfied' \
497498
./isolated-test-case.h
498499
```
499500

0 commit comments

Comments
 (0)