Skip to content

Add --regress example to tutorial. #140

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

Merged
merged 1 commit into from
Dec 8, 2021
Merged
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: 6 additions & 1 deletion TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ cargo bisect-rustc --test-dir=foo --start=2018-05-07 --end=2018-08-04
```

By default it will run `cargo build` in the project and check whether or not
it fails. In just a few steps, we find that it stopped working on
it fails. You can also use the flag `--regress` to specify other common
regression criteria, e.g. `--regress=ice` for internal compiler errors.

In out example, in just a few steps, we can we find that it stopped working on
`nightly-2018-07-30`.

> *Note:* Consider using the `--preserve` flag to keep the downloaded
Expand Down Expand Up @@ -222,6 +225,8 @@ previous interactive session can be hands-free automated with this script:
`foo/test.sh`:
```sh
#!/bin/sh

# Fail if we no longer get a `E0642` error:
cargo check 2>&1 | grep E0642
```

Expand Down