[INFO] cloning repository https://github.com/startdusk/crust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/startdusk/crust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstartdusk%2Fcrust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstartdusk%2Fcrust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4b6fbd77399f1cdf18fb0369fb72ada36af3bbde [INFO] checking startdusk/crust against master#1f81f906893d166d05fb4839f169983f2b564cc7 for pr-135167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstartdusk%2Fcrust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/startdusk/crust on toolchain 1f81f906893d166d05fb4839f169983f2b564cc7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f81f906893d166d05fb4839f169983f2b564cc7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/startdusk/crust [INFO] finished tweaking git repo https://github.com/startdusk/crust [INFO] tweaked toml for git repo https://github.com/startdusk/crust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/startdusk/crust 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" "+1f81f906893d166d05fb4839f169983f2b564cc7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1f81f906893d166d05fb4839f169983f2b564cc7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 838e8d62c018fbefeec4883e61045f3fd242624add417c1c29faeebb87dc8395 [INFO] running `Command { std: "docker" "start" "-a" "838e8d62c018fbefeec4883e61045f3fd242624add417c1c29faeebb87dc8395", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "838e8d62c018fbefeec4883e61045f3fd242624add417c1c29faeebb87dc8395", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "838e8d62c018fbefeec4883e61045f3fd242624add417c1c29faeebb87dc8395", kill_on_drop: false }` [INFO] [stdout] 838e8d62c018fbefeec4883e61045f3fd242624add417c1c29faeebb87dc8395 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1f81f906893d166d05fb4839f169983f2b564cc7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91a70a1c2a5cb48a2ffe375bf04f1ca6c982f5dd059e0f881e76fb7591001a11 [INFO] running `Command { std: "docker" "start" "-a" "91a70a1c2a5cb48a2ffe375bf04f1ca6c982f5dd059e0f881e76fb7591001a11", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling libc v0.2.138 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking boks v0.1.0 (/opt/rustwide/workdir/boks) [INFO] [stderr] Checking iterators v0.1.0 (/opt/rustwide/workdir/iterators) [INFO] [stderr] Checking lifetime_annotations v0.1.0 (/opt/rustwide/workdir/lifetime_annotations) [INFO] [stderr] Checking eksempel v0.1.0 (/opt/rustwide/workdir/eksempel) [INFO] [stderr] Checking atomics v0.1.0 (/opt/rustwide/workdir/atomics) [INFO] [stderr] Checking build-and-ffi v0.1.0 (/opt/rustwide/workdir/build-and-ffi) [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> boks/src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let b = Boks::ny(Oisann(&mut z)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> boks/src/main.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { Box::from_raw(self.p) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { let _ = Box::from_raw(self.p); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> boks/src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let b = Boks::ny(Oisann(&mut z)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> boks/src/main.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { Box::from_raw(self.p) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { let _ = Box::from_raw(self.p); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking sharing-is-caring v0.1.0 (/opt/rustwide/workdir/sharing-is-caring) [INFO] [stderr] Checking patience v0.1.0 (/opt/rustwide/workdir/patience) [INFO] [stderr] Checking channels v0.1.0 (/opt/rustwide/workdir/channels) [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> atomics/src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let r1 = t1.join().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> atomics/src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let r2 = t2.join().unwrap(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> atomics/src/main.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let z = z.load(Ordering::SeqCst); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> sharing-is-caring/src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let y = x.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> sharing-is-caring/src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let y = x.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking call-me v0.1.0 (/opt/rustwide/workdir/call-me) [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> atomics/src/main.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | let z = z.load(Ordering::SeqCst); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking smart_pointers_and_interior_mutability v0.1.0 (/opt/rustwide/workdir/smart_pointers_and_interior_mutability) [INFO] [stderr] Checking declarative_macros v0.1.0 (/opt/rustwide/workdir/declarative_macros) [INFO] [stdout] warning: trait `MaxValue` is never used [INFO] [stdout] --> declarative_macros/src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | trait MaxValue { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::Cell` [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/cell.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use super::Cell; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/cell.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/cell.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking strtok v0.1.0 (/opt/rustwide/workdir/strtok) [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/cell.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Cell { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/rc.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Rc { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | pub fn new(v: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Shared` and `Exclusive` are never constructed [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/refcell.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum RefState { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 9 | Unshared, [INFO] [stdout] 10 | Shared(usize), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | Exclusive, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RefState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `borrow`, and `borrow_mut` are never used [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/refcell.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl RefCell { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 23 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn borrow(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn borrow_mut(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/cell.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Cell { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/rc.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Rc { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | pub fn new(v: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Shared` and `Exclusive` are never constructed [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/refcell.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum RefState { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 9 | Unshared, [INFO] [stdout] 10 | Shared(usize), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | Exclusive, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RefState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `borrow`, and `borrow_mut` are never used [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/refcell.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl RefCell { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 23 | pub fn new(value: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn borrow(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn borrow_mut(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/rc.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | drop(inner); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&RcInner` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 59 - drop(inner); [INFO] [stdout] 59 + let _ = inner; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> smart_pointers_and_interior_mutability/src/rc.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | drop(inner); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&RcInner` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 59 - drop(inner); [INFO] [stdout] 59 + let _ = inner; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `MaxValue` is never used [INFO] [stdout] --> declarative_macros/src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | trait MaxValue { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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] --> declarative_macros/src/lib.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | impl $crate::MaxValue for $t { [INFO] [stdout] | ^ ---------------- `MaxValue` is not local [INFO] [stdout] ... [INFO] [stdout] 121 | fn max_value() { [INFO] [stdout] | -------------- move the `impl` block outside of this function `max_value` [INFO] [stdout] 122 | max_impl!(i32); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the macro `max_impl` defines the non-local `impl`, and may need to be changed [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] = note: this warning originates in the macro `max_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> declarative_macros/src/lib.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | impl $crate::MaxValue for $t { [INFO] [stdout] | ^ ---------------- `MaxValue` is not local [INFO] [stdout] ... [INFO] [stdout] 121 | fn max_value() { [INFO] [stdout] | -------------- move the `impl` block outside of this function `max_value` [INFO] [stdout] 122 | max_impl!(i32); [INFO] [stdout] 123 | max_impl!(u32); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the macro `max_impl` defines the non-local `impl`, and may need to be changed [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: this warning originates in the macro `max_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> declarative_macros/src/lib.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | impl $crate::MaxValue for $t { [INFO] [stdout] | ^ ---------------- `MaxValue` is not local [INFO] [stdout] ... [INFO] [stdout] 121 | fn max_value() { [INFO] [stdout] | -------------- move the `impl` block outside of this function `max_value` [INFO] [stdout] ... [INFO] [stdout] 124 | max_impl!(i64); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the macro `max_impl` defines the non-local `impl`, and may need to be changed [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: this warning originates in the macro `max_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [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] --> declarative_macros/src/lib.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | impl $crate::MaxValue for $t { [INFO] [stdout] | ^ ---------------- `MaxValue` is not local [INFO] [stdout] ... [INFO] [stdout] 121 | fn max_value() { [INFO] [stdout] | -------------- move the `impl` block outside of this function `max_value` [INFO] [stdout] ... [INFO] [stdout] 125 | max_impl!(u64); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the macro `max_impl` defines the non-local `impl`, and may need to be changed [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: this warning originates in the macro `max_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking sorting_algorithms v0.1.0 (/opt/rustwide/workdir/sorting_algorithms) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.14s [INFO] running `Command { std: "docker" "inspect" "91a70a1c2a5cb48a2ffe375bf04f1ca6c982f5dd059e0f881e76fb7591001a11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91a70a1c2a5cb48a2ffe375bf04f1ca6c982f5dd059e0f881e76fb7591001a11", kill_on_drop: false }` [INFO] [stdout] 91a70a1c2a5cb48a2ffe375bf04f1ca6c982f5dd059e0f881e76fb7591001a11