[INFO] cloning repository https://github.com/dries-vl/rustpy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dries-vl/rustpy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdries-vl%2Frustpy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdries-vl%2Frustpy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 398a77fc8cfabac174bd11b98cb68488ac7b0005 [INFO] checking dries-vl/rustpy against master#ba412a6e70ac84641be7764d088acabd0eb3fa39 for pr-145457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdries-vl%2Frustpy" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dries-vl/rustpy [INFO] finished tweaking git repo https://github.com/dries-vl/rustpy [INFO] tweaked toml for git repo https://github.com/dries-vl/rustpy written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dries-vl/rustpy on toolchain ba412a6e70ac84641be7764d088acabd0eb3fa39 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 70 packages to latest compatible versions [INFO] [stderr] Adding notify v6.1.1 (available: v8.2.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-3-tc1/source/rustpy-macros/Cargo.toml: library `rustpy_macros` should only specify `proc-macro = true` instead of setting `crate-type` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded python3-sys v0.7.2 [INFO] [stderr] Downloaded cpython v0.7.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a675018cfaee44f59c048b3018c9ecb58461e63ab55f779f8f8ab3d20e2ea6fd [INFO] running `Command { std: "docker" "start" "-a" "a675018cfaee44f59c048b3018c9ecb58461e63ab55f779f8f8ab3d20e2ea6fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a675018cfaee44f59c048b3018c9ecb58461e63ab55f779f8f8ab3d20e2ea6fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a675018cfaee44f59c048b3018c9ecb58461e63ab55f779f8f8ab3d20e2ea6fd", kill_on_drop: false }` [INFO] [stdout] a675018cfaee44f59c048b3018c9ecb58461e63ab55f779f8f8ab3d20e2ea6fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "+ba412a6e70ac84641be7764d088acabd0eb3fa39" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e5fc2fca4d713233a23dfc1b22a76b66372f00ed2fd3ca17f61bd46186b2c06 [INFO] running `Command { std: "docker" "start" "-a" "1e5fc2fca4d713233a23dfc1b22a76b66372f00ed2fd3ca17f61bd46186b2c06", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/rustpy-macros/Cargo.toml: library `rustpy_macros` should only specify `proc-macro = true` instead of setting `crate-type` [INFO] [stderr] Compiling proc-macro2 v1.0.97 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling cpython v0.7.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking ascii v1.1.0 [INFO] [stderr] Checking chunked_transfer v1.5.0 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking libloading v0.8.8 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking rustpy-dylib v0.1.0 (/opt/rustwide/workdir/rustpy-dylib) [INFO] [stderr] Checking tiny_http v0.12.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking quote v1.0.40 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking filetime v0.2.25 [INFO] [stderr] Checking syn v2.0.106 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking notify v6.1.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Checking rustpy-macros v0.1.0 (/opt/rustwide/workdir/rustpy-macros) [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling python3-sys v0.7.2 [INFO] [stderr] Checking rustpy v0.1.0 (/opt/rustwide/workdir/rustpy) [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> rustpy/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `lazy_cell` has been stable since 1.80.0 and no longer requires an attribute to enable [INFO] [stdout] --> rustpy/src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(lazy_cell)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> rustpy/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `lazy_cell` has been stable since 1.80.0 and no longer requires an attribute to enable [INFO] [stdout] --> rustpy/src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(lazy_cell)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_last_modified_time` is never used [INFO] [stdout] --> rustpy/src/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn get_last_modified_time(file_path: &str) -> SystemTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `menu` is never read [INFO] [stdout] --> rustpy/src/button.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Button { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 12 | pub id: String, [INFO] [stdout] 13 | menu: MenuResult, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Button` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PRESSED` and `RELEASED` are never constructed [INFO] [stdout] --> rustpy/src/button/button_result.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ButtonResult { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 4 | PRESSED, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | BROKEN, [INFO] [stdout] 6 | RELEASED [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ButtonResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Menu` is never constructed [INFO] [stdout] --> rustpy/src/menu.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Menu { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> rustpy/src/menu/menu_result.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | GOOD(ButtonResult) [INFO] [stdout] | ---- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MenuResult` 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] 6 - GOOD(ButtonResult) [INFO] [stdout] 6 + GOOD(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BAD` is never constructed [INFO] [stdout] --> rustpy/src/menu/menu_result.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum MenuResult { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 5 | BAD, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MenuResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> rustpy/src/my_dy_lib.rs:20:23 [INFO] [stdout] | [INFO] [stdout] 20 | let library_ref = LIBRARY.as_ref().expect("Library is empty"); [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: creating a shared reference to mutable static [INFO] [stdout] --> rustpy/src/my_dy_lib.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe { YOUR_FUNCTION.as_ref().expect("Function is empty")(value) } [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] [INFO] [stdout] [INFO] [stdout] warning: function `get_last_modified_time` is never used [INFO] [stdout] --> rustpy/src/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn get_last_modified_time(file_path: &str) -> SystemTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `menu` is never read [INFO] [stdout] --> rustpy/src/button.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Button { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 12 | pub id: String, [INFO] [stdout] 13 | menu: MenuResult, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Button` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PRESSED` and `RELEASED` are never constructed [INFO] [stdout] --> rustpy/src/button/button_result.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum ButtonResult { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 4 | PRESSED, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 5 | BROKEN, [INFO] [stdout] 6 | RELEASED [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ButtonResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Menu` is never constructed [INFO] [stdout] --> rustpy/src/menu.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Menu { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> rustpy/src/menu/menu_result.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | GOOD(ButtonResult) [INFO] [stdout] | ---- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MenuResult` 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] 6 - GOOD(ButtonResult) [INFO] [stdout] 6 + GOOD(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `BAD` is never constructed [INFO] [stdout] --> rustpy/src/menu/menu_result.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum MenuResult { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 5 | BAD, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MenuResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> rustpy/src/my_dy_lib.rs:20:23 [INFO] [stdout] | [INFO] [stdout] 20 | let library_ref = LIBRARY.as_ref().expect("Library is empty"); [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: creating a shared reference to mutable static [INFO] [stdout] --> rustpy/src/my_dy_lib.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe { YOUR_FUNCTION.as_ref().expect("Function is empty")(value) } [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] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.86s [INFO] running `Command { std: "docker" "inspect" "1e5fc2fca4d713233a23dfc1b22a76b66372f00ed2fd3ca17f61bd46186b2c06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e5fc2fca4d713233a23dfc1b22a76b66372f00ed2fd3ca17f61bd46186b2c06", kill_on_drop: false }` [INFO] [stdout] 1e5fc2fca4d713233a23dfc1b22a76b66372f00ed2fd3ca17f61bd46186b2c06