[INFO] updating cached repository https://github.com/bookinstock/rust_example [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] c83d144f2d500cd60a59da5019b4bc5ca7d2d36f [INFO] checking bookinstock/rust_example against master#339f574809bf8e4166b8de3cdbe7df181d37af3d for pr-71896 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbookinstock%2Frust_example" "/workspace/builds/worker-3/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bookinstock/rust_example on toolchain 339f574809bf8e4166b8de3cdbe7df181d37af3d [INFO] running `"/workspace/cargo-home/bin/cargo" "+339f574809bf8e4166b8de3cdbe7df181d37af3d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/bookinstock/rust_example [INFO] finished tweaking git repo https://github.com/bookinstock/rust_example [INFO] tweaked toml for git repo https://github.com/bookinstock/rust_example written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/bookinstock/rust_example already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+339f574809bf8e4166b8de3cdbe7df181d37af3d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+339f574809bf8e4166b8de3cdbe7df181d37af3d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 60fb83c538f9cee4b39dbc5b3d8c68c6f1c8f9296f4a6e181e961c239652584d [INFO] running `"docker" "start" "-a" "60fb83c538f9cee4b39dbc5b3d8c68c6f1c8f9296f4a6e181e961c239652584d"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Checking rust_example v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: path statement with no effect [INFO] [stderr] --> src/bin/expression.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | x; [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(path_statements)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused arithmetic operation that must be used [INFO] [stderr] --> src/bin/expression.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | x + 1; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused arithmetic operation that must be used [INFO] [stderr] --> src/bin/expression.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | 2 * x; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/bin/scope.rs:88:9 [INFO] [stderr] | [INFO] [stderr] 88 | let x = ToDrop; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ref_x` [INFO] [stderr] --> src/bin/scope.rs:401:13 [INFO] [stderr] | [INFO] [stderr] 401 | let ref_x = &x; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ref_x` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/scope.rs:405:13 [INFO] [stderr] | [INFO] [stderr] 405 | let mut ref_x = &mut x; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `ps_ref` [INFO] [stderr] --> src/bin/scope.rs:444:4 [INFO] [stderr] | [INFO] [stderr] 444 | fn ps_ref() { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_literal` [INFO] [stderr] --> src/bin/pattern_matching.rs:113:4 [INFO] [stderr] | [INFO] [stderr] 113 | fn test_literal() {} [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_array` [INFO] [stderr] --> src/bin/pattern_matching.rs:115:4 [INFO] [stderr] | [INFO] [stderr] 115 | fn test_array() {} [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_enum` [INFO] [stderr] --> src/bin/pattern_matching.rs:117:4 [INFO] [stderr] | [INFO] [stderr] 117 | fn test_enum() {} [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_stuct` [INFO] [stderr] --> src/bin/pattern_matching.rs:119:4 [INFO] [stderr] | [INFO] [stderr] 119 | fn test_stuct() {} [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_variable` [INFO] [stderr] --> src/bin/pattern_matching.rs:137:4 [INFO] [stderr] | [INFO] [stderr] 137 | fn test_variable() {} [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_wildcard` [INFO] [stderr] --> src/bin/pattern_matching.rs:139:4 [INFO] [stderr] | [INFO] [stderr] 139 | fn test_wildcard() {} [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_placeholder` [INFO] [stderr] --> src/bin/pattern_matching.rs:141:4 [INFO] [stderr] | [INFO] [stderr] 141 | fn test_placeholder() {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused variable: `vec2` [INFO] [stderr] --> src/bin/function.rs:391:9 [INFO] [stderr] | [INFO] [stderr] 391 | let vec2 = vec![4, 5, 6]; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vec2` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 7 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stderr] --> src/bin/function.rs:431:16 [INFO] [stderr] | [INFO] [stderr] 431 | array2.into_iter().find(|&&x| x == 2) [INFO] [stderr] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(array_into_iter)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #66145 [INFO] [stderr] [INFO] [stderr] error[E0601]: `main` function not found in crate `trait` [INFO] [stderr] --> src/bin/trait.rs:15:4 [INFO] [stderr] | [INFO] [stderr] 15 | */ [INFO] [stderr] | ^ consider adding a `main` function to `src/bin/trait.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 `rust_example`. [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] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: path statement with no effect [INFO] [stderr] --> src/bin/expression.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | x; [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(path_statements)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused arithmetic operation that must be used [INFO] [stderr] --> src/bin/expression.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | x + 1; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused arithmetic operation that must be used [INFO] [stderr] --> src/bin/expression.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | 2 * x; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused label [INFO] [stderr] --> src/bin/control_flow.rs:119:9 [INFO] [stderr] | [INFO] [stderr] 119 | 'inner: loop { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_labels)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `ttt` [INFO] [stderr] --> src/bin/hello.rs:107:4 [INFO] [stderr] | [INFO] [stderr] 107 | fn ttt() { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `f` [INFO] [stderr] --> src/bin/hello.rs:120:4 [INFO] [stderr] | [INFO] [stderr] 120 | fn f() { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test` [INFO] [stderr] --> src/bin/hello.rs:124:4 [INFO] [stderr] | [INFO] [stderr] 124 | fn test() { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `try_debug_trait` [INFO] [stderr] --> src/bin/hello.rs:159:4 [INFO] [stderr] | [INFO] [stderr] 159 | fn try_debug_trait() { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/bin/control_flow.rs:125:9 [INFO] [stderr] | [INFO] [stderr] 122 | break 'outer; [INFO] [stderr] | ------------ any code following this expression is unreachable [INFO] [stderr] ... [INFO] [stderr] 125 | println!("never reach"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "60fb83c538f9cee4b39dbc5b3d8c68c6f1c8f9296f4a6e181e961c239652584d"` [INFO] running `"docker" "rm" "-f" "60fb83c538f9cee4b39dbc5b3d8c68c6f1c8f9296f4a6e181e961c239652584d"` [INFO] [stdout] 60fb83c538f9cee4b39dbc5b3d8c68c6f1c8f9296f4a6e181e961c239652584d