[INFO] cloning repository https://github.com/iamcaye/rust-note-app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iamcaye/rust-note-app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamcaye%2Frust-note-app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamcaye%2Frust-note-app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8b96c9022c177430f885c9ef133f8808f5daa598 [INFO] testing iamcaye/rust-note-app against 1.99.0-beta.1+cargoflags=--release for beta-release-1.99-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamcaye%2Frust-note-app" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/iamcaye/rust-note-app [INFO] finished tweaking git repo https://github.com/iamcaye/rust-note-app [INFO] tweaked toml for git repo https://github.com/iamcaye/rust-note-app written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/iamcaye/rust-note-app on toolchain 1.99.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/iamcaye/rust-note-app 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" "+1.99.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424 [INFO] running `Command { std: "docker" "start" "5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling note-app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `title`, `content`, and `created_at` are never read [INFO] [stdout] --> src/menu.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Note { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | pub id: i32, [INFO] [stdout] 8 | pub title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | pub created_at: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Note` 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: creating a shared reference to mutable static [INFO] [stdout] --> src/menu/actions.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | id: unsafe { super::NOTES.len() as i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/menu/actions.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | super::NOTES.push(new_note); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/menu/actions.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | for note in super::NOTES.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/menu/actions.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | let index = super::NOTES.iter().position(|note| note.id == id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/menu/actions.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | super::NOTES.remove(index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 5.90s [INFO] running `Command { std: "docker" "inspect" "5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling note-app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `title`, `content`, and `created_at` are never read [INFO] [stdout] --> src/menu.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Note { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | pub id: i32, [INFO] [stdout] 8 | pub title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 10 | pub created_at: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Note` 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: creating a shared reference to mutable static [INFO] [stdout] --> src/menu/actions.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | id: unsafe { super::NOTES.len() as i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/menu/actions.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | super::NOTES.push(new_note); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/menu/actions.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | for note in super::NOTES.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/menu/actions.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | let index = super::NOTES.iter().position(|note| note.id == id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [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] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/menu/actions.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | super::NOTES.remove(index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.32s [INFO] running `Command { std: "docker" "inspect" "5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen" "--release", kill_on_drop: false }` [INFO] [stderr] warning: fields `title`, `content`, and `created_at` are never read [INFO] [stdout] [INFO] [stderr] --> src/menu.rs:8:9 [INFO] [stdout] running 0 tests [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 6 | pub struct Note { [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | ---- fields in this struct [INFO] [stdout] [INFO] [stderr] 7 | pub id: i32, [INFO] [stderr] 8 | pub title: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 9 | pub content: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 10 | pub created_at: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Note` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/menu/actions.rs:13:22 [INFO] [stderr] | [INFO] [stderr] 13 | id: unsafe { super::NOTES.len() as i32 }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/menu/actions.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | super::NOTES.push(new_note); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/menu/actions.rs:27:21 [INFO] [stderr] | [INFO] [stderr] 27 | for note in super::NOTES.iter() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/menu/actions.rs:38:21 [INFO] [stderr] | [INFO] [stderr] 38 | let index = super::NOTES.iter().position(|note| note.id == id); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/menu/actions.rs:41:17 [INFO] [stderr] | [INFO] [stderr] 41 | super::NOTES.remove(index); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = help: use a type that relies on "interior mutability" instead; to read more on this, visit [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `note-app` (bin "note-app" test) generated 6 warnings [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/release/deps/note_app-a52f092d30a9f2de) [INFO] running `Command { std: "docker" "inspect" "5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424", kill_on_drop: false }` [INFO] [stdout] 5a499ca046c78aed0d7da11c5b5bef6e0b843581a0be3cc6102ace9893f12424