[INFO] cloning repository https://github.com/sulabhkothari/SkRustLearn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sulabhkothari/SkRustLearn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsulabhkothari%2FSkRustLearn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsulabhkothari%2FSkRustLearn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0593d5dce8c4c97bb399ff38bf37f803bb3f8e72 [INFO] testing sulabhkothari/SkRustLearn against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsulabhkothari%2FSkRustLearn" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sulabhkothari/SkRustLearn [INFO] finished tweaking git repo https://github.com/sulabhkothari/SkRustLearn [INFO] tweaked toml for git repo https://github.com/sulabhkothari/SkRustLearn written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sulabhkothari/SkRustLearn on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sulabhkothari/SkRustLearn 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.67 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 92f3975b9bf2f41274dd54ec441058369c921d83f20d1a770eb53db53eaf8ca9 [INFO] running `Command { std: "docker" "start" "-a" "92f3975b9bf2f41274dd54ec441058369c921d83f20d1a770eb53db53eaf8ca9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "92f3975b9bf2f41274dd54ec441058369c921d83f20d1a770eb53db53eaf8ca9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92f3975b9bf2f41274dd54ec441058369c921d83f20d1a770eb53db53eaf8ca9", kill_on_drop: false }` [INFO] [stdout] 92f3975b9bf2f41274dd54ec441058369c921d83f20d1a770eb53db53eaf8ca9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 016a8fc31fb90e03f2a7cf40c9703b0ba93ed3cfee20df265bc837b2b2c9c364 [INFO] running `Command { std: "docker" "start" "-a" "016a8fc31fb90e03f2a7cf40c9703b0ba93ed3cfee20df265bc837b2b2c9c364", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling SkRustLearn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/fearless_concurrency.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/fearless_concurrency.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/advanced_features.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let r = address as *const i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_of_strings` [INFO] [stdout] --> src/advanced_features.rs:446:9 [INFO] [stdout] | [INFO] [stdout] 446 | let list_of_strings: Vec = list_of_numbers.iter().map(ToString::to_string).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_strings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_of_strings` [INFO] [stdout] --> src/advanced_features.rs:447:9 [INFO] [stdout] | [INFO] [stdout] 447 | let list_of_strings: Vec = list_of_numbers.iter().map(|i| i.to_string()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_strings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_of_statuses` [INFO] [stdout] --> src/advanced_features.rs:458:9 [INFO] [stdout] | [INFO] [stdout] 458 | let list_of_statuses: Vec = (0u32..20).map(Status::Value).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_statuses` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status_line` [INFO] [stdout] --> src/multithreaded_web_server.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 40 | let (status_line, filename) = if buffer.starts_with(get) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_status_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/object_oriented.rs:210:27 [INFO] [stdout] | [INFO] [stdout] 210 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pattern_matching.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | let (x, y, z) = (1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/pattern_matching.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let (x, y, z) = (1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/pattern_matching.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | let (x, y, z) = (1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/pattern_matching.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/pattern_matching.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pattern_matching.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/pattern_matching.rs:56:37 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/pattern_matching.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | let msg = Message::ChangeColor(0, 160, 255); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/pattern_matching.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spd` [INFO] [stdout] --> src/smart_pointers.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | fn loan(spd: CustomSmartPointer) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_spd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/smart_pointers.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let b = Cons(Rc::new(RefCell::new(3)), Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/smart_pointers.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let c = Cons(Rc::new(RefCell::new(4)), Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `smart_pointers::LL` [INFO] [stdout] --> src/smart_pointers.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | Nil => println!(""), [INFO] [stdout] | ^^^ help: to match on the variant, qualify the path: `smart_pointers::LL::Nil` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/smart_pointers.rs:203:18 [INFO] [stdout] | [INFO] [stdout] 203 | Node(x, y) => println!(""), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/smart_pointers.rs:203:21 [INFO] [stdout] | [INFO] [stdout] 203 | Node(x, y) => println!(""), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Nil` [INFO] [stdout] --> src/smart_pointers.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | Nil => println!(""), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Nil` [INFO] [stdout] --> src/smart_pointers.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | Nil => None, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `likely_crash` is never used [INFO] [stdout] --> src/advanced_features.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn likely_crash() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Foo` is never used [INFO] [stdout] --> src/advanced_features.rs:165:14 [INFO] [stdout] | [INFO] [stdout] 165 | unsafe trait Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Millimeters` is never constructed [INFO] [stdout] --> src/advanced_features.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | struct Millimeters(u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Meters` is never constructed [INFO] [stdout] --> src/advanced_features.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | struct Meters(u32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Thunk` is never used [INFO] [stdout] --> src/advanced_features.rs:315:6 [INFO] [stdout] | [INFO] [stdout] 315 | type Thunk = Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/advanced_features.rs:316:6 [INFO] [stdout] | [INFO] [stdout] 316 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/advanced_features.rs:453:15 [INFO] [stdout] | [INFO] [stdout] 453 | Value(u32), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 453 - Value(u32), [INFO] [stdout] 453 + Value(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Stop` and `Quit` are never constructed [INFO] [stdout] --> src/advanced_features.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 452 | enum Status { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 453 | Value(u32), [INFO] [stdout] 454 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] 455 | Quit { a: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_multiple_msg_over_channel` is never used [INFO] [stdout] --> src/fearless_concurrency.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn send_multiple_msg_over_channel() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `options` are never read [INFO] [stdout] --> src/object_oriented.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 119 | struct SelectBox { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 120 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 121 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 122 | options: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SelectBox` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `U` is never used [INFO] [stdout] --> src/object_oriented.rs:136:7 [INFO] [stdout] | [INFO] [stdout] 136 | trait U { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Rgb` is never constructed [INFO] [stdout] --> src/pattern_matching.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 163 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 164 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/pattern_matching.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 168 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 169 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 170 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 171 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `y` and `z` are never read [INFO] [stdout] --> src/pattern_matching.rs:245:9 [INFO] [stdout] | [INFO] [stdout] 243 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 244 | x: i32, [INFO] [stdout] 245 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 246 | z: i32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 105 - Cons(Rc>, Rc), [INFO] [stdout] 105 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LL` is never used [INFO] [stdout] --> src/smart_pointers.rs:193:6 [INFO] [stdout] | [INFO] [stdout] 193 | enum LL { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `last` is never used [INFO] [stdout] --> src/smart_pointers.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 198 | impl LL { [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] 199 | fn last(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/smart_pointers.rs:211:23 [INFO] [stdout] | [INFO] [stdout] 211 | MemoryLeakingCons(i32, RefCell>), [INFO] [stdout] | ----------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MemoryLeakingList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 211 - MemoryLeakingCons(i32, RefCell>), [INFO] [stdout] 211 + MemoryLeakingCons((), RefCell>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/smart_pointers.rs:298:5 [INFO] [stdout] | [INFO] [stdout] 297 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 298 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 299 | parent: RefCell>, [INFO] [stdout] 300 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/advanced_features.rs:64:33 [INFO] [stdout] | [INFO] [stdout] 64 | println!("COUNTER: {}", COUNTER); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/messenger.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(messenger: &T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(messenger: &T, max: usize) -> LimitTracker<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typedPost` should have a snake case name [INFO] [stdout] --> src/object_oriented.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut typedPost = TypedPost::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `typed_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typedPost` should have a snake case name [INFO] [stdout] --> src/object_oriented.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let typedPost = typedPost.request_review(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `typed_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typedPost` should have a snake case name [INFO] [stdout] --> src/object_oriented.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let typedPost = typedPost.approve(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `typed_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Nil` should have a snake case name [INFO] [stdout] --> src/smart_pointers.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | Nil => println!(""), [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Nil` should have a snake case name [INFO] [stdout] --> src/smart_pointers.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | Nil => None, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] error: could not compile `SkRustLearn` (lib) due to 1 previous error; 50 warnings emitted [INFO] running `Command { std: "docker" "inspect" "016a8fc31fb90e03f2a7cf40c9703b0ba93ed3cfee20df265bc837b2b2c9c364", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "016a8fc31fb90e03f2a7cf40c9703b0ba93ed3cfee20df265bc837b2b2c9c364", kill_on_drop: false }` [INFO] [stdout] 016a8fc31fb90e03f2a7cf40c9703b0ba93ed3cfee20df265bc837b2b2c9c364