[INFO] cloning repository https://github.com/yaoting10/rust_course_demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yaoting10/rust_course_demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyaoting10%2Frust_course_demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyaoting10%2Frust_course_demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28de4166a0229fdcc1b4c77349575de9836ddd2e [INFO] checking yaoting10/rust_course_demo against try#bf5ff6675cf10ce009ac02007b064a7cfc4509ac for pr-140558 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyaoting10%2Frust_course_demo" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yaoting10/rust_course_demo on toolchain bf5ff6675cf10ce009ac02007b064a7cfc4509ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yaoting10/rust_course_demo [INFO] finished tweaking git repo https://github.com/yaoting10/rust_course_demo [INFO] tweaked toml for git repo https://github.com/yaoting10/rust_course_demo written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yaoting10/rust_course_demo 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" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ad3797c001b901e7eda11921366afdbeb93466324814655c313445f7600cdc6 [INFO] running `Command { std: "docker" "start" "-a" "8ad3797c001b901e7eda11921366afdbeb93466324814655c313445f7600cdc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ad3797c001b901e7eda11921366afdbeb93466324814655c313445f7600cdc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ad3797c001b901e7eda11921366afdbeb93466324814655c313445f7600cdc6", kill_on_drop: false }` [INFO] [stdout] 8ad3797c001b901e7eda11921366afdbeb93466324814655c313445f7600cdc6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27646f9b31ae68829e5278b20d1ec14683a2f17206c573d597e94bd9473283aa [INFO] running `Command { std: "docker" "start" "-a" "27646f9b31ae68829e5278b20d1ec14683a2f17206c573d597e94bd9473283aa", kill_on_drop: false }` [INFO] [stderr] Checking rust_course_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/array_map/map_demo1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/array_map/map_dermo2.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `trait_object_demo2::Draw` is more private than the item `Screen` [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Screen { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ struct `Screen` is reachable at visibility `pub(generics_trait)` [INFO] [stdout] | [INFO] [stdout] note: but trait `trait_object_demo2::Draw` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `trait_object_demo2::Draw` is more private than the item `Screen` [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | impl Screen where T: Draw { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation `Screen` is reachable at visibility `pub(generics_trait)` [INFO] [stdout] | [INFO] [stdout] note: but trait `trait_object_demo2::Draw` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `possession_demo1` is never used [INFO] [stdout] --> src/possession/possession_demo.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn possession_demo1(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `possession_demo2` is never used [INFO] [stdout] --> src/possession/possession_demo.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn possession_demo2(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_ownership` is never used [INFO] [stdout] --> src/possession/possession_demo.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn takes_ownership(some_string: String) { // some_string 进入作用域 [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makes_copy` is never used [INFO] [stdout] --> src/possession/possession_demo.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn makes_copy(some_integer: i32) { // some_integer 进入作用域 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `possession_demo3` is never used [INFO] [stdout] --> src/possession/possession_demo.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn possession_demo3(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gives_ownership` is never used [INFO] [stdout] --> src/possession/possession_demo.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn gives_ownership() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_and_gives_back` is never used [INFO] [stdout] --> src/possession/possession_demo.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn takes_and_gives_back(a_string: String) -> String { // a_string 进入作用域 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrow` is never used [INFO] [stdout] --> src/possession/reference_borrow.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn borrow() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reference_demo` is never used [INFO] [stdout] --> src/possession/reference_borrow.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn reference_demo(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_length` is never used [INFO] [stdout] --> src/possession/reference_borrow.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn calculate_length(s: &String) -> usize { // s 是一个指向 String 的引用 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greet` is never used [INFO] [stdout] --> src/composite_type/strings.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn greet(name: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `option_demo1` is never used [INFO] [stdout] --> src/composite_type/enmu_type.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn option_demo1(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `option_demo2` is never used [INFO] [stdout] --> src/composite_type/enmu_type.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn option_demo2(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus_one` is never used [INFO] [stdout] --> src/composite_type/enmu_type.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn plus_one(x: Option) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scenarios_demo1` is never used [INFO] [stdout] --> src/matching_pattern/applicable_scenarios.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn scenarios_demo1() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_coordinates` is never used [INFO] [stdout] --> src/matching_pattern/applicable_scenarios.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn print_coordinates(&(x, y): &(i32, i32)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scenarios_demo2` is never used [INFO] [stdout] --> src/matching_pattern/applicable_scenarios.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn scenarios_demo2() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scenarios_demo3` is never used [INFO] [stdout] --> src/matching_pattern/applicable_scenarios.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn scenarios_demo3(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Circle` is never constructed [INFO] [stdout] --> src/method/method_demo1.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Circle{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `area` are never used [INFO] [stdout] --> src/method/method_demo1.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Circle{ [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 9 | fn new(x: f64, y: f64, radius: f64) -> Circle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn area(&self) -> f64{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/method/method_demo2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area` and `new` are never used [INFO] [stdout] --> src/method/method_demo2.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Rectangle{ [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 9 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | fn new(w: u32 , h: u32) -> Rectangle{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/method/method_demo2.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Rectangle{ [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 20 | fn can_hold(&self, other: &Rectangle) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/method/method_demo3.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/method/method_demo3.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Message { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 11 | fn call(&self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest` is never used [INFO] [stdout] --> src/generics_trait/generics_demo1.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn largest(list: &[T]) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest_1` is never used [INFO] [stdout] --> src/generics_trait/generics_demo1.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn largest_1 (list: &[T]) -> T{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest_2` is never used [INFO] [stdout] --> src/generics_trait/generics_demo1.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn largest_2(list: &[T])-> &T{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/generics_trait/generics_demo1.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn add>(a: T, b: T) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/generics_trait/generics_demo2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Point{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `summarize` is never used [INFO] [stdout] --> src/generics_trait/trait_demo1.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Summary { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 4 | fn summarize(&self) ->String; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/generics_trait/trait_demo1.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Post{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_into_demo1` is never used [INFO] [stdout] --> src/generics_trait/trait_demo2.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn try_into_demo1(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/generics_trait/trait_demo2.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn add>(a :T, b : T)-> T{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw` is never used [INFO] [stdout] --> src/generics_trait/trait_object_demo1.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Draw{ [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 4 | fn draw(&self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `label` are never read [INFO] [stdout] --> src/generics_trait/trait_object_demo1.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Button{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 7 | pub width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | pub height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `options` are never read [INFO] [stdout] --> src/generics_trait/trait_object_demo1.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct SelectBox{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 19 | pub width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | pub height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | pub options: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is never used [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Draw { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw1` is never used [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn draw1(x: Box) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `draw2` is never used [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn draw2(x: &dyn Draw) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Screen` is never constructed [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Screen { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run` is never used [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl Screen where T: Draw { [INFO] [stdout] | ------------------------------- method in this implementation [INFO] [stdout] 46 | pub fn run(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Animal` is never used [INFO] [stdout] --> src/generics_trait/trait_more_demo1.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Animal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dog` is never constructed [INFO] [stdout] --> src/generics_trait/trait_more_demo1.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Dog; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `baby_name` is never used [INFO] [stdout] --> src/generics_trait/trait_more_demo1.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Dog{ [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 8 | fn baby_name()-> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddr` is never used [INFO] [stdout] --> src/array_map/array_demo2.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum IpAddr{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `show_addr` is never used [INFO] [stdout] --> src/array_map/array_demo2.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn show_addr(ip: IpAddr){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IpAddr` is never used [INFO] [stdout] --> src/array_map/array_demo3.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait IpAddr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `V4` is never constructed [INFO] [stdout] --> src/array_map/array_demo3.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct V4(String); [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `V6` is never constructed [INFO] [stdout] --> src/array_map/array_demo3.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct V6(String); [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/array_map/array_demo5.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Person{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/array_map/array_demo5.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Person{ [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 9 | fn new(name: String, age: i32) -> Person{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/life_cycle/lifecycle_demo1.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn longest<'a>(x: &'a str, y: &'a str)-> &'a str{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed [INFO] [stdout] --> src/life_cycle/lifecycle_demo2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/life_cycle/lifecycle_demo3.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn first_word(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `trait_object_demo2::Draw` is more private than the item `Screen` [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Screen { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ struct `Screen` is reachable at visibility `pub(generics_trait)` [INFO] [stdout] | [INFO] [stdout] note: but trait `trait_object_demo2::Draw` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `trait_object_demo2::Draw` is more private than the item `Screen` [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | impl Screen where T: Draw { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation `Screen` is reachable at visibility `pub(generics_trait)` [INFO] [stdout] | [INFO] [stdout] note: but trait `trait_object_demo2::Draw` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/method/method_demo1.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Circle{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 3 | x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 4 | 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: field `0` is never read [INFO] [stdout] --> src/method/method_demo3.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Message` 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] 6 - Write(String), [INFO] [stdout] 6 + Write(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Move` and `ChangeColor` are never constructed [INFO] [stdout] --> src/method/method_demo3.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 4 | Quit, [INFO] [stdout] 5 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Write(String), [INFO] [stdout] 7 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest_2` is never used [INFO] [stdout] --> src/generics_trait/generics_demo1.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn largest_2(list: &[T])-> &T{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/generics_trait/generics_demo2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Point{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/generics_trait/trait_demo1.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Post{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw` is never used [INFO] [stdout] --> src/generics_trait/trait_object_demo1.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Draw{ [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 4 | fn draw(&self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `label` are never read [INFO] [stdout] --> src/generics_trait/trait_object_demo1.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Button{ [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 7 | pub width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | pub height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `options` are never read [INFO] [stdout] --> src/generics_trait/trait_object_demo1.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct SelectBox{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 19 | pub width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | pub height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | pub options: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Screen` is never constructed [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct Screen { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run` is never used [INFO] [stdout] --> src/generics_trait/trait_object_demo2.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl Screen where T: Draw { [INFO] [stdout] | ------------------------------- method in this implementation [INFO] [stdout] 46 | pub fn run(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/array_map/array_demo2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` 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] 3 - V4(String), [INFO] [stdout] 3 + V4(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/array_map/array_demo2.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` 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] 4 - V6(String), [INFO] [stdout] 4 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> src/life_cycle/lifecycle_demo2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 4 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImportantExcerpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/life_cycle/lifecycle_demo3.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn first_word(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "27646f9b31ae68829e5278b20d1ec14683a2f17206c573d597e94bd9473283aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27646f9b31ae68829e5278b20d1ec14683a2f17206c573d597e94bd9473283aa", kill_on_drop: false }` [INFO] [stdout] 27646f9b31ae68829e5278b20d1ec14683a2f17206c573d597e94bd9473283aa