[INFO] cloning repository https://github.com/toadslop/path-update [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/toadslop/path-update" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoadslop%2Fpath-update", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoadslop%2Fpath-update'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7d95564113314bbb74618d132647951a1bb4213b [INFO] checking toadslop/path-update against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoadslop%2Fpath-update" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/toadslop/path-update [INFO] finished tweaking git repo https://github.com/toadslop/path-update [INFO] tweaked toml for git repo https://github.com/toadslop/path-update written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/toadslop/path-update on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/toadslop/path-update already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e09788cc3c47c148a81ca0ee01044f69256e55823a9274f4a1a42ad5c4ccf74 [INFO] running `Command { std: "docker" "start" "-a" "7e09788cc3c47c148a81ca0ee01044f69256e55823a9274f4a1a42ad5c4ccf74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e09788cc3c47c148a81ca0ee01044f69256e55823a9274f4a1a42ad5c4ccf74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e09788cc3c47c148a81ca0ee01044f69256e55823a9274f4a1a42ad5c4ccf74", kill_on_drop: false }` [INFO] [stdout] 7e09788cc3c47c148a81ca0ee01044f69256e55823a9274f4a1a42ad5c4ccf74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4de7b97a81d5688464e3452b81ba235875f0d895a4bb62c508c6d810f65d1f65 [INFO] running `Command { std: "docker" "start" "-a" "4de7b97a81d5688464e3452b81ba235875f0d895a4bb62c508c6d810f65d1f65", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking thiserror v1.0.63 [INFO] [stderr] Checking the_path v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/path.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Path(Vec); [INFO] [stdout] | ---- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Path` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `for_process`, `for_user`, `for_shell`, and `for_system` are never used [INFO] [stdout] --> src/path.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Path { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | fn for_process() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn for_user() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn for_shell() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn for_system() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParsePathItemError` is never used [INFO] [stdout] --> src/path_item.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum ParsePathItemError {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:18:50 [INFO] [stdout] | [INFO] [stdout] 18 | fn for_process() -> Result { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 19 | | match env::var("PATH") { [INFO] [stdout] 20 | | Ok(path) => Self::from_str(&path), [INFO] [stdout] 21 | | Err(err) => match err { [INFO] [stdout] ... | [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | / match env::var("PATH") { [INFO] [stdout] 20 | | Ok(path) => Self::from_str(&path), [INFO] [stdout] 21 | | Err(err) => match err { [INFO] [stdout] 22 | | VarError::NotPresent => Self::from_str(""), [INFO] [stdout] 23 | | VarError::NotUnicode(val) => Self::from_str(&val.to_string_lossy()), [INFO] [stdout] 24 | | }, [INFO] [stdout] 25 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | Ok(path) => Self::from_str(&path), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | Err(err) => match err { [INFO] [stdout] | _________________________^ [INFO] [stdout] 22 | | VarError::NotPresent => Self::from_str(""), [INFO] [stdout] 23 | | VarError::NotUnicode(val) => Self::from_str(&val.to_string_lossy()), [INFO] [stdout] 24 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 22 | VarError::NotPresent => Self::from_str(""), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:23:46 [INFO] [stdout] | [INFO] [stdout] 23 | VarError::NotUnicode(val) => Self::from_str(&val.to_string_lossy()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:58:53 [INFO] [stdout] | [INFO] [stdout] 58 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 59 | | if s.is_empty() { [INFO] [stdout] 60 | | return Ok(Self(Vec::with_capacity(0))); [INFO] [stdout] ... | [INFO] [stdout] 69 | | Ok(Self(result)) [INFO] [stdout] 70 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | return Ok(Self(Vec::with_capacity(0))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | Ok(Self(result)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path_item.rs:15:53 [INFO] [stdout] | [INFO] [stdout] 15 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 16 | | let result = match Variable::from_str(s) { [INFO] [stdout] 17 | | Ok(var) => PathItem::Variable(var), [INFO] [stdout] 18 | | Err(_) => PathItem::Path(PathBuf::from(s)), [INFO] [stdout] ... | [INFO] [stdout] 21 | | Ok(result) [INFO] [stdout] 22 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path_item.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(result) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `the_path` (lib) due to 11 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: associated functions `for_process`, `for_user`, `for_shell`, and `for_system` are never used [INFO] [stdout] --> src/path.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Path { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | fn for_process() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn for_user() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn for_shell() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn for_system() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ParsePathItemError` is never used [INFO] [stdout] --> src/path_item.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum ParsePathItemError {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:18:50 [INFO] [stdout] | [INFO] [stdout] 18 | fn for_process() -> Result { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 19 | | match env::var("PATH") { [INFO] [stdout] 20 | | Ok(path) => Self::from_str(&path), [INFO] [stdout] 21 | | Err(err) => match err { [INFO] [stdout] ... | [INFO] [stdout] 26 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | / match env::var("PATH") { [INFO] [stdout] 20 | | Ok(path) => Self::from_str(&path), [INFO] [stdout] 21 | | Err(err) => match err { [INFO] [stdout] 22 | | VarError::NotPresent => Self::from_str(""), [INFO] [stdout] 23 | | VarError::NotUnicode(val) => Self::from_str(&val.to_string_lossy()), [INFO] [stdout] 24 | | }, [INFO] [stdout] 25 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | Ok(path) => Self::from_str(&path), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | Err(err) => match err { [INFO] [stdout] | _________________________^ [INFO] [stdout] 22 | | VarError::NotPresent => Self::from_str(""), [INFO] [stdout] 23 | | VarError::NotUnicode(val) => Self::from_str(&val.to_string_lossy()), [INFO] [stdout] 24 | | }, [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 22 | VarError::NotPresent => Self::from_str(""), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:23:46 [INFO] [stdout] | [INFO] [stdout] 23 | VarError::NotUnicode(val) => Self::from_str(&val.to_string_lossy()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:58:53 [INFO] [stdout] | [INFO] [stdout] 58 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 59 | | if s.is_empty() { [INFO] [stdout] 60 | | return Ok(Self(Vec::with_capacity(0))); [INFO] [stdout] ... | [INFO] [stdout] 69 | | Ok(Self(result)) [INFO] [stdout] 70 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | return Ok(Self(Vec::with_capacity(0))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | Ok(Self(result)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | let path = Path::from_str(EMPTY_PATH); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:88:26 [INFO] [stdout] | [INFO] [stdout] 88 | let path = match path { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:98:20 [INFO] [stdout] | [INFO] [stdout] 98 | let path = Path::from_str(PATH_ONE_ITEM_PATH); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | let path = match path { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path_item.rs:15:53 [INFO] [stdout] | [INFO] [stdout] 15 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 16 | | let result = match Variable::from_str(s) { [INFO] [stdout] 17 | | Ok(var) => PathItem::Variable(var), [INFO] [stdout] 18 | | Err(_) => PathItem::Path(PathBuf::from(s)), [INFO] [stdout] ... | [INFO] [stdout] 21 | | Ok(result) [INFO] [stdout] 22 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/path_item.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | Ok(result) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `the_path` (lib test) due to 15 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4de7b97a81d5688464e3452b81ba235875f0d895a4bb62c508c6d810f65d1f65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4de7b97a81d5688464e3452b81ba235875f0d895a4bb62c508c6d810f65d1f65", kill_on_drop: false }` [INFO] [stdout] 4de7b97a81d5688464e3452b81ba235875f0d895a4bb62c508c6d810f65d1f65