[INFO] cloning repository https://github.com/namhoangle1996/rust-tur [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/namhoangle1996/rust-tur" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnamhoangle1996%2Frust-tur", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnamhoangle1996%2Frust-tur'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e7bdb0a0b8d130995fa094599d87bbd210b91455 [INFO] testing namhoangle1996/rust-tur against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnamhoangle1996%2Frust-tur" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/namhoangle1996/rust-tur on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/namhoangle1996/rust-tur [INFO] finished tweaking git repo https://github.com/namhoangle1996/rust-tur [INFO] tweaked toml for git repo https://github.com/namhoangle1996/rust-tur written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/namhoangle1996/rust-tur already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "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] 72766ab911c1c2a8aa6a825a58a73c45f39fa218cd95fec378831cf676456703 [INFO] running `Command { std: "docker" "start" "-a" "72766ab911c1c2a8aa6a825a58a73c45f39fa218cd95fec378831cf676456703", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72766ab911c1c2a8aa6a825a58a73c45f39fa218cd95fec378831cf676456703", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72766ab911c1c2a8aa6a825a58a73c45f39fa218cd95fec378831cf676456703", kill_on_drop: false }` [INFO] [stdout] 72766ab911c1c2a8aa6a825a58a73c45f39fa218cd95fec378831cf676456703 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", 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] df7e48a39cfeb770f1b2607cbca067acd8b4f36206b68996b6084ffb42ef73c2 [INFO] running `Command { std: "docker" "start" "-a" "df7e48a39cfeb770f1b2607cbca067acd8b4f36206b68996b6084ffb42ef73c2", kill_on_drop: false }` [INFO] [stderr] Compiling lesson-2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Duration`, `Instant` [INFO] [stdout] --> src/./thread/part-2.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let (a, b, c, d) = tuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:128:16 [INFO] [stdout] | [INFO] [stdout] 128 | let (a, b, c, d) = tuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:128:19 [INFO] [stdout] | [INFO] [stdout] 128 | let (a, b, c, d) = tuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `immutable_binding` [INFO] [stdout] --> src/./mutability.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | let immutable_binding = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_immutable_binding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elem1` [INFO] [stdout] --> src/./inference.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let elem1 = 2; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elem1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/./fromAndInto.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let my_string = String::from(my_str); // convert str to String [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/./flowOfControl/if_let.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let number = Some(7); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `emoticon` [INFO] [stdout] --> src/./flowOfControl/if_let.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let emoticon: Option = None; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emoticon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/./thread/part-1.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let handle = thread::spawn(|| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/./thread/part-1.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let handle = thread::spawn(|| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle2` [INFO] [stdout] --> src/./thread/part-1.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let handle2 = thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/./thread/part-1.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let mut x = "a string"; [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: variable does not need to be mutable [INFO] [stdout] --> src/./thread/part-3.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut counter = Arc::new(Mutex::new(10)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuples` [INFO] [stdout] --> src/main.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn tuples() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `array` [INFO] [stdout] --> src/main.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn array() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `slice` [INFO] [stdout] --> src/main.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn slice() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/./structure.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | x: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./structure.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/./structure.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | y: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./structure.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `a` [INFO] [stdout] --> src/./structure.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | a : Point, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./structure.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `b` [INFO] [stdout] --> src/./structure.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | b : Point, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./structure.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `structure_example` [INFO] [stdout] --> src/./structure.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn structure_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PageLoad` [INFO] [stdout] --> src/./enum.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | PageLoad, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./enum.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PageUnload` [INFO] [stdout] --> src/./enum.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | PageUnload, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./enum.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `KeyPress` [INFO] [stdout] --> src/./enum.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | KeyPress(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./enum.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Paste` [INFO] [stdout] --> src/./enum.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Paste(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./enum.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Click` [INFO] [stdout] --> src/./enum.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Click { x: i64, y: i64 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./enum.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Status` [INFO] [stdout] --> src/./enum.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enum_example` [INFO] [stdout] --> src/./enum.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn enum_example() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inspect` [INFO] [stdout] --> src/./enum.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | fn inspect(event: WebEvent) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `THRESHOLD` [INFO] [stdout] --> src/./constant.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | const THRESHOLD: i32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_bigger` [INFO] [stdout] --> src/./constant.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn is_bigger(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `constant` [INFO] [stdout] --> src/./constant.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn constant() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./mutability.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scope` [INFO] [stdout] --> src/./scopeAndShadowing.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn scope() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./casting.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./literal.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./inference.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/./fromAndInto.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | age: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `UserInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./fromAndInto.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/./fromAndInto.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | name : String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `UserInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./fromAndInto.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./fromAndInto.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./tryFromAndInto.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/if_else.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/loop.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/loop_returning.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/while.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/for.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example(){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/match.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_binding` [INFO] [stdout] --> src/./flowOfControl/match.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn match_binding(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_enums` [INFO] [stdout] --> src/./flowOfControl/match.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn match_enums() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_tuple` [INFO] [stdout] --> src/./flowOfControl/match.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn match_tuple() { // tuples là một tập hợp giá trị với kiểu khác nhau [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/if_let.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/while_let.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn example(){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./function/index.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fizzbuzz_to` [INFO] [stdout] --> src/./function/index.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn fizzbuzz_to(n: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_divisible_by` [INFO] [stdout] --> src/./function/index.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn is_divisible_by(lhs: u32, rhs: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fizzbuzz` [INFO] [stdout] --> src/./function/index.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn fizzbuzz(n: u32) -> () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/./function/method.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `origin` [INFO] [stdout] --> src/./function/method.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn origin() -> Point { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/./function/method.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn new(x: f64, y: f64) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rectangle` [INFO] [stdout] --> src/./function/method.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/./function/method.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `perimeter` [INFO] [stdout] --> src/./function/method.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn perimeter( &self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `translate` [INFO] [stdout] --> src/./function/method.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn translate(&mut self, x: f64, y: f64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./function/method.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./function/closures/closures.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./function/closures/capturing.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./thread/part-1.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ex` [INFO] [stdout] --> src/./thread/part-1.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn ex() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ex1` [INFO] [stdout] --> src/./thread/part-1.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn ex1() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ex2` [INFO] [stdout] --> src/./thread/part-1.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn ex2() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ex3` [INFO] [stdout] --> src/./thread/part-1.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn ex3() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./thread/part-2.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 73 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.14s [INFO] running `Command { std: "docker" "inspect" "df7e48a39cfeb770f1b2607cbca067acd8b4f36206b68996b6084ffb42ef73c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df7e48a39cfeb770f1b2607cbca067acd8b4f36206b68996b6084ffb42ef73c2", kill_on_drop: false }` [INFO] [stdout] df7e48a39cfeb770f1b2607cbca067acd8b4f36206b68996b6084ffb42ef73c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 68380e1c7c511e4476102f6e1dfff4b73d71d55c15048d2bdcd062f194283eb9 [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" "68380e1c7c511e4476102f6e1dfff4b73d71d55c15048d2bdcd062f194283eb9", kill_on_drop: false }` [INFO] [stderr] Compiling lesson-2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Duration`, `Instant` [INFO] [stdout] --> src/./thread/part-2.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let (a, b, c, d) = tuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:128:16 [INFO] [stdout] | [INFO] [stdout] 128 | let (a, b, c, d) = tuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/main.rs:128:19 [INFO] [stdout] | [INFO] [stdout] 128 | let (a, b, c, d) = tuple; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `immutable_binding` [INFO] [stdout] --> src/./mutability.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | let immutable_binding = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_immutable_binding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elem1` [INFO] [stdout] --> src/./inference.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let elem1 = 2; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elem1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_string` [INFO] [stdout] --> src/./fromAndInto.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let my_string = String::from(my_str); // convert str to String [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/./flowOfControl/if_let.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let number = Some(7); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `emoticon` [INFO] [stdout] --> src/./flowOfControl/if_let.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let emoticon: Option = None; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emoticon` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/./thread/part-1.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let handle = thread::spawn(|| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/./thread/part-1.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let handle = thread::spawn(|| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle2` [INFO] [stdout] --> src/./thread/part-1.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let handle2 = thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/./thread/part-1.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let mut x = "a string"; [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: variable does not need to be mutable [INFO] [stdout] --> src/./thread/part-3.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut counter = Arc::new(Mutex::new(10)); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `tuples` [INFO] [stdout] --> src/main.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn tuples() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `array` [INFO] [stdout] --> src/main.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn array() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `slice` [INFO] [stdout] --> src/main.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn slice() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/./structure.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | x: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./structure.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/./structure.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | y: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./structure.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `a` [INFO] [stdout] --> src/./structure.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | a : Point, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./structure.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `b` [INFO] [stdout] --> src/./structure.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | b : Point, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./structure.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `structure_example` [INFO] [stdout] --> src/./structure.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn structure_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PageLoad` [INFO] [stdout] --> src/./enum.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | PageLoad, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./enum.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PageUnload` [INFO] [stdout] --> src/./enum.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | PageUnload, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./enum.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `KeyPress` [INFO] [stdout] --> src/./enum.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | KeyPress(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./enum.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Paste` [INFO] [stdout] --> src/./enum.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Paste(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./enum.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Click` [INFO] [stdout] --> src/./enum.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | Click { x: i64, y: i64 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./enum.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Status` [INFO] [stdout] --> src/./enum.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enum_example` [INFO] [stdout] --> src/./enum.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn enum_example() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `inspect` [INFO] [stdout] --> src/./enum.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | fn inspect(event: WebEvent) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `THRESHOLD` [INFO] [stdout] --> src/./constant.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | const THRESHOLD: i32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_bigger` [INFO] [stdout] --> src/./constant.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn is_bigger(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `constant` [INFO] [stdout] --> src/./constant.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn constant() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./mutability.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `scope` [INFO] [stdout] --> src/./scopeAndShadowing.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn scope() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./casting.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./literal.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./inference.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/./fromAndInto.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | age: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `UserInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./fromAndInto.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/./fromAndInto.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | name : String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `UserInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/./fromAndInto.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./fromAndInto.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./tryFromAndInto.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/if_else.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/loop.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/loop_returning.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/while.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/for.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example(){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/match.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_binding` [INFO] [stdout] --> src/./flowOfControl/match.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn match_binding(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_enums` [INFO] [stdout] --> src/./flowOfControl/match.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn match_enums() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `match_tuple` [INFO] [stdout] --> src/./flowOfControl/match.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn match_tuple() { // tuples là một tập hợp giá trị với kiểu khác nhau [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/if_let.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./flowOfControl/while_let.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn example(){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./function/index.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fizzbuzz_to` [INFO] [stdout] --> src/./function/index.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn fizzbuzz_to(n: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_divisible_by` [INFO] [stdout] --> src/./function/index.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn is_divisible_by(lhs: u32, rhs: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fizzbuzz` [INFO] [stdout] --> src/./function/index.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn fizzbuzz(n: u32) -> () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/./function/method.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `origin` [INFO] [stdout] --> src/./function/method.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn origin() -> Point { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/./function/method.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn new(x: f64, y: f64) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rectangle` [INFO] [stdout] --> src/./function/method.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/./function/method.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `perimeter` [INFO] [stdout] --> src/./function/method.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn perimeter( &self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `translate` [INFO] [stdout] --> src/./function/method.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn translate(&mut self, x: f64, y: f64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./function/method.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./function/closures/closures.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./function/closures/capturing.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./thread/part-1.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ex` [INFO] [stdout] --> src/./thread/part-1.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn ex() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ex1` [INFO] [stdout] --> src/./thread/part-1.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn ex1() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ex2` [INFO] [stdout] --> src/./thread/part-1.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn ex2() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ex3` [INFO] [stdout] --> src/./thread/part-1.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn ex3() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example` [INFO] [stdout] --> src/./thread/part-2.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 73 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.98s [INFO] running `Command { std: "docker" "inspect" "68380e1c7c511e4476102f6e1dfff4b73d71d55c15048d2bdcd062f194283eb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68380e1c7c511e4476102f6e1dfff4b73d71d55c15048d2bdcd062f194283eb9", kill_on_drop: false }` [INFO] [stdout] 68380e1c7c511e4476102f6e1dfff4b73d71d55c15048d2bdcd062f194283eb9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", 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] fb1671a1de80c42cdf461c926ebf4d4f5f3281c034edb1550034ca97405c4516 [INFO] running `Command { std: "docker" "start" "-a" "fb1671a1de80c42cdf461c926ebf4d4f5f3281c034edb1550034ca97405c4516", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Duration`, `Instant` [INFO] [stderr] --> src/./thread/part-2.rs:3:17 [INFO] [stderr] | [INFO] [stderr] 3 | use std::time::{Duration, Instant}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/main.rs:128:13 [INFO] [stderr] | [INFO] [stderr] 128 | let (a, b, c, d) = tuple; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/main.rs:128:16 [INFO] [stderr] | [INFO] [stderr] 128 | let (a, b, c, d) = tuple; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `d` [INFO] [stderr] --> src/main.rs:128:19 [INFO] [stderr] | [INFO] [stderr] 128 | let (a, b, c, d) = tuple; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `immutable_binding` [INFO] [stderr] --> src/./mutability.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | let immutable_binding = 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_immutable_binding` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `elem1` [INFO] [stderr] --> src/./inference.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | let elem1 = 2; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_elem1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `my_string` [INFO] [stderr] --> src/./fromAndInto.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 20 | let my_string = String::from(my_str); // convert str to String [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_string` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `number` [INFO] [stderr] --> src/./flowOfControl/if_let.rs:2:9 [INFO] [stderr] | [INFO] [stderr] 2 | let number = Some(7); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `emoticon` [INFO] [stderr] --> src/./flowOfControl/if_let.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | let emoticon: Option = None; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emoticon` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `handle` [INFO] [stderr] --> src/./thread/part-1.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 34 | let handle = thread::spawn(|| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `handle` [INFO] [stderr] --> src/./thread/part-1.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | let handle = thread::spawn(|| { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `handle2` [INFO] [stderr] --> src/./thread/part-1.rs:59:9 [INFO] [stderr] | [INFO] [stderr] 59 | let handle2 = thread::spawn(move || { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle2` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/./thread/part-1.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | let mut x = "a string"; [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: variable does not need to be mutable [INFO] [stderr] --> src/./thread/part-3.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | let mut counter = Arc::new(Mutex::new(10)); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `tuples` [INFO] [stderr] --> src/main.rs:113:4 [INFO] [stderr] | [INFO] [stderr] 113 | fn tuples() { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `array` [INFO] [stderr] --> src/main.rs:132:4 [INFO] [stderr] | [INFO] [stderr] 132 | fn array() { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `slice` [INFO] [stderr] --> src/main.rs:141:4 [INFO] [stderr] | [INFO] [stderr] 141 | fn slice() { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `x` [INFO] [stderr] --> src/./structure.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | x: f32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/./structure.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `y` [INFO] [stderr] --> src/./structure.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | y: f32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/./structure.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `a` [INFO] [stderr] --> src/./structure.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | a : Point, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/./structure.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `b` [INFO] [stderr] --> src/./structure.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | b : Point, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/./structure.rs:7:10 [INFO] [stderr] | [INFO] [stderr] 7 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `structure_example` [INFO] [stderr] --> src/./structure.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn structure_example() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PageLoad` [INFO] [stderr] --> src/./enum.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | PageLoad, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/./enum.rs:2:10 [INFO] [stderr] | [INFO] [stderr] 2 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `PageUnload` [INFO] [stderr] --> src/./enum.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | PageUnload, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/./enum.rs:2:10 [INFO] [stderr] | [INFO] [stderr] 2 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `KeyPress` [INFO] [stderr] --> src/./enum.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | KeyPress(String), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/./enum.rs:2:10 [INFO] [stderr] | [INFO] [stderr] 2 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Paste` [INFO] [stderr] --> src/./enum.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | Paste(String), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/./enum.rs:2:10 [INFO] [stderr] | [INFO] [stderr] 2 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Click` [INFO] [stderr] --> src/./enum.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | Click { x: i64, y: i64 }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `WebEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/./enum.rs:2:10 [INFO] [stderr] | [INFO] [stderr] 2 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `Status` [INFO] [stderr] --> src/./enum.rs:14:6 [INFO] [stderr] | [INFO] [stderr] 14 | enum Status { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `enum_example` [INFO] [stderr] --> src/./enum.rs:19:8 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn enum_example() { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `inspect` [INFO] [stderr] --> src/./enum.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | fn inspect(event: WebEvent) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `THRESHOLD` [INFO] [stderr] --> src/./constant.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | const THRESHOLD: i32 = 10; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `is_bigger` [INFO] [stderr] --> src/./constant.rs:3:4 [INFO] [stderr] | [INFO] [stderr] 3 | fn is_bigger(n: i32) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `constant` [INFO] [stderr] --> src/./constant.rs:7:8 [INFO] [stderr] | [INFO] [stderr] 7 | pub fn constant() { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./mutability.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `scope` [INFO] [stderr] --> src/./scopeAndShadowing.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn scope() { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./casting.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./literal.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./inference.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `age` [INFO] [stderr] --> src/./fromAndInto.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | age: i32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `UserInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/./fromAndInto.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/./fromAndInto.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | name : String, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `UserInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/./fromAndInto.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./fromAndInto.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./tryFromAndInto.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./flowOfControl/if_else.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./flowOfControl/loop.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./flowOfControl/loop_returning.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./flowOfControl/while.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./flowOfControl/for.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example(){ [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./flowOfControl/match.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `match_binding` [INFO] [stderr] --> src/./flowOfControl/match.rs:17:4 [INFO] [stderr] | [INFO] [stderr] 17 | fn match_binding(){ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `match_enums` [INFO] [stderr] --> src/./flowOfControl/match.rs:34:4 [INFO] [stderr] | [INFO] [stderr] 34 | fn match_enums() { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `match_tuple` [INFO] [stderr] --> src/./flowOfControl/match.rs:56:4 [INFO] [stderr] | [INFO] [stderr] 56 | fn match_tuple() { // tuples là một tập hợp giá trị với kiểu khác nhau [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./flowOfControl/if_let.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./flowOfControl/while_let.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn example(){ [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./function/index.rs:1:9 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `fizzbuzz_to` [INFO] [stderr] --> src/./function/index.rs:5:4 [INFO] [stderr] | [INFO] [stderr] 5 | fn fizzbuzz_to(n: u32) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `is_divisible_by` [INFO] [stderr] --> src/./function/index.rs:12:4 [INFO] [stderr] | [INFO] [stderr] 12 | fn is_divisible_by(lhs: u32, rhs: u32) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `fizzbuzz` [INFO] [stderr] --> src/./function/index.rs:20:4 [INFO] [stderr] | [INFO] [stderr] 20 | fn fizzbuzz(n: u32) -> () { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Point` [INFO] [stderr] --> src/./function/method.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Point { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `origin` [INFO] [stderr] --> src/./function/method.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | fn origin() -> Point { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/./function/method.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | fn new(x: f64, y: f64) -> Point { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Rectangle` [INFO] [stderr] --> src/./function/method.rs:21:8 [INFO] [stderr] | [INFO] [stderr] 21 | struct Rectangle { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `area` [INFO] [stderr] --> src/./function/method.rs:27:8 [INFO] [stderr] | [INFO] [stderr] 27 | fn area(&self) -> f64 { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `perimeter` [INFO] [stderr] --> src/./function/method.rs:35:8 [INFO] [stderr] | [INFO] [stderr] 35 | fn perimeter( &self) -> f64 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `translate` [INFO] [stderr] --> src/./function/method.rs:44:8 [INFO] [stderr] | [INFO] [stderr] 44 | fn translate(&mut self, x: f64, y: f64) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./function/method.rs:53:8 [INFO] [stderr] | [INFO] [stderr] 53 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./function/closures/closures.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./function/closures/capturing.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./thread/part-1.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `ex` [INFO] [stderr] --> src/./thread/part-1.rs:15:4 [INFO] [stderr] | [INFO] [stderr] 15 | fn ex() { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `ex1` [INFO] [stderr] --> src/./thread/part-1.rs:33:4 [INFO] [stderr] | [INFO] [stderr] 33 | fn ex1() { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `ex2` [INFO] [stderr] --> src/./thread/part-1.rs:42:4 [INFO] [stderr] | [INFO] [stderr] 42 | fn ex2() { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `ex3` [INFO] [stderr] --> src/./thread/part-1.rs:51:4 [INFO] [stderr] | [INFO] [stderr] 51 | fn ex3() { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example` [INFO] [stderr] --> src/./thread/part-2.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn example() { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `lesson-2` (bin "lesson-2" test) generated 73 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/lesson_2-ea83b86848b72534) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fb1671a1de80c42cdf461c926ebf4d4f5f3281c034edb1550034ca97405c4516", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb1671a1de80c42cdf461c926ebf4d4f5f3281c034edb1550034ca97405c4516", kill_on_drop: false }` [INFO] [stdout] fb1671a1de80c42cdf461c926ebf4d4f5f3281c034edb1550034ca97405c4516