[INFO] fetching crate bash-builtins 0.4.1... [INFO] checking bash-builtins-0.4.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate bash-builtins 0.4.1 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate bash-builtins 0.4.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate bash-builtins 0.4.1 [INFO] tweaked toml for crates.io crate bash-builtins 0.4.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate bash-builtins 0.4.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate bash-builtins 0.4.1 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ee6abf270d26ba8f8b9dcfac9654656f991398cc9717932c2b15bfe48769e5f [INFO] running `Command { std: "docker" "start" "-a" "5ee6abf270d26ba8f8b9dcfac9654656f991398cc9717932c2b15bfe48769e5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ee6abf270d26ba8f8b9dcfac9654656f991398cc9717932c2b15bfe48769e5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ee6abf270d26ba8f8b9dcfac9654656f991398cc9717932c2b15bfe48769e5f", kill_on_drop: false }` [INFO] [stdout] 5ee6abf270d26ba8f8b9dcfac9654656f991398cc9717932c2b15bfe48769e5f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4bca3d7b0dbbaf238dc0b9731f6f8228631befa3ba93faacfea91d4ef211b665 [INFO] running `Command { std: "docker" "start" "-a" "4bca3d7b0dbbaf238dc0b9731f6f8228631befa3ba93faacfea91d4ef211b665", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Compiling trybuild v1.0.43 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling bash_builtins_macro v0.2.0 [INFO] [stderr] Checking bash-builtins v0.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `nentries` is never read [INFO] [stdout] --> src/ffi.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct HashTable { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 118 | pub nentries: c_int, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/variables/assoc.rs:87:37 [INFO] [stdout] | [INFO] [stdout] 87 | pub(super) unsafe fn new(table: &ffi::HashTable) -> AssocItemsIterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ------------------ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 87 | pub(super) unsafe fn new(table: &ffi::HashTable) -> AssocItemsIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/variables/dynvars.rs:165:22 [INFO] [stdout] | [INFO] [stdout] 165 | match unsafe { (*STATE.as_ptr()).lock() } { [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/variables/dynvars.rs:181:40 [INFO] [stdout] | [INFO] [stdout] 181 | if !shell_var.is_null() && (*shell_var).dynamic_value == read_var { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 181 - if !shell_var.is_null() && (*shell_var).dynamic_value == read_var { [INFO] [stdout] 181 + if !shell_var.is_null() && std::ptr::fn_addr_eq((*shell_var).dynamic_value, read_var as unsafe extern "C" fn(*mut ShellVar) -> *const ShellVar) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking toml v0.5.8 [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/nonrequiredargs.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | Foo(Option), [INFO] [stdout] | --- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Opt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 11 - Foo(Option), [INFO] [stdout] 11 + Foo(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> examples/nonrequiredargs.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | Bar(Option<&'a str>), [INFO] [stdout] | --- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Opt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 14 - Bar(Option<&'a str>), [INFO] [stdout] 14 + Bar(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/options_derive_macro.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | B(i64), [INFO] [stdout] | - ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Opt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 - B(i64), [INFO] [stdout] 16 + B(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/options_derive_macro.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | D(&'a std::path::Path), [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Opt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 22 - D(&'a std::path::Path), [INFO] [stdout] 22 + D(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/options_derive_macro.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | E(String), [INFO] [stdout] | - ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Opt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 25 - E(String), [INFO] [stdout] 25 + E(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> tests/options_derive_macro.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | G(std::path::PathBuf), [INFO] [stdout] | - ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Opt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 - G(std::path::PathBuf), [INFO] [stdout] 31 + G(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nentries` is never read [INFO] [stdout] --> src/ffi.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct HashTable { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 118 | pub nentries: c_int, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/variables/assoc.rs:87:37 [INFO] [stdout] | [INFO] [stdout] 87 | pub(super) unsafe fn new(table: &ffi::HashTable) -> AssocItemsIterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ------------------ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 87 | pub(super) unsafe fn new(table: &ffi::HashTable) -> AssocItemsIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/variables/dynvars.rs:165:22 [INFO] [stdout] | [INFO] [stdout] 165 | match unsafe { (*STATE.as_ptr()).lock() } { [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/variables/dynvars.rs:181:40 [INFO] [stdout] | [INFO] [stdout] 181 | if !shell_var.is_null() && (*shell_var).dynamic_value == read_var { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint [INFO] [stdout] | [INFO] [stdout] 181 - if !shell_var.is_null() && (*shell_var).dynamic_value == read_var { [INFO] [stdout] 181 + if !shell_var.is_null() && std::ptr::fn_addr_eq((*shell_var).dynamic_value, read_var as unsafe extern "C" fn(*mut ShellVar) -> *const ShellVar) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.28s [INFO] running `Command { std: "docker" "inspect" "4bca3d7b0dbbaf238dc0b9731f6f8228631befa3ba93faacfea91d4ef211b665", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bca3d7b0dbbaf238dc0b9731f6f8228631befa3ba93faacfea91d4ef211b665", kill_on_drop: false }` [INFO] [stdout] 4bca3d7b0dbbaf238dc0b9731f6f8228631befa3ba93faacfea91d4ef211b665