diff --git a/src/main.rs b/src/main.rs index 720489e..fbd09f3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)] diff --git a/tests/cmd/h.stdout b/tests/cmd/h.stdout index c450078..08b8aed 100644 --- a/tests/cmd/h.stdout +++ b/tests/cmd/h.stdout @@ -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" + ``` diff --git a/tests/cmd/help.stdout b/tests/cmd/help.stdout index ead0a74..d2b401b 100644 --- a/tests/cmd/help.stdout +++ b/tests/cmd/help.stdout @@ -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" + ```