From 90965d3e1e7400351fb0b131c919b34197b28cf9 Mon Sep 17 00:00:00 2001 From: apiraino Date: Thu, 1 Feb 2024 11:10:13 +0100 Subject: [PATCH] Clarify docs about local src usage and script perms --- guide/src/examples/diagnostics.md | 2 +- guide/src/rust-src-repo.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/guide/src/examples/diagnostics.md b/guide/src/examples/diagnostics.md index 6f9b8c3..6bc8cc8 100644 --- a/guide/src/examples/diagnostics.md +++ b/guide/src/examples/diagnostics.md @@ -6,7 +6,7 @@ For example, this can check when either the wording has changed, or a different [#109067](https://github.com/rust-lang/rust/issues/109067) is an example of where this is necessary. A warning started being emitted, and it is the kind of warning that cannot be turned into an error with `deny(warnings)`. -The following script is intended to be used with the `--script` option: +The following script is intended to be used with the `--script` option (set the executable flag on the script, `chmod u+x`): ```sh #!/bin/sh diff --git a/guide/src/rust-src-repo.md b/guide/src/rust-src-repo.md index 8893a01..8c85328 100644 --- a/guide/src/rust-src-repo.md +++ b/guide/src/rust-src-repo.md @@ -27,6 +27,9 @@ If you don't use `gh`, you'll just need to copy and paste the token. `cargo-bisect-rustc` can also clone the rust repo in the current directory (as `rust.git`). This option can be quite slow if you don't specify the repo path at build time. You can specify this with the `--access` CLI argument: +```sh +cargo bisect-rustc --access=checkout +``` ## `RUST_SRC_REPO` environment variable