@@ -25,10 +25,13 @@ or (to avoid cloning rustc)
2525RUST_SRC_REPO=/path/to/rust cargo install cargo-bisect-rustc
2626```
2727
28- The ` RUST_SRC_REPO ` should be a path to a git clone of the rust repo. If you
29- don't specify it, it will look in the current directory for ` rust.git ` or
30- check it out automatically if it's not there (only necessary if doing git hash
31- bisections).
28+ The ` RUST_SRC_REPO ` should be a path to a git clone of the rust repo.
29+ The current order how ` cargo-bisect-rustc ` finds Rust repository path is:
30+ * ` RUST_SRC_REPO ` at runtime.
31+ * ` rust.git ` in current dir at runtime.
32+ * ` RUST_SRC_REPO ` that was set at compilation time.
33+ * Clone https://github.com/rust-lang/rust automatically
34+ (only necessary if doing git hash bisections).
3235
3336First, if you have a nightly version of the compiler already installed
3437as the default toolchain and you don't pass an end flag, the tool is
@@ -48,11 +51,6 @@ So, there's a bunch of ways to run the tool, the easiest one is to
4851allow the tool to do the job and just run ` cargo bisect-rustc ` on the
4952project and let the tool figure things out.
5053
51- Note: you can also pass ` RUST_SRC_REPO ` env var, should be a path to a
52- git clone of the rust repo. If you don't specify it, it will look in the
53- current directory for ` rust.git ` or check it out automatically if it's
54- not there (only necessary if doing git hash bisections).
55-
5654## Finding a regression
5755
5856Create a cargo project that demonstrates the regression. Let's use
@@ -142,7 +140,7 @@ d75458200516f06455d175adc001fd993d674050 bors Sat Jul 28 16:44:21 2018 +0000
142140```
143141
144142and we can, for example, pick the last commit on the day before the nightly,
145- ` 6323d9a45bdf0ac2a9319a6a558537e0a7e6abd1 ` , as the start of the range, and the
143+ ` 6323d9a45bdf0ac2a9319a6a558537e0a7e6abd1 ` , as the start of the range, and the
146144last commit on the day of the nightly, ` 866a713258915e6cbb212d135f751a6a8c9e1c0a ` ,
147145as the end of the range.
148146
0 commit comments