[INFO] cloning repository https://github.com/sunxingboo/rust-design-pattern [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sunxingboo/rust-design-pattern" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsunxingboo%2Frust-design-pattern", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsunxingboo%2Frust-design-pattern'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 95fc1ffb7c9fb38efc2d93bd2b983d5d083b081d [INFO] checking sunxingboo/rust-design-pattern against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsunxingboo%2Frust-design-pattern" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sunxingboo/rust-design-pattern on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sunxingboo/rust-design-pattern [INFO] finished tweaking git repo https://github.com/sunxingboo/rust-design-pattern [INFO] tweaked toml for git repo https://github.com/sunxingboo/rust-design-pattern written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sunxingboo/rust-design-pattern 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2034e18bb92b35a95881fea5217d491e4cf63c42bbc508298ba25107916766bc [INFO] running `Command { std: "docker" "start" "-a" "2034e18bb92b35a95881fea5217d491e4cf63c42bbc508298ba25107916766bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2034e18bb92b35a95881fea5217d491e4cf63c42bbc508298ba25107916766bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2034e18bb92b35a95881fea5217d491e4cf63c42bbc508298ba25107916766bc", kill_on_drop: false }` [INFO] [stdout] 2034e18bb92b35a95881fea5217d491e4cf63c42bbc508298ba25107916766bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9d3eeb62ea2929c29315d3f7d00a1f59c7a0fae1f1111bf598bfd25799b00bb [INFO] running `Command { std: "docker" "start" "-a" "e9d3eeb62ea2929c29315d3f7d00a1f59c7a0fae1f1111bf598bfd25799b00bb", kill_on_drop: false }` [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking design-pattern v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `new` is never used [INFO] [stdout] --> src/patterns/creational/factory/simple_factory/factory.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(flag: &str) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say` is never used [INFO] [stdout] --> src/patterns/creational/factory/simple_factory/product/base.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Animal { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 4 | fn say(&self) -> String; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/creational/factory/simple_factory/product/product_cat.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Cat { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/creational/factory/simple_factory/product/product_dog.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Dog { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Factory` is never used [INFO] [stdout] --> src/patterns/creational/factory/factory_method/factory/base.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Factory { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CatFactory` is never constructed [INFO] [stdout] --> src/patterns/creational/factory/factory_method/factory/factory_cat.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CatFactory {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DogFactory` is never constructed [INFO] [stdout] --> src/patterns/creational/factory/factory_method/factory/factory_dog.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DogFactory {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say` is never used [INFO] [stdout] --> src/patterns/creational/factory/factory_method/product/base.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Animal { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 4 | fn say(&self) -> String; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Factory` is never used [INFO] [stdout] --> src/patterns/creational/factory/abstract_factory/factory/base.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Factory { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say` is never used [INFO] [stdout] --> src/patterns/creational/factory/abstract_factory/product/base.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait BritishShorthairCat { [INFO] [stdout] | ------------------- method in this trait [INFO] [stdout] 4 | fn say(&self) -> String; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say` is never used [INFO] [stdout] --> src/patterns/creational/factory/abstract_factory/product/base.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait PastoralCat { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 9 | fn say(&self) -> String; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Director` is never constructed [INFO] [stdout] --> src/patterns/creational/builder/director.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Director { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_builder`, and `build` are never used [INFO] [stdout] --> src/patterns/creational/builder/director.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Director { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 9 | // 引导器构造函数 [INFO] [stdout] 10 | pub fn new(builder: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_builder(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn build(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_appearance` and `set_attribute` are never used [INFO] [stdout] --> src/patterns/creational/builder/builder/base.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Builder { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn set_appearance(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 7 | fn set_attribute(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_result` are never used [INFO] [stdout] --> src/patterns/creational/builder/builder/builder_blue_white_cat.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl BlueWhiteCatBuilder { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn get_result(&self) -> &BlueWhiteCat { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_result` are never used [INFO] [stdout] --> src/patterns/creational/builder/builder/builder_felinae_cat.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl FelinaeCatBuilder { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_result(&self) -> &FelinaeCat { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_age`, `get_color`, and `say` are never used [INFO] [stdout] --> src/patterns/creational/builder/product/product_blue_white_cat.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl BlueWhiteCat { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_age(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_color(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn say(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_age`, `get_color`, and `say` are never used [INFO] [stdout] --> src/patterns/creational/builder/product/product_felinae_cat.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl FelinaeCat { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_age(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_color(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn say(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SINGLETON` is never used [INFO] [stdout] --> src/patterns/creational/singleton/singleton_std.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | static mut SINGLETON: Option>> = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SingletonStd` is never constructed [INFO] [stdout] --> src/patterns/creational/singleton/singleton_std.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SingletonStd; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/creational/singleton/singleton_std.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 7 | impl SingletonStd { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 8 | pub unsafe fn new() -> Arc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clone` is never used [INFO] [stdout] --> src/patterns/creational/prototype/prototype.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Prototype { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn clone(&self) -> Self::AssociateType; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `signature` are never used [INFO] [stdout] --> src/patterns/creational/prototype/concrete_prototype/cat.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Cat { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(name: String, age: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn signature(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `signature` are never used [INFO] [stdout] --> src/patterns/creational/prototype/concrete_prototype/dog.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Dog { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(color: String, hair: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn signature(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `treat` is never used [INFO] [stdout] --> src/patterns/structural/facade/facade.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Facade { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 9 | fn treat(&self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/facade/facade.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 23 | impl Hospital { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/facade/cashier.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | impl Cashier { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 5 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/facade/doctor.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | impl Doctor { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 5 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/facade/pharmacy.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | impl Pharmacy { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/adapter/adapter.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl BritishStandardPlugAdapter { [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(plug: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/adapter/plug.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl BritishStandardPlug { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 21 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/proxy/proxy.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ProxyAccessor { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 17 | // 可以结合工厂模式生成持有的real对象。这里简单表述不举例实现了。 [INFO] [stdout] 18 | pub fn new(real: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/proxy/subject.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl GoogleAccessor { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/composite/leaf.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl File { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 27 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/patterns/structural/composite/composite.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Directory { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn add(&mut self, c: Box) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `operate` is never used [INFO] [stdout] --> src/patterns/structural/flyweight/flyweight.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Flyweight { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 3 | fn operate(&self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FlyweightFactory` is never constructed [INFO] [stdout] --> src/patterns/structural/flyweight/flyweight_factory.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct FlyweightFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_flyweight` are never used [INFO] [stdout] --> src/patterns/structural/flyweight/flyweight_factory.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl FlyweightFactory { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_flyweight(&mut self, key: &str) -> Rc { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/flyweight/concrete_flyweight.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl ConcreteFlyweightOne { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/flyweight/concrete_flyweight.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl ConcreteFlyweightTwo { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 28 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw` is never used [INFO] [stdout] --> src/patterns/structural/bridge/abstraction.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Shape { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 2 | fn draw(&self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/bridge/refined_abstraction.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Circle { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn new(x: i32, y: i32, radius: i32, color: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/bridge/concrete_implementor.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Red { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/bridge/concrete_implementor.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Green { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 26 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/decorator/decorator.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl SMSDecorator { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(notifier: T) -> SMSDecorator { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/decorator/decorator.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl QQDecorator { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 36 | pub fn new(notifier: T) -> QQDecorator { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/decorator/concrete_component.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl BaseNotifier { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_next` is never used [INFO] [stdout] --> src/patterns/behavioral/chain_of_responsibility/middleware.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Middleware { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 3 | fn set_next(&mut self, m: Box); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/chain_of_responsibility/middleware.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Request { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 13 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/chain_of_responsibility/middleware_auth.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl MiddlewareAuth { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/chain_of_responsibility/middleware_update.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl MiddlewareUpdate { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/patterns/behavioral/command/command.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Command { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 7 | fn execute(&self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/command/command.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl CommandStart { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(m: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/command/command.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl CommandShutdown { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 35 | pub fn new(m: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/command/command.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl CommandRestart { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 54 | pub fn new(m: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/command/receiver.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl MotherBoard { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 5 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chassis` is never constructed [INFO] [stdout] --> src/patterns/behavioral/command/invoker.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chassis { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `press_button_1`, `press_button_2`, and `press_button_3` are never used [INFO] [stdout] --> src/patterns/behavioral/command/invoker.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Chassis { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 11 | pub fn new(b1: Box, b2: Box, b3: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn press_button_1(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn press_button_2(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn press_button_3(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_member` are never used [INFO] [stdout] --> src/patterns/behavioral/mediator/mediator.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | impl ControlTower { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn add_member(&mut self, air_plane: Box) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apply_for_landing` is never used [INFO] [stdout] --> src/patterns/behavioral/mediator/colleague.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Colleague { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 7 | fn id(&self) -> i32; [INFO] [stdout] 8 | fn apply_for_landing(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/mediator/colleague.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | impl AirBus320 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(mediator: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/mediator/colleague.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | impl Boeing737 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 45 | pub fn new(mediator: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageQueue` is never constructed [INFO] [stdout] --> src/patterns/behavioral/observer/publisher.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MessageQueue { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_subscriber`, and `notify` are never used [INFO] [stdout] --> src/patterns/behavioral/observer/publisher.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl MessageQueue { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn add_subscriber(&mut self, s: Box) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn notify(&self, number: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `receive` is never used [INFO] [stdout] --> src/patterns/behavioral/observer/subscriber.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Subscriber { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 3 | fn receive(&self, msg: i32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/observer/subscriber.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ConsumerA { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/observer/subscriber.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl ConsumerB { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> src/patterns/behavioral/iterator/iterator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Iterator { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 5 | fn next(&self) -> Option; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `depth_first_iterator` and `breadth_first_iterator` are never used [INFO] [stdout] --> src/patterns/behavioral/iterator/collection.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Collection { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn depth_first_iterator(self) -> Self::DepthFirstIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | fn breadth_first_iterator(self) -> Self::BreadthFirstIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read_file`, `analyze`, and `output_result` are never used [INFO] [stdout] --> src/patterns/behavioral/template/methods_interface.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait DataMiner { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 2 | fn read_file(&self, _: &str); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 3 | fn analyze(&self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | fn output_result(&self); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/template/concrete_class.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl PDFMiner { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/template/concrete_class.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl CSVMiner { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Template` is never constructed [INFO] [stdout] --> src/patterns/behavioral/template/template.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Template { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `process` are never used [INFO] [stdout] --> src/patterns/behavioral/template/template.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Template { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 8 | pub fn new(miner: M) -> Template { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn process(&self, file: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set`, `save`, and `restore` are never used [INFO] [stdout] --> src/patterns/behavioral/memento/originator.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Originator { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 5 | fn set(&mut self, _: String); [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | fn save(&self) -> Box; [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | fn restore(&mut self, _: &dyn Memento); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_text` are never used [INFO] [stdout] --> src/patterns/behavioral/memento/concrete_originator.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Editor { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_text(&self) -> &String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/patterns/behavioral/state/context.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Document { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 5 | author: String, [INFO] [stdout] 6 | state: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_state`, and `publish` are never used [INFO] [stdout] --> src/patterns/behavioral/state/context.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Document { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | /// 新建文档默认为草稿状态 [INFO] [stdout] 11 | pub fn new(author: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn set_state(&mut self, state: Box) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn publish(&mut self) -> Box { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/state/concrete_state.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | impl Draft { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle` is never used [INFO] [stdout] --> src/patterns/behavioral/state/state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait State { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 4 | fn handle(&self, _: &Document) -> Box; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/patterns/behavioral/strategy/context.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Navigator { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(strategy: T) -> Navigator { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn execute(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `build` is never used [INFO] [stdout] --> src/patterns/behavioral/strategy/strategy.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait RouteStrategy { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 2 | fn build(&self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/strategy/concrete_strategy.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl SubwayStrategy { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new() -> SubwayStrategy { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/strategy/concrete_strategy.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl RidingStrategy { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 28 | pub fn new() -> RidingStrategy { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `accept` is never used [INFO] [stdout] --> src/patterns/behavioral/visitor/visitable.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Building { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 4 | fn accept(&self, _: &dyn Visitor); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/visitor/concrete_visitor.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | impl Saler { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/visitor/concrete_visitable_object.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | impl ResidentialBuilding { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/visitor/concrete_visitable_object.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl BankBuilding { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 41 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 88 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "e9d3eeb62ea2929c29315d3f7d00a1f59c7a0fae1f1111bf598bfd25799b00bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9d3eeb62ea2929c29315d3f7d00a1f59c7a0fae1f1111bf598bfd25799b00bb", kill_on_drop: false }` [INFO] [stdout] e9d3eeb62ea2929c29315d3f7d00a1f59c7a0fae1f1111bf598bfd25799b00bb [INFO] checking sunxingboo/rust-design-pattern against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsunxingboo%2Frust-design-pattern" "/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/sunxingboo/rust-design-pattern on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sunxingboo/rust-design-pattern [INFO] finished tweaking git repo https://github.com/sunxingboo/rust-design-pattern [INFO] tweaked toml for git repo https://github.com/sunxingboo/rust-design-pattern written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sunxingboo/rust-design-pattern 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 42a6215b09beb44f299845e418878b9c2b9dc01405bf4dfb4469ecd0d3ffcb1c [INFO] running `Command { std: "docker" "start" "-a" "42a6215b09beb44f299845e418878b9c2b9dc01405bf4dfb4469ecd0d3ffcb1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "42a6215b09beb44f299845e418878b9c2b9dc01405bf4dfb4469ecd0d3ffcb1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42a6215b09beb44f299845e418878b9c2b9dc01405bf4dfb4469ecd0d3ffcb1c", kill_on_drop: false }` [INFO] [stdout] 42a6215b09beb44f299845e418878b9c2b9dc01405bf4dfb4469ecd0d3ffcb1c [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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bce059bd0656efcd1f603689df1bddf37f57a9b36bd404aa4001f0a82654da2e [INFO] running `Command { std: "docker" "start" "-a" "bce059bd0656efcd1f603689df1bddf37f57a9b36bd404aa4001f0a82654da2e", kill_on_drop: false }` [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking design-pattern v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `new` is never used [INFO] [stdout] --> src/patterns/creational/factory/simple_factory/factory.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(flag: &str) -> Box { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say` is never used [INFO] [stdout] --> src/patterns/creational/factory/simple_factory/product/base.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Animal { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 4 | fn say(&self) -> String; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/creational/factory/simple_factory/product/product_cat.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Cat { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/creational/factory/simple_factory/product/product_dog.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Dog { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Factory` is never used [INFO] [stdout] --> src/patterns/creational/factory/factory_method/factory/base.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Factory { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CatFactory` is never constructed [INFO] [stdout] --> src/patterns/creational/factory/factory_method/factory/factory_cat.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CatFactory {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DogFactory` is never constructed [INFO] [stdout] --> src/patterns/creational/factory/factory_method/factory/factory_dog.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct DogFactory {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say` is never used [INFO] [stdout] --> src/patterns/creational/factory/factory_method/product/base.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Animal { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 4 | fn say(&self) -> String; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Factory` is never used [INFO] [stdout] --> src/patterns/creational/factory/abstract_factory/factory/base.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Factory { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say` is never used [INFO] [stdout] --> src/patterns/creational/factory/abstract_factory/product/base.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait BritishShorthairCat { [INFO] [stdout] | ------------------- method in this trait [INFO] [stdout] 4 | fn say(&self) -> String; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say` is never used [INFO] [stdout] --> src/patterns/creational/factory/abstract_factory/product/base.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait PastoralCat { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] 9 | fn say(&self) -> String; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Director` is never constructed [INFO] [stdout] --> src/patterns/creational/builder/director.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Director { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_builder`, and `build` are never used [INFO] [stdout] --> src/patterns/creational/builder/director.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Director { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 9 | // 引导器构造函数 [INFO] [stdout] 10 | pub fn new(builder: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_builder(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn build(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_appearance` and `set_attribute` are never used [INFO] [stdout] --> src/patterns/creational/builder/builder/base.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Builder { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn set_appearance(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 7 | fn set_attribute(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_result` are never used [INFO] [stdout] --> src/patterns/creational/builder/builder/builder_blue_white_cat.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl BlueWhiteCatBuilder { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn get_result(&self) -> &BlueWhiteCat { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_result` are never used [INFO] [stdout] --> src/patterns/creational/builder/builder/builder_felinae_cat.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl FelinaeCatBuilder { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_result(&self) -> &FelinaeCat { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_age`, `get_color`, and `say` are never used [INFO] [stdout] --> src/patterns/creational/builder/product/product_blue_white_cat.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl BlueWhiteCat { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_age(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_color(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn say(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_name`, `get_age`, `get_color`, and `say` are never used [INFO] [stdout] --> src/patterns/creational/builder/product/product_felinae_cat.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl FelinaeCat { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_age(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_color(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn say(&self) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SINGLETON` is never used [INFO] [stdout] --> src/patterns/creational/singleton/singleton_std.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | static mut SINGLETON: Option>> = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SingletonStd` is never constructed [INFO] [stdout] --> src/patterns/creational/singleton/singleton_std.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SingletonStd; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/creational/singleton/singleton_std.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 7 | impl SingletonStd { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 8 | pub unsafe fn new() -> Arc> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clone` is never used [INFO] [stdout] --> src/patterns/creational/prototype/prototype.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Prototype { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn clone(&self) -> Self::AssociateType; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `signature` are never used [INFO] [stdout] --> src/patterns/creational/prototype/concrete_prototype/cat.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Cat { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(name: String, age: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn signature(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `signature` are never used [INFO] [stdout] --> src/patterns/creational/prototype/concrete_prototype/dog.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Dog { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(color: String, hair: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn signature(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `treat` is never used [INFO] [stdout] --> src/patterns/structural/facade/facade.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Facade { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 9 | fn treat(&self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/facade/facade.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 23 | impl Hospital { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/facade/cashier.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | impl Cashier { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 5 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/facade/doctor.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | impl Doctor { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 5 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/facade/pharmacy.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | impl Pharmacy { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/adapter/adapter.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl BritishStandardPlugAdapter { [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(plug: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/adapter/plug.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl BritishStandardPlug { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 21 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/proxy/proxy.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ProxyAccessor { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 17 | // 可以结合工厂模式生成持有的real对象。这里简单表述不举例实现了。 [INFO] [stdout] 18 | pub fn new(real: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/proxy/subject.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl GoogleAccessor { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/composite/leaf.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl File { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 27 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/patterns/structural/composite/composite.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Directory { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn add(&mut self, c: Box) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `operate` is never used [INFO] [stdout] --> src/patterns/structural/flyweight/flyweight.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Flyweight { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 3 | fn operate(&self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FlyweightFactory` is never constructed [INFO] [stdout] --> src/patterns/structural/flyweight/flyweight_factory.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct FlyweightFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_flyweight` are never used [INFO] [stdout] --> src/patterns/structural/flyweight/flyweight_factory.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl FlyweightFactory { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_flyweight(&mut self, key: &str) -> Rc { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/flyweight/concrete_flyweight.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl ConcreteFlyweightOne { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/flyweight/concrete_flyweight.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl ConcreteFlyweightTwo { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 28 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw` is never used [INFO] [stdout] --> src/patterns/structural/bridge/abstraction.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Shape { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 2 | fn draw(&self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/bridge/refined_abstraction.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Circle { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn new(x: i32, y: i32, radius: i32, color: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/bridge/concrete_implementor.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Red { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/bridge/concrete_implementor.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Green { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 26 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/decorator/decorator.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl SMSDecorator { [INFO] [stdout] | --------------------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(notifier: T) -> SMSDecorator { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/decorator/decorator.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl QQDecorator { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 36 | pub fn new(notifier: T) -> QQDecorator { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/structural/decorator/concrete_component.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl BaseNotifier { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_next` is never used [INFO] [stdout] --> src/patterns/behavioral/chain_of_responsibility/middleware.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Middleware { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 3 | fn set_next(&mut self, m: Box); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/chain_of_responsibility/middleware.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Request { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 13 | pub fn new(name: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/chain_of_responsibility/middleware_auth.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl MiddlewareAuth { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/chain_of_responsibility/middleware_update.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl MiddlewareUpdate { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/patterns/behavioral/command/command.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Command { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 7 | fn execute(&self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/command/command.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl CommandStart { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(m: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/command/command.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl CommandShutdown { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 35 | pub fn new(m: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/command/command.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl CommandRestart { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 54 | pub fn new(m: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/command/receiver.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl MotherBoard { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 5 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chassis` is never constructed [INFO] [stdout] --> src/patterns/behavioral/command/invoker.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Chassis { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `press_button_1`, `press_button_2`, and `press_button_3` are never used [INFO] [stdout] --> src/patterns/behavioral/command/invoker.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Chassis { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 11 | pub fn new(b1: Box, b2: Box, b3: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn press_button_1(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn press_button_2(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn press_button_3(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add_member` are never used [INFO] [stdout] --> src/patterns/behavioral/mediator/mediator.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | impl ControlTower { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn add_member(&mut self, air_plane: Box) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `apply_for_landing` is never used [INFO] [stdout] --> src/patterns/behavioral/mediator/colleague.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Colleague { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] 7 | fn id(&self) -> i32; [INFO] [stdout] 8 | fn apply_for_landing(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/mediator/colleague.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | impl AirBus320 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(mediator: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/mediator/colleague.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 44 | impl Boeing737 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 45 | pub fn new(mediator: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageQueue` is never constructed [INFO] [stdout] --> src/patterns/behavioral/observer/publisher.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MessageQueue { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_subscriber`, and `notify` are never used [INFO] [stdout] --> src/patterns/behavioral/observer/publisher.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl MessageQueue { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn add_subscriber(&mut self, s: Box) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn notify(&self, number: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `receive` is never used [INFO] [stdout] --> src/patterns/behavioral/observer/subscriber.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Subscriber { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 3 | fn receive(&self, msg: i32); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/observer/subscriber.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl ConsumerA { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/observer/subscriber.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl ConsumerB { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> src/patterns/behavioral/iterator/iterator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Iterator { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 5 | fn next(&self) -> Option; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `depth_first_iterator` and `breadth_first_iterator` are never used [INFO] [stdout] --> src/patterns/behavioral/iterator/collection.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Collection { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 9 | fn depth_first_iterator(self) -> Self::DepthFirstIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | fn breadth_first_iterator(self) -> Self::BreadthFirstIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read_file`, `analyze`, and `output_result` are never used [INFO] [stdout] --> src/patterns/behavioral/template/methods_interface.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait DataMiner { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 2 | fn read_file(&self, _: &str); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 3 | fn analyze(&self); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | fn output_result(&self); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/template/concrete_class.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl PDFMiner { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/template/concrete_class.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl CSVMiner { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 42 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Template` is never constructed [INFO] [stdout] --> src/patterns/behavioral/template/template.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Template { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `process` are never used [INFO] [stdout] --> src/patterns/behavioral/template/template.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Template { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 8 | pub fn new(miner: M) -> Template { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn process(&self, file: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set`, `save`, and `restore` are never used [INFO] [stdout] --> src/patterns/behavioral/memento/originator.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait Originator { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 5 | fn set(&mut self, _: String); [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | fn save(&self) -> Box; [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | fn restore(&mut self, _: &dyn Memento); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_text` are never used [INFO] [stdout] --> src/patterns/behavioral/memento/concrete_originator.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Editor { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_text(&self) -> &String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `state` is never read [INFO] [stdout] --> src/patterns/behavioral/state/context.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Document { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 5 | author: String, [INFO] [stdout] 6 | state: Box, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_state`, and `publish` are never used [INFO] [stdout] --> src/patterns/behavioral/state/context.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Document { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | /// 新建文档默认为草稿状态 [INFO] [stdout] 11 | pub fn new(author: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn set_state(&mut self, state: Box) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn publish(&mut self) -> Box { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/state/concrete_state.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | impl Draft { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle` is never used [INFO] [stdout] --> src/patterns/behavioral/state/state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait State { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 4 | fn handle(&self, _: &Document) -> Box; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/patterns/behavioral/strategy/context.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Navigator { [INFO] [stdout] | ----------------------------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(strategy: T) -> Navigator { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn execute(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `build` is never used [INFO] [stdout] --> src/patterns/behavioral/strategy/strategy.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait RouteStrategy { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 2 | fn build(&self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/strategy/concrete_strategy.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl SubwayStrategy { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new() -> SubwayStrategy { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/strategy/concrete_strategy.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl RidingStrategy { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 28 | pub fn new() -> RidingStrategy { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `accept` is never used [INFO] [stdout] --> src/patterns/behavioral/visitor/visitable.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Building { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] 4 | fn accept(&self, _: &dyn Visitor); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/visitor/concrete_visitor.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | impl Saler { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/visitor/concrete_visitable_object.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | impl ResidentialBuilding { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/patterns/behavioral/visitor/concrete_visitable_object.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | impl BankBuilding { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 41 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/patterns/behavioral/iterator/concrete_collection.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 39 | fn depth_first_iterator(self) -> Self::DepthFirstIterator { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 40 | DepthFirstIterator::new(Rc::new(self)) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/patterns/behavioral/iterator/concrete_collection.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 43 | fn breadth_first_iterator(self) -> Self::BreadthFirstIterator { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 44 | BreadthFirstIterator::new(Rc::new(self)) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 88 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `design-pattern` (bin "design-pattern") due to 3 previous errors; 88 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/patterns/behavioral/iterator/concrete_collection.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 39 | fn depth_first_iterator(self) -> Self::DepthFirstIterator { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 40 | DepthFirstIterator::new(Rc::new(self)) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/patterns/behavioral/iterator/concrete_collection.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 43 | fn breadth_first_iterator(self) -> Self::BreadthFirstIterator { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 44 | BreadthFirstIterator::new(Rc::new(self)) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `design-pattern` (bin "design-pattern" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "bce059bd0656efcd1f603689df1bddf37f57a9b36bd404aa4001f0a82654da2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bce059bd0656efcd1f603689df1bddf37f57a9b36bd404aa4001f0a82654da2e", kill_on_drop: false }` [INFO] [stdout] bce059bd0656efcd1f603689df1bddf37f57a9b36bd404aa4001f0a82654da2e