[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#d336647335db03a0fc5b24fc5325cd3905c5b8e8 for pr-151146 [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] 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] validating manifest of git repo https://github.com/kien6034/Rust-indept on toolchain d336647335db03a0fc5b24fc5325cd3905c5b8e8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f82aa471fa869867af10b0217f255564fcf51d8289e5f07f2cc5d8dfbc9e694 [INFO] running `Command { std: "docker" "start" "-a" "7f82aa471fa869867af10b0217f255564fcf51d8289e5f07f2cc5d8dfbc9e694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f82aa471fa869867af10b0217f255564fcf51d8289e5f07f2cc5d8dfbc9e694", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f82aa471fa869867af10b0217f255564fcf51d8289e5f07f2cc5d8dfbc9e694", kill_on_drop: false }` [INFO] [stdout] 7f82aa471fa869867af10b0217f255564fcf51d8289e5f07f2cc5d8dfbc9e694 [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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+d336647335db03a0fc5b24fc5325cd3905c5b8e8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 029974b36262ed5420cc18e593e88617319731cc8868778d0f93a07ed838cab6 [INFO] running `Command { std: "docker" "start" "-a" "029974b36262ed5420cc18e593e88617319731cc8868778d0f93a07ed838cab6", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling syn v1.0.105 [INFO] [stderr] Compiling serde_derive v1.0.149 [INFO] [stderr] Compiling serde v1.0.149 [INFO] [stderr] Compiling serde_json v1.0.89 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking itoa v1.0.4 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.68 [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] error: 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] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #107880 [INFO] [stdout] = note: `#[deny(ambiguous_glob_reexports)]` (part of `#[deny(future_incompatible)]`) 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)]` (part of `#[warn(unused)]`) 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] error: 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] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #107880 [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] error: 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] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #107880 [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)]` (part of `#[warn(unused)]`) 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(i32, Box), [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(i32, Rc), [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] 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 6 previous errors; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: 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] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #107880 [INFO] [stdout] = note: `#[deny(ambiguous_glob_reexports)]` (part of `#[deny(future_incompatible)]`) 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)]` (part of `#[warn(unused)]`) 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] error: 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] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #107880 [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] error: 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] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #107880 [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)]` (part of `#[warn(unused)]`) 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(i32, Box), [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(i32, Rc), [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] warning: struct `DelayedFuture` is never constructed [INFO] [stdout] --> src/future/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct DelayedFuture { [INFO] [stdout] | ^^^^^^^^^^^^^ [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 6 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "029974b36262ed5420cc18e593e88617319731cc8868778d0f93a07ed838cab6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "029974b36262ed5420cc18e593e88617319731cc8868778d0f93a07ed838cab6", kill_on_drop: false }` [INFO] [stdout] 029974b36262ed5420cc18e593e88617319731cc8868778d0f93a07ed838cab6