[INFO] cloning repository https://github.com/lforeverhao/rust_learn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lforeverhao/rust_learn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flforeverhao%2Frust_learn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flforeverhao%2Frust_learn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5c0fa028aa8343016f141e54ddace34b70347b38 [INFO] checking lforeverhao/rust_learn against master#3aedcf06b73fc36feeebca3d579e1d2a6c40acc5 for pr-65819 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flforeverhao%2Frust_learn" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lforeverhao/rust_learn on toolchain 3aedcf06b73fc36feeebca3d579e1d2a6c40acc5 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lforeverhao/rust_learn [INFO] finished tweaking git repo https://github.com/lforeverhao/rust_learn [INFO] tweaked toml for git repo https://github.com/lforeverhao/rust_learn written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/lforeverhao/rust_learn already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/jobserver:/tmp/crater-runner-fifo:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "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] 9f95850b994adab1952b4f4129c062e88ddfd63f748c0877c8b90b53f16f5823 [INFO] running `Command { std: "docker" "start" "-a" "9f95850b994adab1952b4f4129c062e88ddfd63f748c0877c8b90b53f16f5823", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9f95850b994adab1952b4f4129c062e88ddfd63f748c0877c8b90b53f16f5823", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f95850b994adab1952b4f4129c062e88ddfd63f748c0877c8b90b53f16f5823", kill_on_drop: false }` [INFO] [stdout] 9f95850b994adab1952b4f4129c062e88ddfd63f748c0877c8b90b53f16f5823 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/jobserver:/tmp/crater-runner-fifo:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "RUSTUP_TOOLCHAIN=3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "-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:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/tmp/crater-runner-fifo/jobserver-crater-fwd" "/opt/rustwide/cargo-home/bin/cargo" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27a581f381da454ba4b32cebfdf0114d2ad161e36fed0db8a4a2c1ac98533286 [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" "27a581f381da454ba4b32cebfdf0114d2ad161e36fed0db8a4a2c1ac98533286", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking scoped-tls v0.1.2 [INFO] [stderr] Checking test_mod v0.1.0 (/opt/rustwide/workdir/test_mod) [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> test_mod/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let a = my_mod::A::C {}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> test_mod/src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let d = my_mod::B::D {}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> test_mod/src/my_mod.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let c = A::C {}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> test_mod/src/my_mod.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let side = mod_call::OutSide {}; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b1` [INFO] [stdout] --> test_mod/src/mod_call.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let b1 = B::B1 {}; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `getC` [INFO] [stdout] --> test_mod/src/my_mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn getC(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `getC` [INFO] [stdout] --> test_mod/src/my_mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn getC(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `A1` [INFO] [stdout] --> test_mod/src/mod_call.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | struct A1; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fooA` [INFO] [stdout] --> test_mod/src/mod_call.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn fooA(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `B1` [INFO] [stdout] --> test_mod/src/mod_call.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct B1; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fooB` [INFO] [stdout] --> test_mod/src/mod_call.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn fooB(){} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OutSide` [INFO] [stdout] --> test_mod/src/mod_call.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct OutSide; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `A` should have a snake case name [INFO] [stdout] --> test_mod/src/my_mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod A { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `B` should have a snake case name [INFO] [stdout] --> test_mod/src/my_mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod B { [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getC` should have a snake case name [INFO] [stdout] --> test_mod/src/my_mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn getC(){ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getC` should have a snake case name [INFO] [stdout] --> test_mod/src/my_mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn getC(){ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `A` should have a snake case name [INFO] [stdout] --> test_mod/src/mod_call.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod A { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `B` should have a snake case name [INFO] [stdout] --> test_mod/src/mod_call.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | mod B{ [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fooA` should have a snake case name [INFO] [stdout] --> test_mod/src/mod_call.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | fn fooA(){ [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `foo_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fooB` should have a snake case name [INFO] [stdout] --> test_mod/src/mod_call.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn fooB(){} [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `foo_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking test_lifetime v0.1.0 (/opt/rustwide/workdir/test_lifetime) [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> test_lifetime/src/lib.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> test_lifetime/src/lib.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking test_concurrent v0.1.0 (/opt/rustwide/workdir/test_concurrent) [INFO] [stdout] warning: unused import: `std::sync::mpsc` [INFO] [stdout] --> test_concurrent/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::mpsc; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> test_concurrent/src/thread_test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> test_concurrent/src/mutex.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `RefCell` [INFO] [stdout] --> test_concurrent/src/arc.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::{Cell, RefCell}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> test_concurrent/src/atomic.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> test_concurrent/src/channel.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | for i in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> test_concurrent/src/channel.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | let handle = thread::spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> test_concurrent/src/channel.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | for x in receiver { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> test_concurrent/src/mutex.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | for i in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> test_concurrent/src/mutex.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | for i in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> test_concurrent/src/mutex.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | for i in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> test_concurrent/src/arc.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | for index in 0..10 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> test_concurrent/src/atomic.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | for x in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> test_concurrent/src/atomic.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | for x in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> test_concurrent/src/atomic.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | for x in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> test_concurrent/src/thread_test.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | handle.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> test_concurrent/src/thread_test.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | handle.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `arcClone` should have a snake case name [INFO] [stdout] --> test_concurrent/src/mutex.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let arcClone = arc.clone(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `arc_clone` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `arcClone1` should have a snake case name [INFO] [stdout] --> test_concurrent/src/mutex.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let arcClone1 = arc.clone(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `arc_clone1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `arcClone2` should have a snake case name [INFO] [stdout] --> test_concurrent/src/mutex.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let arcClone2 = arc.clone(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `arc_clone2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> test_concurrent/src/mutex.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | handle.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> test_concurrent/src/mutex.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | handle1.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> test_concurrent/src/mutex.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | handle2.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> test_concurrent/src/atomic.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | thread.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> test_concurrent/src/atomic.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | thread1.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> test_concurrent/src/atomic.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | thread2.join(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking test_api v0.1.0 (/opt/rustwide/workdir/test_api) [INFO] [stdout] warning: unused import: `Metadata` [INFO] [stdout] --> test_api/src/main.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{File, Metadata, read_to_string}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> test_api/src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{Error, Read}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> test_api/src/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut result = [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> test_api/src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let file = File::open("Cargo.toml1").expect("some thing wrong"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> test_api/src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let result = chain.read_to_string(&mut buffer); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> test_api/src/main.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let result = read_to_string("Cargo.toml"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> test_api/src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut result = [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> test_api/src/main.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | f.read_to_string(&mut s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Metadata`, `read_to_string` [INFO] [stdout] --> test_api/src/main.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{File, Metadata, read_to_string}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> test_api/src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{Error, Read}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_err` [INFO] [stdout] --> test_api/src/main.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn process_err(s: String) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `longest1` in this scope [INFO] [stdout] --> test_lifetime/src/lib.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 24 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ------------------------------------------------- similarly named function `longest` defined here [INFO] [stdout] ... [INFO] [stdout] 34 | let longest1 = longest1("1", "2"); [INFO] [stdout] | ^^^^^^^^ help: a function with a similar name exists: `longest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `test_lifetime` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "27a581f381da454ba4b32cebfdf0114d2ad161e36fed0db8a4a2c1ac98533286", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27a581f381da454ba4b32cebfdf0114d2ad161e36fed0db8a4a2c1ac98533286", kill_on_drop: false }` [INFO] [stdout] 27a581f381da454ba4b32cebfdf0114d2ad161e36fed0db8a4a2c1ac98533286