[INFO] updating cached repository Nandem/Rust_learning [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/Nandem/Rust_learning [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/Nandem/Rust_learning" "work/ex/pr-62849/sources/master#435236b8877cdb98c82eaebfb7887782277265c5/gh/Nandem/Rust_learning"` [INFO] [stderr] Cloning into 'work/ex/pr-62849/sources/master#435236b8877cdb98c82eaebfb7887782277265c5/gh/Nandem/Rust_learning'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/Nandem/Rust_learning" "work/ex/pr-62849/sources/try#b5c7f157c20453dde8d47371abe73b32351b4e7f/gh/Nandem/Rust_learning"` [INFO] [stderr] Cloning into 'work/ex/pr-62849/sources/try#b5c7f157c20453dde8d47371abe73b32351b4e7f/gh/Nandem/Rust_learning'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] f6ba2518afb7cacb51835855bbd260bf98a628b1 [INFO] sha for GitHub repo Nandem/Rust_learning: f6ba2518afb7cacb51835855bbd260bf98a628b1 [INFO] validating manifest of Nandem/Rust_learning on toolchain master#435236b8877cdb98c82eaebfb7887782277265c5 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+435236b8877cdb98c82eaebfb7887782277265c5-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of Nandem/Rust_learning on toolchain try#b5c7f157c20453dde8d47371abe73b32351b4e7f [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+b5c7f157c20453dde8d47371abe73b32351b4e7f-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing Nandem/Rust_learning [INFO] finished frobbing Nandem/Rust_learning [INFO] frobbed toml for Nandem/Rust_learning written to work/ex/pr-62849/sources/master#435236b8877cdb98c82eaebfb7887782277265c5/gh/Nandem/Rust_learning/Cargo.toml [INFO] started frobbing Nandem/Rust_learning [INFO] finished frobbing Nandem/Rust_learning [INFO] frobbed toml for Nandem/Rust_learning written to work/ex/pr-62849/sources/try#b5c7f157c20453dde8d47371abe73b32351b4e7f/gh/Nandem/Rust_learning/Cargo.toml [INFO] crate Nandem/Rust_learning already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+435236b8877cdb98c82eaebfb7887782277265c5-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+b5c7f157c20453dde8d47371abe73b32351b4e7f-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking Nandem/Rust_learning against try#b5c7f157c20453dde8d47371abe73b32351b4e7f for pr-62849 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-62849/worker-6/try#b5c7f157c20453dde8d47371abe73b32351b4e7f:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-62849/sources/try#b5c7f157c20453dde8d47371abe73b32351b4e7f/gh/Nandem/Rust_learning:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+b5c7f157c20453dde8d47371abe73b32351b4e7f-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] a1e356fca23cd4eccec12380290bb6b9f978986bcc33c57b6959611bbf6eeaa0 [INFO] running `"docker" "start" "-a" "a1e356fca23cd4eccec12380290bb6b9f978986bcc33c57b6959611bbf6eeaa0"` [INFO] [stderr] Checking learning v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `io` [INFO] [stderr] --> src/errors/error1.rs:39:49 [INFO] [stderr] | [INFO] [stderr] 39 | fn read_username_from_file1() -> Result { [INFO] [stderr] | ^^ use of undeclared type or module `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `io` [INFO] [stderr] --> src/errors/error1.rs:55:49 [INFO] [stderr] | [INFO] [stderr] 55 | fn read_username_from_file2() -> Result { [INFO] [stderr] | ^^ use of undeclared type or module `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `io` [INFO] [stderr] --> src/errors/error1.rs:62:49 [INFO] [stderr] | [INFO] [stderr] 62 | fn read_username_from_file3() -> Result { [INFO] [stderr] | ^^ use of undeclared type or module `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `io` [INFO] [stderr] --> src/errors/error1.rs:39:49 [INFO] [stderr] | [INFO] [stderr] 39 | fn read_username_from_file1() -> Result { [INFO] [stderr] | ^^ use of undeclared type or module `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `io` [INFO] [stderr] --> src/errors/error1.rs:55:49 [INFO] [stderr] | [INFO] [stderr] 55 | fn read_username_from_file2() -> Result { [INFO] [stderr] | ^^ use of undeclared type or module `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `io` [INFO] [stderr] --> src/errors/error1.rs:62:49 [INFO] [stderr] | [INFO] [stderr] 62 | fn read_username_from_file3() -> Result { [INFO] [stderr] | ^^ use of undeclared type or module `io` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read_to_string` found for type `std::fs::File` in the current scope [INFO] [stderr] --> src/errors/error1.rs:49:13 [INFO] [stderr] | [INFO] [stderr] 49 | match f.read_to_string(&mut s) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::io::Read;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read_to_string` found for type `std::fs::File` in the current scope [INFO] [stderr] --> src/errors/error1.rs:58:7 [INFO] [stderr] | [INFO] [stderr] 58 | f.read_to_string(&mut s)?; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::io::Read;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read_to_string` found for type `std::fs::File` in the current scope [INFO] [stderr] --> src/errors/error1.rs:65:30 [INFO] [stderr] | [INFO] [stderr] 65 | File::open("hello.txt")?.read_to_string(&mut s)?; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::io::Read;` [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0433`. [INFO] [stderr] error: Could not compile `learning`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0599]: no method named `read_to_string` found for type `std::fs::File` in the current scope [INFO] [stderr] --> src/errors/error1.rs:49:13 [INFO] [stderr] | [INFO] [stderr] 49 | match f.read_to_string(&mut s) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::io::Read;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read_to_string` found for type `std::fs::File` in the current scope [INFO] [stderr] --> src/errors/error1.rs:58:7 [INFO] [stderr] | [INFO] [stderr] 58 | f.read_to_string(&mut s)?; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::io::Read;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `read_to_string` found for type `std::fs::File` in the current scope [INFO] [stderr] --> src/errors/error1.rs:65:30 [INFO] [stderr] | [INFO] [stderr] 65 | File::open("hello.txt")?.read_to_string(&mut s)?; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::io::Read;` [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0433`. [INFO] [stderr] error: Could not compile `learning`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "a1e356fca23cd4eccec12380290bb6b9f978986bcc33c57b6959611bbf6eeaa0"` [INFO] running `"docker" "rm" "-f" "a1e356fca23cd4eccec12380290bb6b9f978986bcc33c57b6959611bbf6eeaa0"` [INFO] [stdout] a1e356fca23cd4eccec12380290bb6b9f978986bcc33c57b6959611bbf6eeaa0