[INFO] fetching crate bash-builtins 0.4.1... [INFO] checking bash-builtins-0.4.1 against try#943e2200e35c3825486c4671b6cab0107a07f8c1 for pr-148952 [INFO] extracting crate bash-builtins 0.4.1 into /workspace/builds/worker-1-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-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate bash-builtins 0.4.1 on toolchain 943e2200e35c3825486c4671b6cab0107a07f8c1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "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" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] db8e79a6d0ab8e66d65aec9034781c4495c65ea9cfb46cbd14d237a2e0531beb [INFO] running `Command { std: "docker" "start" "-a" "db8e79a6d0ab8e66d65aec9034781c4495c65ea9cfb46cbd14d237a2e0531beb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "db8e79a6d0ab8e66d65aec9034781c4495c65ea9cfb46cbd14d237a2e0531beb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db8e79a6d0ab8e66d65aec9034781c4495c65ea9cfb46cbd14d237a2e0531beb", kill_on_drop: false }` [INFO] [stdout] db8e79a6d0ab8e66d65aec9034781c4495c65ea9cfb46cbd14d237a2e0531beb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ada0f202669823dd6be33022fc1376817837787e304d36a8f72c9a205ddf938 [INFO] running `Command { std: "docker" "start" "-a" "8ada0f202669823dd6be33022fc1376817837787e304d36a8f72c9a205ddf938", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [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 serde_json v1.0.66 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling trybuild v1.0.43 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking glob v0.3.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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(rust_2024_compatibility)]`) 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] error: encountered dangling pointer in final value of mutable static [INFO] [stdout] --> examples/canpanic.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | builtin_metadata!(name = "canpanic", create = CanPanic::default); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `builtin_metadata` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: encountered dangling pointer in final value of mutable static [INFO] [stdout] --> examples/counter.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / builtin_metadata!( [INFO] [stdout] 7 | | name = "counter", [INFO] [stdout] 8 | | create = Counter::default, [INFO] [stdout] 9 | | short_doc = "counter [-r] [-s value] [-a value]", [INFO] [stdout] ... | [INFO] [stdout] 17 | | ", [INFO] [stdout] 18 | | ); [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `builtin_metadata` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bash-builtins` (example "canpanic") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: encountered dangling pointer in final value of mutable static [INFO] [stdout] --> examples/varcounter.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / builtin_metadata!( [INFO] [stdout] 8 | | name = "varcounter", [INFO] [stdout] 9 | | create = VarCounter::default, [INFO] [stdout] 10 | | short_doc = "varcounter [NAME] ...", [INFO] [stdout] ... | [INFO] [stdout] 18 | | ", [INFO] [stdout] 19 | | ); [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `builtin_metadata` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: encountered dangling pointer in final value of mutable static [INFO] [stdout] --> examples/unload.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | builtin_metadata!(name = "unload", create = Unload::default); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `builtin_metadata` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: encountered dangling pointer in final value of mutable static [INFO] [stdout] --> examples/usevars.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | builtin_metadata!(name = "usevars", create = UseVars::default); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `builtin_metadata` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bash-builtins` (example "varcounter") due to 1 previous error [INFO] [stderr] error: could not compile `bash-builtins` (example "usevars") due to 1 previous error [INFO] [stdout] error: encountered dangling pointer in final value of mutable static [INFO] [stdout] --> examples/loadfail.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | builtin_metadata!(name = "loadfail", try_create = try_create); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `builtin_metadata` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: encountered dangling pointer in final value of mutable static [INFO] [stdout] --> examples/filesize.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / builtin_metadata!( [INFO] [stdout] 8 | | name = "filesize", [INFO] [stdout] 9 | | create = FileSize::default, [INFO] [stdout] 10 | | short_doc = "filesize [args]", [INFO] [stdout] ... | [INFO] [stdout] 20 | | ", [INFO] [stdout] 21 | | ); [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `builtin_metadata` (in Nightly builds, run with -Z macro-backtrace for more info) [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: encountered dangling pointer in final value of mutable static [INFO] [stdout] --> examples/upcase.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / builtin_metadata!( [INFO] [stdout] 7 | | name = "upcase", [INFO] [stdout] 8 | | create = Upcase::default, [INFO] [stdout] 9 | | short_doc = "upcase [args]", [INFO] [stdout] ... | [INFO] [stdout] 12 | | ", [INFO] [stdout] 13 | | ); [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `builtin_metadata` (in Nightly builds, run with -Z macro-backtrace for more info) [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] error: could not compile `bash-builtins` (example "counter") due to 1 previous error [INFO] [stdout] error: encountered dangling pointer in final value of mutable static [INFO] [stdout] --> examples/nonrequiredargs.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | builtin_metadata!(name = "nonrequiredargs", create = NonRequiredArgs::default); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `builtin_metadata` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bash-builtins` (example "filesize") due to 1 previous error [INFO] [stderr] error: could not compile `bash-builtins` (example "unload") due to 1 previous error [INFO] [stderr] error: could not compile `bash-builtins` (example "loadfail") due to 1 previous error [INFO] [stderr] error: could not compile `bash-builtins` (example "nonrequiredargs") due to 1 previous error [INFO] [stderr] error: could not compile `bash-builtins` (example "upcase") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "8ada0f202669823dd6be33022fc1376817837787e304d36a8f72c9a205ddf938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ada0f202669823dd6be33022fc1376817837787e304d36a8f72c9a205ddf938", kill_on_drop: false }` [INFO] [stdout] 8ada0f202669823dd6be33022fc1376817837787e304d36a8f72c9a205ddf938