Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give --help example of using grep on stderr of rustc #360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ enum Cargo {
```
cargo bisect-rustc --start 6a1c0637ce44aeea6c60527f4c0e7fb33f2bcd0d \\
--end 866a713258915e6cbb212d135f751a6a8c9e1c0a --test-dir ../my_project/ --prompt -- build
```

Run `rustc` directly (without involving `cargo`) and use the presence of 'Undefined' in stderr
as the definition for a regression:
```
cargo bisect-rustc --start=2023-03-31 --end=2023-12-21 --script bash -- -c \\
\"rustc -Cpasses=lint -Cinstrument-coverage --crate-type=dylib test.rs 2>&1 | grep Undefined\"
```"
)]
#[allow(clippy::struct_excessive_bools)]
Expand Down
7 changes: 7 additions & 0 deletions tests/cmd/h.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,10 @@ Examples:
cargo bisect-rustc --start 6a1c0637ce44aeea6c60527f4c0e7fb33f2bcd0d /
--end 866a713258915e6cbb212d135f751a6a8c9e1c0a --test-dir ../my_project/ --prompt -- build
```

Run `rustc` directly (without involving `cargo`) and use the presence of 'Undefined' in stderr
as the definition for a regression:
```
cargo bisect-rustc --start=2023-03-31 --end=2023-12-21 --script bash -- -c /
"rustc -Cpasses=lint -Cinstrument-coverage --crate-type=dylib test.rs 2>&1 | grep Undefined"
```
7 changes: 7 additions & 0 deletions tests/cmd/help.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,10 @@ Examples:
cargo bisect-rustc --start 6a1c0637ce44aeea6c60527f4c0e7fb33f2bcd0d /
--end 866a713258915e6cbb212d135f751a6a8c9e1c0a --test-dir ../my_project/ --prompt -- build
```

Run `rustc` directly (without involving `cargo`) and use the presence of 'Undefined' in stderr
as the definition for a regression:
```
cargo bisect-rustc --start=2023-03-31 --end=2023-12-21 --script bash -- -c /
"rustc -Cpasses=lint -Cinstrument-coverage --crate-type=dylib test.rs 2>&1 | grep Undefined"
```
Loading