[INFO] cloning repository https://github.com/kien6034/Rust-indept [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kien6034/Rust-indept" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkien6034%2FRust-indept", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkien6034%2FRust-indept'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5f7e14918dfceec427280e0aa16bac0636badc53 [INFO] checking kien6034/Rust-indept against try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkien6034%2FRust-indept" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kien6034/Rust-indept on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kien6034/Rust-indept [INFO] finished tweaking git repo https://github.com/kien6034/Rust-indept [INFO] tweaked toml for git repo https://github.com/kien6034/Rust-indept written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kien6034/Rust-indept 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" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a8d59d0d7b51aa057c703a9f5a284df2db59c9e9d9fa1659462c41312f6fac3b [INFO] running `Command { std: "docker" "start" "-a" "a8d59d0d7b51aa057c703a9f5a284df2db59c9e9d9fa1659462c41312f6fac3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a8d59d0d7b51aa057c703a9f5a284df2db59c9e9d9fa1659462c41312f6fac3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8d59d0d7b51aa057c703a9f5a284df2db59c9e9d9fa1659462c41312f6fac3b", kill_on_drop: false }` [INFO] [stdout] a8d59d0d7b51aa057c703a9f5a284df2db59c9e9d9fa1659462c41312f6fac3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f1e5ee9929ca5cde011630ac2d0546e0613b4d19e96368577b9f91dd3829cda2 [INFO] running `Command { std: "docker" "start" "-a" "f1e5ee9929ca5cde011630ac2d0546e0613b4d19e96368577b9f91dd3829cda2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling syn v1.0.105 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling serde_derive v1.0.149 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.149 [INFO] [stderr] Compiling serde_json v1.0.89 [INFO] [stderr] Checking itoa v1.0.4 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking rust-indept v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/smart_pointers/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use smart_pointer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `run` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 8 | pub use rc::*; [INFO] [stdout] | ----- but the name `run` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `smart_pointer::*` [INFO] [stdout] --> src/smart_pointers/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use smart_pointer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dereferrence::*` [INFO] [stdout] --> src/smart_pointers/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use dereferrence::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::*` [INFO] [stdout] --> src/smart_pointers/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use rc::*; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/generic_trait_lifetime/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use generic::*; [INFO] [stdout] | ^^^^^^^^^^ the name `run` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 7 | pub use lifetime::*; [INFO] [stdout] | ----------- but the name `run` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generic::*` [INFO] [stdout] --> src/generic_trait_lifetime/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use generic::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lifetime::*` [INFO] [stdout] --> src/generic_trait_lifetime/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use lifetime::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/types/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use phantomdata::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `run` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 4 | pub use typed_key_pattern::*; [INFO] [stdout] | -------------------- but the name `run` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `phantomdata::*` [INFO] [stdout] --> src/types/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use phantomdata::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result` and `error::Error` [INFO] [stdout] --> src/types/typed_key_pattern.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{result::{Result}, error::Error}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/types/typed_key_pattern.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::{Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/future/mod.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{ Duration, Instant }; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/future/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/smart_pointers/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use smart_pointer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the name `run` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 8 | pub use rc::*; [INFO] [stdout] | ----- but the name `run` in the value namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `smart_pointer::*` [INFO] [stdout] --> src/smart_pointers/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use smart_pointer::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dereferrence::*` [INFO] [stdout] --> src/smart_pointers/mod.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use dereferrence::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::*` [INFO] [stdout] --> src/smart_pointers/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use rc::*; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/generic_trait_lifetime/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use generic::*; [INFO] [stdout] | ^^^^^^^^^^ the name `run` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 7 | pub use lifetime::*; [INFO] [stdout] | ----------- but the name `run` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generic::*` [INFO] [stdout] --> src/generic_trait_lifetime/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use generic::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lifetime::*` [INFO] [stdout] --> src/generic_trait_lifetime/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use lifetime::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> src/types/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use phantomdata::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ the name `run` in the value namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 4 | pub use typed_key_pattern::*; [INFO] [stdout] | -------------------- but the name `run` in the value namespace is also re-exported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `phantomdata::*` [INFO] [stdout] --> src/types/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use phantomdata::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result` and `error::Error` [INFO] [stdout] --> src/types/typed_key_pattern.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{result::{Result}, error::Error}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/types/typed_key_pattern.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::{Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/future/mod.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{ Duration, Instant }; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::time::sleep` [INFO] [stdout] --> src/future/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio::time::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers/smart_pointer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 22 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers/rc.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `foo` is never read [INFO] [stdout] --> src/types/typed_key_pattern.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 16 | foo: Foo [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/generic_trait_lifetime/lifetime.rs:104:67 [INFO] [stdout] | [INFO] [stdout] 104 | println!("Announcment return: {}", i.announce_and_return_part("abc".into())); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/smart_pointers/dereferrence.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 42 | fn my_smart_counter() { [INFO] [stdout] | --------------------- move the `impl` block outside of this function `my_smart_counter` [INFO] [stdout] ... [INFO] [stdout] 52 | impl Deref for MyBox { [INFO] [stdout] | ^^^^^^^^-----^^^^^-----^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `MyBox` is not local [INFO] [stdout] | `Deref` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-indept` (bin "rust-indept") due to 1 previous error; 17 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers/smart_pointer.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 22 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers/rc.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `foo` is never read [INFO] [stdout] --> src/types/typed_key_pattern.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 16 | foo: Foo [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/generic_trait_lifetime/lifetime.rs:104:67 [INFO] [stdout] | [INFO] [stdout] 104 | println!("Announcment return: {}", i.announce_and_return_part("abc".into())); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/smart_pointers/dereferrence.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 42 | fn my_smart_counter() { [INFO] [stdout] | --------------------- move the `impl` block outside of this function `my_smart_counter` [INFO] [stdout] ... [INFO] [stdout] 52 | impl Deref for MyBox { [INFO] [stdout] | ^^^^^^^^-----^^^^^-----^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `MyBox` is not local [INFO] [stdout] | `Deref` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-indept` (bin "rust-indept" test) due to 1 previous error; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f1e5ee9929ca5cde011630ac2d0546e0613b4d19e96368577b9f91dd3829cda2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1e5ee9929ca5cde011630ac2d0546e0613b4d19e96368577b9f91dd3829cda2", kill_on_drop: false }` [INFO] [stdout] f1e5ee9929ca5cde011630ac2d0546e0613b4d19e96368577b9f91dd3829cda2