[INFO] cloning repository https://github.com/xexelo/rusty-journal [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xexelo/rusty-journal" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxexelo%2Frusty-journal", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxexelo%2Frusty-journal'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1209776fe47067bcd59d92d01aefda946792b425 [INFO] checking xexelo/rusty-journal against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxexelo%2Frusty-journal" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xexelo/rusty-journal on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xexelo/rusty-journal [INFO] finished tweaking git repo https://github.com/xexelo/rusty-journal [INFO] tweaked toml for git repo https://github.com/xexelo/rusty-journal written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/xexelo/rusty-journal 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde v1.0.185 [INFO] [stderr] Downloaded serde_derive v1.0.185 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aa15bd8cecc1199da093f77ef13d0aaf6698fce9ebb8be3f468b6d3eda3329e7 [INFO] running `Command { std: "docker" "start" "-a" "aa15bd8cecc1199da093f77ef13d0aaf6698fce9ebb8be3f468b6d3eda3329e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aa15bd8cecc1199da093f77ef13d0aaf6698fce9ebb8be3f468b6d3eda3329e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa15bd8cecc1199da093f77ef13d0aaf6698fce9ebb8be3f468b6d3eda3329e7", kill_on_drop: false }` [INFO] [stdout] aa15bd8cecc1199da093f77ef13d0aaf6698fce9ebb8be3f468b6d3eda3329e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa9f633251dc29cc5ee11f660cfce696b03a42e275bf175699d44a4e07b5a792 [INFO] running `Command { std: "docker" "start" "-a" "aa9f633251dc29cc5ee11f660cfce696b03a42e275bf175699d44a4e07b5a792", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.185 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling serde_derive v1.0.185 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Checking serde_json v1.0.105 [INFO] [stderr] Checking rusty-journal v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tasks.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/tasks.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.90s [INFO] running `Command { std: "docker" "inspect" "aa9f633251dc29cc5ee11f660cfce696b03a42e275bf175699d44a4e07b5a792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa9f633251dc29cc5ee11f660cfce696b03a42e275bf175699d44a4e07b5a792", kill_on_drop: false }` [INFO] [stdout] aa9f633251dc29cc5ee11f660cfce696b03a42e275bf175699d44a4e07b5a792 [INFO] checking xexelo/rusty-journal against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxexelo%2Frusty-journal" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xexelo/rusty-journal on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xexelo/rusty-journal [INFO] finished tweaking git repo https://github.com/xexelo/rusty-journal [INFO] tweaked toml for git repo https://github.com/xexelo/rusty-journal written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/xexelo/rusty-journal 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9894ad64bf244ea26e609f55a07e1ff36fc82ba1b50c7ccb95c186270e9fef24 [INFO] running `Command { std: "docker" "start" "-a" "9894ad64bf244ea26e609f55a07e1ff36fc82ba1b50c7ccb95c186270e9fef24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9894ad64bf244ea26e609f55a07e1ff36fc82ba1b50c7ccb95c186270e9fef24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9894ad64bf244ea26e609f55a07e1ff36fc82ba1b50c7ccb95c186270e9fef24", kill_on_drop: false }` [INFO] [stdout] 9894ad64bf244ea26e609f55a07e1ff36fc82ba1b50c7ccb95c186270e9fef24 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3e340452689981ba5017b1adf52f865f4de50ade8f7eb723f99aa9fda75eff26 [INFO] running `Command { std: "docker" "start" "-a" "3e340452689981ba5017b1adf52f865f4de50ade8f7eb723f99aa9fda75eff26", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.185 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling serde_derive v1.0.185 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking serde_json v1.0.105 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Checking rusty-journal v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/tasks.rs (2 fixes) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.59s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rusty-journal v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> src/tasks.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | if fs::read(PathBuf::from("./test1.json")).is_ok() { [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | if fs::read(PathBuf::from("./test1.json")).is_ok() { [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> src/tasks.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | fs::remove_file(PathBuf::from("./test1.json")).expect("Couldn't clean test file up"); [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:106:29 [INFO] [stdout] | [INFO] [stdout] 106 | fs::remove_file(PathBuf::from("./test1.json")).expect("Couldn't clean test file up"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OpenOptions` [INFO] [stdout] --> src/tasks.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | let file = OpenOptions::new() [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `OpenOptions` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::OpenOptions; [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs::OpenOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `collect_tasks` in this scope [INFO] [stdout] --> src/tasks.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | let tasks = collect_tasks(&file).expect("Couldn't read file"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::collect_tasks; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Task` in this scope [INFO] [stdout] --> src/tasks.rs:118:28 [INFO] [stdout] | [INFO] [stdout] 118 | let empty_vec: Vec = vec![]; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 103 + use crate::Task; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> src/tasks.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | fs::remove_file(PathBuf::from("./test1.json")).expect("Couldn't clean test file up") [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 120 | fs::remove_file(PathBuf::from("./test1.json")).expect("Couldn't clean test file up") [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> src/tasks.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | if fs::read(PathBuf::from("./test2.json")).is_ok() { [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | if fs::read(PathBuf::from("./test2.json")).is_ok() { [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> src/tasks.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | fs::remove_file(PathBuf::from("./test2.json")).expect("Couldn't clean test file up"); [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:126:29 [INFO] [stdout] | [INFO] [stdout] 126 | fs::remove_file(PathBuf::from("./test2.json")).expect("Couldn't clean test file up"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Task` [INFO] [stdout] --> src/tasks.rs:128:20 [INFO] [stdout] | [INFO] [stdout] 128 | let task = Task::new(String::from("Teste")); [INFO] [stdout] | ^^^^ use of undeclared type `Task` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 103 + use crate::Task; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add_task` in this scope [INFO] [stdout] --> src/tasks.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | add_task(PathBuf::from("./test2.json"), task.clone()).expect("Couldn't add task"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::add_task; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:130:18 [INFO] [stdout] | [INFO] [stdout] 130 | add_task(PathBuf::from("./test2.json"), task.clone()).expect("Couldn't add task"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OpenOptions` [INFO] [stdout] --> src/tasks.rs:132:20 [INFO] [stdout] | [INFO] [stdout] 132 | let file = OpenOptions::new() [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `OpenOptions` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::OpenOptions; [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs::OpenOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:136:19 [INFO] [stdout] | [INFO] [stdout] 136 | .open(PathBuf::from("./test2.json")) [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `collect_tasks` in this scope [INFO] [stdout] --> src/tasks.rs:139:21 [INFO] [stdout] | [INFO] [stdout] 139 | let tasks = collect_tasks(&file).expect("Couldn't read file"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::collect_tasks; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> src/tasks.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | fs::remove_file(PathBuf::from("./test2.json")).expect("Couldn't clean test file up") [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:142:25 [INFO] [stdout] | [INFO] [stdout] 142 | fs::remove_file(PathBuf::from("./test2.json")).expect("Couldn't clean test file up") [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> src/tasks.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | if fs::read(PathBuf::from("./test3.json")).is_ok() { [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:147:21 [INFO] [stdout] | [INFO] [stdout] 147 | if fs::read(PathBuf::from("./test3.json")).is_ok() { [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> src/tasks.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | fs::remove_file(PathBuf::from("./test3.json")).expect("Couldn't clean test file up"); [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:148:29 [INFO] [stdout] | [INFO] [stdout] 148 | fs::remove_file(PathBuf::from("./test3.json")).expect("Couldn't clean test file up"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Task` [INFO] [stdout] --> src/tasks.rs:150:20 [INFO] [stdout] | [INFO] [stdout] 150 | let task = Task::new(String::from("Teste")); [INFO] [stdout] | ^^^^ use of undeclared type `Task` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 103 + use crate::Task; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add_task` in this scope [INFO] [stdout] --> src/tasks.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | add_task(PathBuf::from("./test3.json"), task.clone()).expect("Couldn't add task"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::add_task; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:152:18 [INFO] [stdout] | [INFO] [stdout] 152 | add_task(PathBuf::from("./test3.json"), task.clone()).expect("Couldn't add task"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add_task` in this scope [INFO] [stdout] --> src/tasks.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | add_task(PathBuf::from("./test3.json"), task.clone()).expect("Couldn't add task"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::add_task; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:153:18 [INFO] [stdout] | [INFO] [stdout] 153 | add_task(PathBuf::from("./test3.json"), task.clone()).expect("Couldn't add task"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add_task` in this scope [INFO] [stdout] --> src/tasks.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | add_task(PathBuf::from("./test3.json"), task.clone()).expect("Couldn't add task"); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::add_task; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:154:18 [INFO] [stdout] | [INFO] [stdout] 154 | add_task(PathBuf::from("./test3.json"), task.clone()).expect("Couldn't add task"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OpenOptions` [INFO] [stdout] --> src/tasks.rs:156:20 [INFO] [stdout] | [INFO] [stdout] 156 | let file = OpenOptions::new() [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `OpenOptions` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::OpenOptions; [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs::OpenOptions; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:160:19 [INFO] [stdout] | [INFO] [stdout] 160 | .open(PathBuf::from("./test3.json")) [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `collect_tasks` in this scope [INFO] [stdout] --> src/tasks.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | let tasks = collect_tasks(&file).expect("Couldn't read file"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::collect_tasks; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `complete_task` in this scope [INFO] [stdout] --> src/tasks.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | complete_task(PathBuf::from("./test3.json"), 2).expect("Couldn't complete task number 1"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::complete_task; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:167:23 [INFO] [stdout] | [INFO] [stdout] 167 | complete_task(PathBuf::from("./test3.json"), 2).expect("Couldn't complete task number 1"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `collect_tasks` in this scope [INFO] [stdout] --> src/tasks.rs:169:29 [INFO] [stdout] | [INFO] [stdout] 169 | let updated_tasks = collect_tasks(&file).expect("Couldn't read file"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 103 + use crate::tasks::collect_tasks; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> src/tasks.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | fs::remove_file(PathBuf::from("./test3.json")).expect("Couldn't clean test file up") [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 103 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/tasks.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 173 | fs::remove_file(PathBuf::from("./test3.json")).expect("Couldn't clean test file up") [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 103 + use crate::PathBuf; [INFO] [stdout] | [INFO] [stdout] 103 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 40 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rusty-journal` (bin "rusty-journal" test) due to 41 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "3e340452689981ba5017b1adf52f865f4de50ade8f7eb723f99aa9fda75eff26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e340452689981ba5017b1adf52f865f4de50ade8f7eb723f99aa9fda75eff26", kill_on_drop: false }` [INFO] [stdout] 3e340452689981ba5017b1adf52f865f4de50ade8f7eb723f99aa9fda75eff26