[INFO] cloning repository https://github.com/Nandem/Rust_learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nandem/Rust_learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNandem%2FRust_learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNandem%2FRust_learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f6ba2518afb7cacb51835855bbd260bf98a628b1 [INFO] checking Nandem/Rust_learning against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNandem%2FRust_learning" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nandem/Rust_learning on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Nandem/Rust_learning [INFO] finished tweaking git repo https://github.com/Nandem/Rust_learning [INFO] tweaked toml for git repo https://github.com/Nandem/Rust_learning written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/Nandem/Rust_learning already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9f9c323d1b643b96c7cdeecec6e36725c5771b1a0120d525d817637f6b7a9259 [INFO] running `Command { std: "docker" "start" "-a" "9f9c323d1b643b96c7cdeecec6e36725c5771b1a0120d525d817637f6b7a9259", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9f9c323d1b643b96c7cdeecec6e36725c5771b1a0120d525d817637f6b7a9259", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f9c323d1b643b96c7cdeecec6e36725c5771b1a0120d525d817637f6b7a9259", kill_on_drop: false }` [INFO] [stdout] 9f9c323d1b643b96c7cdeecec6e36725c5771b1a0120d525d817637f6b7a9259 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2d2ccdb5c34a072ff2b6dc1f997106ded7c1d62eb308e2902ac6ee131ee94f20 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "2d2ccdb5c34a072ff2b6dc1f997106ded7c1d62eb308e2902ac6ee131ee94f20", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io` [INFO] [stdout] --> src/errors/error1.rs:39:49 [INFO] [stdout] | [INFO] [stdout] 39 | fn read_username_from_file1() -> Result { [INFO] [stdout] | ^^ use of undeclared crate or module `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io` [INFO] [stdout] --> src/errors/error1.rs:55:49 [INFO] [stdout] | [INFO] [stdout] 55 | fn read_username_from_file2() -> Result { [INFO] [stdout] | ^^ use of undeclared crate or module `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io` [INFO] [stdout] --> src/errors/error1.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | fn read_username_from_file3() -> Result { [INFO] [stdout] | ^^ use of undeclared crate or module `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io` [INFO] [stdout] --> src/errors/error1.rs:39:49 [INFO] [stdout] | [INFO] [stdout] 39 | fn read_username_from_file1() -> Result { [INFO] [stdout] | ^^ use of undeclared crate or module `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io` [INFO] [stdout] --> src/errors/error1.rs:55:49 [INFO] [stdout] | [INFO] [stdout] 55 | fn read_username_from_file2() -> Result { [INFO] [stdout] | ^^ use of undeclared crate or module `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io` [INFO] [stdout] --> src/errors/error1.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | fn read_username_from_file3() -> Result { [INFO] [stdout] | ^^ use of undeclared crate or module `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_to_string` found for struct `File` in the current scope [INFO] [stdout] --> src/errors/error1.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | match f.read_to_string(&mut s) { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `File` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use std::io::Read;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_to_string` found for struct `File` in the current scope [INFO] [stdout] --> src/errors/error1.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | match f.read_to_string(&mut s) { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `File` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use std::io::Read;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_to_string` found for struct `File` in the current scope [INFO] [stdout] --> src/errors/error1.rs:58:7 [INFO] [stdout] | [INFO] [stdout] 58 | f.read_to_string(&mut s)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `File` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use std::io::Read;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_to_string` found for struct `File` in the current scope [INFO] [stdout] --> src/errors/error1.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | File::open("hello.txt")?.read_to_string(&mut s)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `File` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use std::io::Read;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_to_string` found for struct `File` in the current scope [INFO] [stdout] --> src/errors/error1.rs:58:7 [INFO] [stdout] | [INFO] [stdout] 58 | f.read_to_string(&mut s)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `File` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use std::io::Read;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_to_string` found for struct `File` in the current scope [INFO] [stdout] --> src/errors/error1.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | File::open("hello.txt")?.read_to_string(&mut s)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `File` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use std::io::Read;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `learning` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "2d2ccdb5c34a072ff2b6dc1f997106ded7c1d62eb308e2902ac6ee131ee94f20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d2ccdb5c34a072ff2b6dc1f997106ded7c1d62eb308e2902ac6ee131ee94f20", kill_on_drop: false }` [INFO] [stdout] 2d2ccdb5c34a072ff2b6dc1f997106ded7c1d62eb308e2902ac6ee131ee94f20