[INFO] cloning repository theatlasroom/rust-learning [INFO] running `"git" "clone" "--bare" "git://github.com/theatlasroom/rust-learning.git" "work/cache/sources/gh/theatlasroom/rust-learning"` [INFO] [stderr] Cloning into bare repository 'work/cache/sources/gh/theatlasroom/rust-learning'... [INFO] running `"git" "clone" "work/cache/sources/gh/theatlasroom/rust-learning" "work/ex/pr-62008/sources/master#848e0a23f34aaab3e4a974b031c86ef2a4e4fcc1/gh/theatlasroom/rust-learning"` [INFO] [stderr] Cloning into 'work/ex/pr-62008/sources/master#848e0a23f34aaab3e4a974b031c86ef2a4e4fcc1/gh/theatlasroom/rust-learning'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/theatlasroom/rust-learning" "work/ex/pr-62008/sources/try#8f81d0bf6baf07b92f1246696722485c4ca0b049/gh/theatlasroom/rust-learning"` [INFO] [stderr] Cloning into 'work/ex/pr-62008/sources/try#8f81d0bf6baf07b92f1246696722485c4ca0b049/gh/theatlasroom/rust-learning'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 7d4a390a3ace3085dbcc821e2fb7899f7a668a1c [INFO] sha for GitHub repo theatlasroom/rust-learning: 7d4a390a3ace3085dbcc821e2fb7899f7a668a1c [INFO] validating manifest of theatlasroom/rust-learning on toolchain master#848e0a23f34aaab3e4a974b031c86ef2a4e4fcc1 [INFO] running `"/mnt/big/ec2-user/crater/work/local/cargo-home/bin/cargo" "+848e0a23f34aaab3e4a974b031c86ef2a4e4fcc1-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of theatlasroom/rust-learning on toolchain try#8f81d0bf6baf07b92f1246696722485c4ca0b049 [INFO] running `"/mnt/big/ec2-user/crater/work/local/cargo-home/bin/cargo" "+8f81d0bf6baf07b92f1246696722485c4ca0b049-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing theatlasroom/rust-learning [INFO] finished frobbing theatlasroom/rust-learning [INFO] frobbed toml for theatlasroom/rust-learning written to work/ex/pr-62008/sources/master#848e0a23f34aaab3e4a974b031c86ef2a4e4fcc1/gh/theatlasroom/rust-learning/Cargo.toml [INFO] started frobbing theatlasroom/rust-learning [INFO] finished frobbing theatlasroom/rust-learning [INFO] frobbed toml for theatlasroom/rust-learning written to work/ex/pr-62008/sources/try#8f81d0bf6baf07b92f1246696722485c4ca0b049/gh/theatlasroom/rust-learning/Cargo.toml [INFO] crate theatlasroom/rust-learning already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/ec2-user/crater/work/local/cargo-home/bin/cargo" "+848e0a23f34aaab3e4a974b031c86ef2a4e4fcc1-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/ec2-user/crater/work/local/cargo-home/bin/cargo" "+8f81d0bf6baf07b92f1246696722485c4ca0b049-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking theatlasroom/rust-learning against try#8f81d0bf6baf07b92f1246696722485c4ca0b049 for pr-62008 [INFO] running `"docker" "create" "-v" "/mnt/big/ec2-user/crater/work/local/target-dirs/pr-62008/worker-6/try#8f81d0bf6baf07b92f1246696722485c4ca0b049:/opt/crater/target:rw,Z" "-v" "/mnt/big/ec2-user/crater/work/ex/pr-62008/sources/try#8f81d0bf6baf07b92f1246696722485c4ca0b049/gh/theatlasroom/rust-learning:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/ec2-user/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/ec2-user/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" "+8f81d0bf6baf07b92f1246696722485c4ca0b049-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] a153cd9ec41174939f7aecbf294e96ec3d4bc8911e04758a032cc87197101a56 [INFO] running `"docker" "start" "-a" "a153cd9ec41174939f7aecbf294e96ec3d4bc8911e04758a032cc87197101a56"` [INFO] [stderr] Checking learning v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0601]: `main` function not found in crate `text_in_file` [INFO] [stderr] | [INFO] [stderr] = note: consider adding a `main` function to `src/bin/text_in_file.rs` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0601`. [INFO] [stderr] error: Could not compile `learning`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0530]: match bindings cannot shadow tuple variants [INFO] [stderr] --> src/bin/file_io.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | Err => println!("Error\n{:?}", handle), [INFO] [stderr] | ^^^ cannot be named the same as a tuple variant [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `handle` in this scope [INFO] [stderr] --> src/bin/file_io.rs:28:40 [INFO] [stderr] | [INFO] [stderr] 28 | Err => println!("Error\n{:?}", handle), [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/bin/file_io.rs:27:9 [INFO] [stderr] | [INFO] [stderr] 26 | let mut handle = match fs::File::open(f){ [INFO] [stderr] | ----------------- this match expression has type `std::result::Result` [INFO] [stderr] 27 | Some(handle) => println!("File\n{:?}", handle), [INFO] [stderr] | ^^^^^^^^^^^^ expected enum `std::result::Result`, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::result::Result` [INFO] [stderr] found type `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0425, E0530. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: Could not compile `learning`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "a153cd9ec41174939f7aecbf294e96ec3d4bc8911e04758a032cc87197101a56"` [INFO] running `"docker" "rm" "-f" "a153cd9ec41174939f7aecbf294e96ec3d4bc8911e04758a032cc87197101a56"` [INFO] [stdout] a153cd9ec41174939f7aecbf294e96ec3d4bc8911e04758a032cc87197101a56