[INFO] cloning repository https://github.com/ai-chen2050/Learning-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ai-chen2050/Learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fai-chen2050%2FLearning-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fai-chen2050%2FLearning-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eddcc25643a944ceccece8a8addd7cace3c02518 [INFO] checking ai-chen2050/Learning-rust against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fai-chen2050%2FLearning-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ai-chen2050/Learning-rust on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ai-chen2050/Learning-rust [INFO] finished tweaking git repo https://github.com/ai-chen2050/Learning-rust [INFO] tweaked toml for git repo https://github.com/ai-chen2050/Learning-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ai-chen2050/Learning-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded backtrace v0.3.70 [INFO] [stderr] Downloaded stopwatch v0.0.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3fdd40c3aeb0ff3c77b903044b7f02119a36c33da68579e8b46dc3a2ab001a8e [INFO] running `Command { std: "docker" "start" "-a" "3fdd40c3aeb0ff3c77b903044b7f02119a36c33da68579e8b46dc3a2ab001a8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3fdd40c3aeb0ff3c77b903044b7f02119a36c33da68579e8b46dc3a2ab001a8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fdd40c3aeb0ff3c77b903044b7f02119a36c33da68579e8b46dc3a2ab001a8e", kill_on_drop: false }` [INFO] [stdout] 3fdd40c3aeb0ff3c77b903044b7f02119a36c33da68579e8b46dc3a2ab001a8e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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=forbid" "-e" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7f4e03014171354190b2a2909abde83dff138dfbb12afbc041960d64580e1e42 [INFO] running `Command { std: "docker" "start" "-a" "7f4e03014171354190b2a2909abde83dff138dfbb12afbc041960d64580e1e42", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Compiling self-hello v0.1.0 (/opt/rustwide/workdir/pro/attri-hello) [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking stopwatch v0.0.7 [INFO] [stderr] Checking lang v0.1.0 (/opt/rustwide/workdir/lang) [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> lang/src/thread.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{Duration,SystemTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> lang/src/base.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | --------- the item `Rng` is already imported here [INFO] [stdout] ... [INFO] [stdout] 201 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> lang/src/base.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | --------- the item `Rng` is already imported here [INFO] [stdout] ... [INFO] [stdout] 201 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> lang/src/thread.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{Duration,SystemTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> lang/src/thread.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct Circle { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 34 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 35 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Circle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo` is never used [INFO] [stdout] --> lang/src/thread.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn foo(s: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo1` is never used [INFO] [stdout] --> lang/src/thread.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn foo1(s: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `clone` that must be used [INFO] [stdout] --> lang/src/thread.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | s.clone(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: cloning is often expensive and is not expected to have side effects [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = s.clone(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> lang/src/base.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> lang/src/thread.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct Circle { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 34 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 35 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Circle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo` is never used [INFO] [stdout] --> lang/src/thread.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn foo(s: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo1` is never used [INFO] [stdout] --> lang/src/thread.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn foo1(s: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> lang/src/base.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut x: i32 = 5; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `clone` that must be used [INFO] [stdout] --> lang/src/thread.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | s.clone(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: cloning is often expensive and is not expected to have side effects [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = s.clone(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> lang/src/base.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | let (w,z) = (3, "hello,chen"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> lang/src/base.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | let (w,z) = (3, "hello,chen"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str1` [INFO] [stdout] --> lang/src/base.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | let str1 = "hello,world !"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> lang/src/base.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let str2 : &str = "This is rust's trait"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str3` [INFO] [stdout] --> lang/src/base.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let str3 = String::from("hello,world2"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array2` [INFO] [stdout] --> lang/src/base.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let array2 : [i32;2] = [4, 5]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_array2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> lang/src/base.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let s :usize = array1.len(); // s == 3 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> lang/src/base.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let e = array1[1]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec1` [INFO] [stdout] --> lang/src/base.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let vec1 = vec![1, 2, 3]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vec1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let y: Vec = [4, 5, 6].to_vec(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> lang/src/base.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let x = (5, '6'); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z0` [INFO] [stdout] --> lang/src/base.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let z0 = y.0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z1` [INFO] [stdout] --> lang/src/base.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let z1 = y.1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let y = if x == '5' { 5 } else if x == '6' { 6 } else { -1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let y = x; // the resource assigned to x is move to y [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red` [INFO] [stdout] --> lang/src/base.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let red = Color::Red; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_red` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue` [INFO] [stdout] --> lang/src/base.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let blue :Color = Color::Blue; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> lang/src/base.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | let c = shape::Circle{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> lang/src/base.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let c2 = Circle{ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Green` is never constructed [INFO] [stdout] --> lang/src/base.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 37 | Red, [INFO] [stdout] 38 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> lang/src/base.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 44 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | height: u32, [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] [INFO] [stdout] [INFO] [stdout] warning: fields `center` and `radius` are never read [INFO] [stdout] --> lang/src/shape/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Circle{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 3 | pub center: (i32, i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | pub radius: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `area`, and `move_to` are never used [INFO] [stdout] --> lang/src/shape/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Circle { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 8 | fn new(center: (i32, i32), radius: u32) -> Circle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn move_to(&mut self, new_center: (i32, i32)) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> lang/src/base.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> lang/src/base.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut x: i32 = 5; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> lang/src/base.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | let (w,z) = (3, "hello,chen"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> lang/src/base.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | let (w,z) = (3, "hello,chen"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str1` [INFO] [stdout] --> lang/src/base.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | let str1 = "hello,world !"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> lang/src/base.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let str2 : &str = "This is rust's trait"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str3` [INFO] [stdout] --> lang/src/base.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let str3 = String::from("hello,world2"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array2` [INFO] [stdout] --> lang/src/base.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let array2 : [i32;2] = [4, 5]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_array2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> lang/src/base.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let s :usize = array1.len(); // s == 3 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> lang/src/base.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let e = array1[1]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec1` [INFO] [stdout] --> lang/src/base.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let vec1 = vec![1, 2, 3]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vec1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let y: Vec = [4, 5, 6].to_vec(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> lang/src/base.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let x = (5, '6'); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z0` [INFO] [stdout] --> lang/src/base.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let z0 = y.0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z1` [INFO] [stdout] --> lang/src/base.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let z1 = y.1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let y = if x == '5' { 5 } else if x == '6' { 6 } else { -1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let y = x; // the resource assigned to x is move to y [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red` [INFO] [stdout] --> lang/src/base.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let red = Color::Red; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_red` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue` [INFO] [stdout] --> lang/src/base.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let blue :Color = Color::Blue; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> lang/src/base.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | let c = shape::Circle{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> lang/src/base.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let c2 = Circle{ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Green` is never constructed [INFO] [stdout] --> lang/src/base.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 37 | Red, [INFO] [stdout] 38 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> lang/src/base.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 44 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | height: u32, [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] [INFO] [stdout] [INFO] [stdout] warning: fields `center` and `radius` are never read [INFO] [stdout] --> lang/src/shape/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Circle{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 3 | pub center: (i32, i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | pub radius: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `area`, and `move_to` are never used [INFO] [stdout] --> lang/src/shape/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Circle { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 8 | fn new(center: (i32, i32), radius: u32) -> Circle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn move_to(&mut self, new_center: (i32, i32)) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking self-learning v0.1.0 (/opt/rustwide/workdir/pro/attri-hello-call) [INFO] [stdout] println!("Hello, Greet"); [INFO] [stdout] attr: "bar" [INFO] [stdout] item: "fn invoke1() {}" [INFO] [stdout] fn: "fn prt1() { println!("Hello, greet2!"); }" [INFO] [stdout] fn: "fn prt2() { println!("Hello, greet2!"); }" [INFO] [stdout] println!("Hello, Greet"); [INFO] [stdout] attr: "bar" [INFO] [stdout] item: "fn invoke1() {}" [INFO] [stdout] fn: "fn prt1() { println!("Hello, greet2!"); }" [INFO] [stdout] fn: "fn prt2() { println!("Hello, greet2!"); }" [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.63s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint v0.1.44, num-complex v0.1.43, num-rational v0.1.42 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "7f4e03014171354190b2a2909abde83dff138dfbb12afbc041960d64580e1e42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f4e03014171354190b2a2909abde83dff138dfbb12afbc041960d64580e1e42", kill_on_drop: false }` [INFO] [stdout] 7f4e03014171354190b2a2909abde83dff138dfbb12afbc041960d64580e1e42 [INFO] checking ai-chen2050/Learning-rust against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fai-chen2050%2FLearning-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ai-chen2050/Learning-rust on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ai-chen2050/Learning-rust [INFO] finished tweaking git repo https://github.com/ai-chen2050/Learning-rust [INFO] tweaked toml for git repo https://github.com/ai-chen2050/Learning-rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ai-chen2050/Learning-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fdceec95dc13d9940ac1872837c500eb439176eb0863b591fb04ce1b6b262613 [INFO] running `Command { std: "docker" "start" "-a" "fdceec95dc13d9940ac1872837c500eb439176eb0863b591fb04ce1b6b262613", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fdceec95dc13d9940ac1872837c500eb439176eb0863b591fb04ce1b6b262613", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdceec95dc13d9940ac1872837c500eb439176eb0863b591fb04ce1b6b262613", kill_on_drop: false }` [INFO] [stdout] fdceec95dc13d9940ac1872837c500eb439176eb0863b591fb04ce1b6b262613 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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=forbid" "-e" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ee2ee20c5d79dc81e86e77f598bca0135c6095c2e0d49c241bc22c5afb61d1e0 [INFO] running `Command { std: "docker" "start" "-a" "ee2ee20c5d79dc81e86e77f598bca0135c6095c2e0d49c241bc22c5afb61d1e0", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Compiling self-hello v0.1.0 (/opt/rustwide/workdir/pro/attri-hello) [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking stopwatch v0.0.7 [INFO] [stderr] Checking lang v0.1.0 (/opt/rustwide/workdir/lang) [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> lang/src/thread.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{Duration,SystemTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> lang/src/thread.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct Circle { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 34 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 35 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Circle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> lang/src/base.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | --------- the item `Rng` is already imported here [INFO] [stdout] ... [INFO] [stdout] 201 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo` is never used [INFO] [stdout] --> lang/src/thread.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn foo(s: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo1` is never used [INFO] [stdout] --> lang/src/thread.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn foo1(s: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> lang/src/base.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | --------- the item `Rng` is already imported here [INFO] [stdout] ... [INFO] [stdout] 201 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> lang/src/thread.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{Duration,SystemTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `clone` that must be used [INFO] [stdout] --> lang/src/thread.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | s.clone(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: cloning is often expensive and is not expected to have side effects [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = s.clone(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> lang/src/base.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> lang/src/base.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> lang/src/base.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut x: i32 = 5; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> lang/src/base.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut x: i32 = 5; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> lang/src/base.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | let (w,z) = (3, "hello,chen"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> lang/src/base.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | let (w,z) = (3, "hello,chen"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str1` [INFO] [stdout] --> lang/src/base.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | let str1 = "hello,world !"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> lang/src/base.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let str2 : &str = "This is rust's trait"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str3` [INFO] [stdout] --> lang/src/base.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let str3 = String::from("hello,world2"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array2` [INFO] [stdout] --> lang/src/base.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let array2 : [i32;2] = [4, 5]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_array2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> lang/src/base.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let s :usize = array1.len(); // s == 3 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> lang/src/base.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let e = array1[1]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec1` [INFO] [stdout] --> lang/src/base.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let vec1 = vec![1, 2, 3]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vec1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let y: Vec = [4, 5, 6].to_vec(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> lang/src/base.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let x = (5, '6'); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z0` [INFO] [stdout] --> lang/src/base.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let z0 = y.0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z1` [INFO] [stdout] --> lang/src/base.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let z1 = y.1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let y = if x == '5' { 5 } else if x == '6' { 6 } else { -1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let y = x; // the resource assigned to x is move to y [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> lang/src/base.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | let (w,z) = (3, "hello,chen"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> lang/src/base.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | let (w,z) = (3, "hello,chen"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str1` [INFO] [stdout] --> lang/src/base.rs:91:10 [INFO] [stdout] | [INFO] [stdout] 91 | let str1 = "hello,world !"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str2` [INFO] [stdout] --> lang/src/base.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let str2 : &str = "This is rust's trait"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str3` [INFO] [stdout] --> lang/src/base.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let str3 = String::from("hello,world2"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array2` [INFO] [stdout] --> lang/src/base.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let array2 : [i32;2] = [4, 5]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_array2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> lang/src/base.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let s :usize = array1.len(); // s == 3 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> lang/src/base.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | let e = array1[1]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vec1` [INFO] [stdout] --> lang/src/base.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let vec1 = vec![1, 2, 3]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vec1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let y: Vec = [4, 5, 6].to_vec(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> lang/src/base.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | let x = (5, '6'); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z0` [INFO] [stdout] --> lang/src/base.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let z0 = y.0; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z1` [INFO] [stdout] --> lang/src/base.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let z1 = y.1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_z1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | let y = if x == '5' { 5 } else if x == '6' { 6 } else { -1 }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red` [INFO] [stdout] --> lang/src/base.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let red = Color::Red; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_red` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue` [INFO] [stdout] --> lang/src/base.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let blue :Color = Color::Blue; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> lang/src/base.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | let c = shape::Circle{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> lang/src/base.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let c2 = Circle{ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> lang/src/base.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | let y = x; // the resource assigned to x is move to y [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `red` [INFO] [stdout] --> lang/src/base.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let red = Color::Red; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_red` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue` [INFO] [stdout] --> lang/src/base.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let blue :Color = Color::Blue; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_blue` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> lang/src/base.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | let c = shape::Circle{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> lang/src/base.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let c2 = Circle{ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Green` is never constructed [INFO] [stdout] --> lang/src/base.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 37 | Red, [INFO] [stdout] 38 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Green` is never constructed [INFO] [stdout] --> lang/src/base.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 37 | Red, [INFO] [stdout] 38 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> lang/src/thread.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct Circle { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 34 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 35 | y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Circle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> lang/src/base.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 44 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | height: u32, [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] [INFO] [stdout] [INFO] [stdout] warning: fields `center` and `radius` are never read [INFO] [stdout] --> lang/src/shape/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Circle{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 3 | pub center: (i32, i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | pub radius: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `area`, and `move_to` are never used [INFO] [stdout] --> lang/src/shape/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Circle { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 8 | fn new(center: (i32, i32), radius: u32) -> Circle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn move_to(&mut self, new_center: (i32, i32)) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> lang/src/base.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 44 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 45 | height: u32, [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] [INFO] [stdout] [INFO] [stdout] warning: fields `center` and `radius` are never read [INFO] [stdout] --> lang/src/shape/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Circle{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 3 | pub center: (i32, i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | pub radius: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `area`, and `move_to` are never used [INFO] [stdout] --> lang/src/shape/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Circle { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 8 | fn new(center: (i32, i32), radius: u32) -> Circle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn move_to(&mut self, new_center: (i32, i32)) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo` is never used [INFO] [stdout] --> lang/src/thread.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn foo(s: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `foo1` is never used [INFO] [stdout] --> lang/src/thread.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn foo1(s: T) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `clone` that must be used [INFO] [stdout] --> lang/src/thread.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | s.clone(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: cloning is often expensive and is not expected to have side effects [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = s.clone(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking self-learning v0.1.0 (/opt/rustwide/workdir/pro/attri-hello-call) [INFO] [stdout] println!("Hello, Greet"); [INFO] [stdout] attr: "bar" [INFO] [stdout] item: "fn invoke1() {}" [INFO] [stdout] fn: "fn prt1() { println!("Hello, greet2!"); }" [INFO] [stdout] fn: "fn prt2() { println!("Hello, greet2!"); }" [INFO] [stdout] println!("Hello, Greet"); [INFO] [stdout] attr: "bar" [INFO] [stdout] item: "fn invoke1() {}" [INFO] [stdout] fn: "fn prt1() { println!("Hello, greet2!"); }" [INFO] [stdout] fn: "fn prt2() { println!("Hello, greet2!"); }" [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.93s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint v0.1.44, num-complex v0.1.43, num-rational v0.1.42 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "ee2ee20c5d79dc81e86e77f598bca0135c6095c2e0d49c241bc22c5afb61d1e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee2ee20c5d79dc81e86e77f598bca0135c6095c2e0d49c241bc22c5afb61d1e0", kill_on_drop: false }` [INFO] [stdout] ee2ee20c5d79dc81e86e77f598bca0135c6095c2e0d49c241bc22c5afb61d1e0