[INFO] cloning repository https://github.com/ManjulaNishanth/io [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ManjulaNishanth/io" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FManjulaNishanth%2Fio", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FManjulaNishanth%2Fio'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 24bad12464cacadfe7765c6bb18b197397d1d94a [INFO] checking ManjulaNishanth/io/24bad12464cacadfe7765c6bb18b197397d1d94a against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FManjulaNishanth%2Fio" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ManjulaNishanth/io on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ManjulaNishanth/io [INFO] finished tweaking git repo https://github.com/ManjulaNishanth/io [INFO] tweaked toml for git repo https://github.com/ManjulaNishanth/io written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ManjulaNishanth/io 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6648ce231f90f9aade3e63a7e510be101024a76ba02fb6da7e9b4459f364da4b [INFO] running `Command { std: "docker" "start" "-a" "6648ce231f90f9aade3e63a7e510be101024a76ba02fb6da7e9b4459f364da4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6648ce231f90f9aade3e63a7e510be101024a76ba02fb6da7e9b4459f364da4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6648ce231f90f9aade3e63a7e510be101024a76ba02fb6da7e9b4459f364da4b", kill_on_drop: false }` [INFO] [stdout] 6648ce231f90f9aade3e63a7e510be101024a76ba02fb6da7e9b4459f364da4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d720708327f84862241f2b8e4df00e15c616bd3d39ce981db307619c2595ffa2 [INFO] running `Command { std: "docker" "start" "-a" "d720708327f84862241f2b8e4df00e15c616bd3d39ce981db307619c2595ffa2", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking io v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/io/create_file.rs (3 fixes) [INFO] [stdout] warning: function `create_file` is never used [INFO] [stdout] --> src/io/create_file.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn create_file(file_name: &PathBuf) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_open` is never used [INFO] [stdout] --> src/io/create_file.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn file_open(file_name: &PathBuf) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_metadata` is never used [INFO] [stdout] --> src/io/create_file.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn write_metadata( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `apend_metadata` is never used [INFO] [stdout] --> src/io/create_file.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn apend_metadata(path: &PathBuf, input: &Value) -> Result<(), io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_file` is never used [INFO] [stdout] --> src/io/create_file.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn copy_file(origin: &Path, destination: &Path) -> Result<(), io::Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_file` is never used [INFO] [stdout] --> src/io/create_file.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn remove_file(origin: &Path) -> Result<(), io::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.09s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking io v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: function `create_file` is never used [INFO] [stdout] --> src/io/create_file.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn create_file(file_name: &PathBuf) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_open` is never used [INFO] [stdout] --> src/io/create_file.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn file_open(file_name: &PathBuf) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_metadata` is never used [INFO] [stdout] --> src/io/create_file.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn write_metadata( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `apend_metadata` is never used [INFO] [stdout] --> src/io/create_file.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn apend_metadata(path: &PathBuf, input: &Value) -> Result<(), io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `copy_file` is never used [INFO] [stdout] --> src/io/create_file.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn copy_file(origin: &Path, destination: &Path) -> Result<(), io::Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_file` is never used [INFO] [stdout] --> src/io/create_file.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn remove_file(origin: &Path) -> Result<(), io::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> src/io/create_file.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | let input = json!({"file_name": "data2.txt"}); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 65 + use serde_json::json; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/io/create_file.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | let path = Path::new("./").join("data.json"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::Path; [INFO] [stdout] | [INFO] [stdout] 65 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_file` in this scope [INFO] [stdout] --> src/io/create_file.rs:69:23 [INFO] [stdout] | [INFO] [stdout] 69 | let created = create_file(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::create_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/io/create_file.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | let path = Path::new("./").join("data.json"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::Path; [INFO] [stdout] | [INFO] [stdout] 65 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `file_open` in this scope [INFO] [stdout] --> src/io/create_file.rs:77:23 [INFO] [stdout] | [INFO] [stdout] 77 | let created = file_open(&path).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::file_open; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/io/create_file.rs:83:25 [INFO] [stdout] | [INFO] [stdout] 83 | let mut input = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::HashMap; [INFO] [stdout] | [INFO] [stdout] 65 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/io/create_file.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | let path = Path::new("./").join("data.json"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::Path; [INFO] [stdout] | [INFO] [stdout] 65 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `write_metadata` in this scope [INFO] [stdout] --> src/io/create_file.rs:88:23 [INFO] [stdout] | [INFO] [stdout] 88 | let created = write_metadata(&path, &input).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::write_metadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/io/create_file.rs:95:20 [INFO] [stdout] | [INFO] [stdout] 95 | let path = Path::new("./").join("data.json"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::Path; [INFO] [stdout] | [INFO] [stdout] 65 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `apend_metadata` in this scope [INFO] [stdout] --> src/io/create_file.rs:97:23 [INFO] [stdout] | [INFO] [stdout] 97 | let created = apend_metadata(&path, &input).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::apend_metadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/io/create_file.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | let from = Path::new("data.json"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::Path; [INFO] [stdout] | [INFO] [stdout] 65 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/io/create_file.rs:104:18 [INFO] [stdout] | [INFO] [stdout] 104 | let to = Path::new("data_copy.txt"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::Path; [INFO] [stdout] | [INFO] [stdout] 65 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `copy_file` in this scope [INFO] [stdout] --> src/io/create_file.rs:106:22 [INFO] [stdout] | [INFO] [stdout] 106 | let result = copy_file(from, to).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::copy_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/io/create_file.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 112 | let from = Path::new("data.json"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::Path; [INFO] [stdout] | [INFO] [stdout] 65 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/io/create_file.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | let to = Path::new("data_copy1.txt"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::Path; [INFO] [stdout] | [INFO] [stdout] 65 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `copy_file` in this scope [INFO] [stdout] --> src/io/create_file.rs:115:22 [INFO] [stdout] | [INFO] [stdout] 115 | let result = copy_file(from, to).unwrap(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::copy_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/io/create_file.rs:121:25 [INFO] [stdout] | [INFO] [stdout] 121 | let file_path = Path::new("data_copy.txt"); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::Path; [INFO] [stdout] | [INFO] [stdout] 65 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `remove_file` in this scope [INFO] [stdout] --> src/io/create_file.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | let result = remove_file(file_path).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::fs::remove_file; [INFO] [stdout] | [INFO] [stdout] 65 + use crate::io::create_file::remove_file; [INFO] [stdout] | [INFO] [stdout] 65 + use std::fs::remove_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `io` (bin "io" test) due to 19 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" "d720708327f84862241f2b8e4df00e15c616bd3d39ce981db307619c2595ffa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d720708327f84862241f2b8e4df00e15c616bd3d39ce981db307619c2595ffa2", kill_on_drop: false }` [INFO] [stdout] d720708327f84862241f2b8e4df00e15c616bd3d39ce981db307619c2595ffa2