[INFO] fetching crate display_utils 0.4.0... [INFO] testing display_utils-0.4.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate display_utils 0.4.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate display_utils 0.4.0 [INFO] finished tweaking crates.io crate display_utils 0.4.0 [INFO] tweaked toml for crates.io crate display_utils 0.4.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate display_utils 0.4.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bbd5742771ef2c4789f376118606cfa2d6ba93d2785e9927798b02bc89406f90 [INFO] running `Command { std: "docker" "start" "-a" "bbd5742771ef2c4789f376118606cfa2d6ba93d2785e9927798b02bc89406f90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bbd5742771ef2c4789f376118606cfa2d6ba93d2785e9927798b02bc89406f90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbd5742771ef2c4789f376118606cfa2d6ba93d2785e9927798b02bc89406f90", kill_on_drop: false }` [INFO] [stdout] bbd5742771ef2c4789f376118606cfa2d6ba93d2785e9927798b02bc89406f90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7a79b5d1f1fb3865003c47936a49df5b760580d66196faa1e99cdee7264ed94 [INFO] running `Command { std: "docker" "start" "-a" "c7a79b5d1f1fb3865003c47936a49df5b760580d66196faa1e99cdee7264ed94", kill_on_drop: false }` [INFO] [stderr] Compiling display_utils v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:123:2 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn unicode_block_bar(max_length: usize, proportion: f32) -> UnicodeBlockBar { [INFO] [stdout] | ------------------------------------------------------------------------------- move the `impl` block outside of this function `unicode_block_bar` [INFO] [stdout] ... [INFO] [stdout] 123 | impl core::fmt::Display for UnicodeBlockBar { [INFO] [stdout] | ^^^^^------------------^^^^^--------------- [INFO] [stdout] | | | [INFO] [stdout] | | `UnicodeBlockBar` is not local [INFO] [stdout] | `Display` 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] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:205:2 [INFO] [stdout] | [INFO] [stdout] 194 | / pub fn vertical_unicode_block_bars( [INFO] [stdout] 195 | | max_height: usize, [INFO] [stdout] 196 | | proportions: I, [INFO] [stdout] 197 | | ) -> VerticalUnicodeBlockBars [INFO] [stdout] 198 | | where [INFO] [stdout] 199 | | I: IntoIterator, [INFO] [stdout] 200 | | I::IntoIter: Clone, [INFO] [stdout] | |_______________________- move the `impl` block outside of this function `vertical_unicode_block_bars` [INFO] [stdout] ... [INFO] [stdout] 205 | impl + Clone> core::fmt::Display for VerticalUnicodeBlockBars { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------------------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `VerticalUnicodeBlockBars` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:264:2 [INFO] [stdout] | [INFO] [stdout] 257 | / pub fn join(iterator: I, joiner: J) -> Join [INFO] [stdout] 258 | | where [INFO] [stdout] 259 | | T: core::fmt::Display, [INFO] [stdout] 260 | | I: IntoIterator, [INFO] [stdout] 261 | | I::IntoIter: Clone, [INFO] [stdout] 262 | | J: core::fmt::Display, [INFO] [stdout] | |__________________________- move the `impl` block outside of this function `join` [INFO] [stdout] 263 | { [INFO] [stdout] 264 | impl core::fmt::Display for Join [INFO] [stdout] | ^^^^^^^^^^^^^^------------------^^^^^----^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Join` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:321:2 [INFO] [stdout] | [INFO] [stdout] 314 | / pub fn join_format(iterator: I, joiner: J, callback: C) -> JoinFormat [INFO] [stdout] 315 | | where [INFO] [stdout] 316 | | I: IntoIterator, [INFO] [stdout] 317 | | I::IntoIter: Clone, [INFO] [stdout] 318 | | J: core::fmt::Display, [INFO] [stdout] 319 | | C: Fn(I::Item, &mut core::fmt::Formatter) -> core::fmt::Result, [INFO] [stdout] | |___________________________________________________________________- move the `impl` block outside of this function `join_format` [INFO] [stdout] 320 | { [INFO] [stdout] 321 | impl core::fmt::Display for JoinFormat [INFO] [stdout] | ^^^^^^^^^^^^^^------------------^^^^^----------^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `JoinFormat` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:368:2 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn repeat(token: T, times: usize) -> Repeat { [INFO] [stdout] | ------------------------------------------------------------------------- move the `impl` block outside of this function `repeat` [INFO] [stdout] 368 | impl core::fmt::Display for Repeat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Repeat` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:411:2 [INFO] [stdout] | [INFO] [stdout] 397 | pub fn lowercase(object: T) -> Lowercase { [INFO] [stdout] | ------------------------------------------------------------------ move the `impl` block outside of this function `lowercase` [INFO] [stdout] ... [INFO] [stdout] 411 | impl core::fmt::Display for Lowercase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^---------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Lowercase` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:452:2 [INFO] [stdout] | [INFO] [stdout] 438 | pub fn uppercase(object: T) -> Uppercase { [INFO] [stdout] | ------------------------------------------------------------------ move the `impl` block outside of this function `uppercase` [INFO] [stdout] ... [INFO] [stdout] 452 | impl core::fmt::Display for Uppercase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^---------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Uppercase` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:482:2 [INFO] [stdout] | [INFO] [stdout] 481 | pub fn replace<'a, T: core::fmt::Display>(source: &'a str, from: &'a str, to: T) -> Replace<'a, T> { [INFO] [stdout] | -------------------------------------------------------------------------------------------------- move the `impl` block outside of this function `replace` [INFO] [stdout] 482 | impl core::fmt::Display for Replace<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^-------^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Replace` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:526:2 [INFO] [stdout] | [INFO] [stdout] 522 | / pub fn replace_n<'a, T>(source: &'a str, from: &'a str, to: T, n: usize) -> ReplaceN<'a, T> [INFO] [stdout] 523 | | where [INFO] [stdout] 524 | | T: core::fmt::Display, [INFO] [stdout] | |__________________________- move the `impl` block outside of this function `replace_n` [INFO] [stdout] 525 | { [INFO] [stdout] 526 | impl core::fmt::Display for ReplaceN<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^--------^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `ReplaceN` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:580:2 [INFO] [stdout] | [INFO] [stdout] 574 | / pub fn concat(iterator: I) -> Concat [INFO] [stdout] 575 | | where [INFO] [stdout] 576 | | I: IntoIterator, [INFO] [stdout] 577 | | I::Item: core::fmt::Display, [INFO] [stdout] 578 | | I::IntoIter: Clone, [INFO] [stdout] | |_______________________- move the `impl` block outside of this function `concat` [INFO] [stdout] 579 | { [INFO] [stdout] 580 | impl core::fmt::Display for Concat [INFO] [stdout] | ^^^^^^^^------------------^^^^^------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Concat` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:785:2 [INFO] [stdout] | [INFO] [stdout] 749 | / pub fn slice(object: T, range: R) -> DisplaySlice [INFO] [stdout] 750 | | where [INFO] [stdout] 751 | | T: core::fmt::Display, [INFO] [stdout] 752 | | R: core::ops::RangeBounds, [INFO] [stdout] | |_____________________________________- move the `impl` block outside of this function `slice` [INFO] [stdout] ... [INFO] [stdout] 785 | impl core::fmt::Display for DisplaySlice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `DisplaySlice` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:919:2 [INFO] [stdout] | [INFO] [stdout] 918 | pub fn ordinal(number: i32) -> Ordinal { [INFO] [stdout] | -------------------------------------- move the `impl` block outside of this function `ordinal` [INFO] [stdout] 919 | impl core::fmt::Display for Ordinal { [INFO] [stdout] | ^^^^^------------------^^^^^------- [INFO] [stdout] | | | [INFO] [stdout] | | `Ordinal` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "c7a79b5d1f1fb3865003c47936a49df5b760580d66196faa1e99cdee7264ed94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7a79b5d1f1fb3865003c47936a49df5b760580d66196faa1e99cdee7264ed94", kill_on_drop: false }` [INFO] [stdout] c7a79b5d1f1fb3865003c47936a49df5b760580d66196faa1e99cdee7264ed94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ccbd31e52d04316e9e78cdda45ded6545173c40bac264d71f303cd3316f00421 [INFO] running `Command { std: "docker" "start" "-a" "ccbd31e52d04316e9e78cdda45ded6545173c40bac264d71f303cd3316f00421", kill_on_drop: false }` [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:123:2 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn unicode_block_bar(max_length: usize, proportion: f32) -> UnicodeBlockBar { [INFO] [stdout] | ------------------------------------------------------------------------------- move the `impl` block outside of this function `unicode_block_bar` [INFO] [stdout] ... [INFO] [stdout] 123 | impl core::fmt::Display for UnicodeBlockBar { [INFO] [stdout] | ^^^^^------------------^^^^^--------------- [INFO] [stdout] | | | [INFO] [stdout] | | `UnicodeBlockBar` is not local [INFO] [stdout] | `Display` 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] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:205:2 [INFO] [stdout] | [INFO] [stdout] 194 | / pub fn vertical_unicode_block_bars( [INFO] [stdout] 195 | | max_height: usize, [INFO] [stdout] 196 | | proportions: I, [INFO] [stdout] 197 | | ) -> VerticalUnicodeBlockBars [INFO] [stdout] 198 | | where [INFO] [stdout] 199 | | I: IntoIterator, [INFO] [stdout] 200 | | I::IntoIter: Clone, [INFO] [stdout] | |_______________________- move the `impl` block outside of this function `vertical_unicode_block_bars` [INFO] [stdout] ... [INFO] [stdout] 205 | impl + Clone> core::fmt::Display for VerticalUnicodeBlockBars { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------------------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `VerticalUnicodeBlockBars` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:264:2 [INFO] [stdout] | [INFO] [stdout] 257 | / pub fn join(iterator: I, joiner: J) -> Join [INFO] [stdout] 258 | | where [INFO] [stdout] 259 | | T: core::fmt::Display, [INFO] [stdout] 260 | | I: IntoIterator, [INFO] [stdout] 261 | | I::IntoIter: Clone, [INFO] [stdout] 262 | | J: core::fmt::Display, [INFO] [stdout] | |__________________________- move the `impl` block outside of this function `join` [INFO] [stdout] 263 | { [INFO] [stdout] 264 | impl core::fmt::Display for Join [INFO] [stdout] | ^^^^^^^^^^^^^^------------------^^^^^----^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Join` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:321:2 [INFO] [stdout] | [INFO] [stdout] 314 | / pub fn join_format(iterator: I, joiner: J, callback: C) -> JoinFormat [INFO] [stdout] 315 | | where [INFO] [stdout] 316 | | I: IntoIterator, [INFO] [stdout] 317 | | I::IntoIter: Clone, [INFO] [stdout] 318 | | J: core::fmt::Display, [INFO] [stdout] 319 | | C: Fn(I::Item, &mut core::fmt::Formatter) -> core::fmt::Result, [INFO] [stdout] | |___________________________________________________________________- move the `impl` block outside of this function `join_format` [INFO] [stdout] 320 | { [INFO] [stdout] 321 | impl core::fmt::Display for JoinFormat [INFO] [stdout] | ^^^^^^^^^^^^^^------------------^^^^^----------^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `JoinFormat` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:368:2 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn repeat(token: T, times: usize) -> Repeat { [INFO] [stdout] | ------------------------------------------------------------------------- move the `impl` block outside of this function `repeat` [INFO] [stdout] 368 | impl core::fmt::Display for Repeat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Repeat` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:411:2 [INFO] [stdout] | [INFO] [stdout] 397 | pub fn lowercase(object: T) -> Lowercase { [INFO] [stdout] | ------------------------------------------------------------------ move the `impl` block outside of this function `lowercase` [INFO] [stdout] ... [INFO] [stdout] 411 | impl core::fmt::Display for Lowercase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^---------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Lowercase` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:452:2 [INFO] [stdout] | [INFO] [stdout] 438 | pub fn uppercase(object: T) -> Uppercase { [INFO] [stdout] | ------------------------------------------------------------------ move the `impl` block outside of this function `uppercase` [INFO] [stdout] ... [INFO] [stdout] 452 | impl core::fmt::Display for Uppercase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^---------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Uppercase` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:482:2 [INFO] [stdout] | [INFO] [stdout] 481 | pub fn replace<'a, T: core::fmt::Display>(source: &'a str, from: &'a str, to: T) -> Replace<'a, T> { [INFO] [stdout] | -------------------------------------------------------------------------------------------------- move the `impl` block outside of this function `replace` [INFO] [stdout] 482 | impl core::fmt::Display for Replace<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^-------^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Replace` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:526:2 [INFO] [stdout] | [INFO] [stdout] 522 | / pub fn replace_n<'a, T>(source: &'a str, from: &'a str, to: T, n: usize) -> ReplaceN<'a, T> [INFO] [stdout] 523 | | where [INFO] [stdout] 524 | | T: core::fmt::Display, [INFO] [stdout] | |__________________________- move the `impl` block outside of this function `replace_n` [INFO] [stdout] 525 | { [INFO] [stdout] 526 | impl core::fmt::Display for ReplaceN<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^--------^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `ReplaceN` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:580:2 [INFO] [stdout] | [INFO] [stdout] 574 | / pub fn concat(iterator: I) -> Concat [INFO] [stdout] 575 | | where [INFO] [stdout] 576 | | I: IntoIterator, [INFO] [stdout] 577 | | I::Item: core::fmt::Display, [INFO] [stdout] 578 | | I::IntoIter: Clone, [INFO] [stdout] | |_______________________- move the `impl` block outside of this function `concat` [INFO] [stdout] 579 | { [INFO] [stdout] 580 | impl core::fmt::Display for Concat [INFO] [stdout] | ^^^^^^^^------------------^^^^^------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Concat` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:785:2 [INFO] [stdout] | [INFO] [stdout] 749 | / pub fn slice(object: T, range: R) -> DisplaySlice [INFO] [stdout] 750 | | where [INFO] [stdout] 751 | | T: core::fmt::Display, [INFO] [stdout] 752 | | R: core::ops::RangeBounds, [INFO] [stdout] | |_____________________________________- move the `impl` block outside of this function `slice` [INFO] [stdout] ... [INFO] [stdout] 785 | impl core::fmt::Display for DisplaySlice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `DisplaySlice` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stderr] Compiling display_utils v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:919:2 [INFO] [stdout] | [INFO] [stdout] 918 | pub fn ordinal(number: i32) -> Ordinal { [INFO] [stdout] | -------------------------------------- move the `impl` block outside of this function `ordinal` [INFO] [stdout] 919 | impl core::fmt::Display for Ordinal { [INFO] [stdout] | ^^^^^------------------^^^^^------- [INFO] [stdout] | | | [INFO] [stdout] | | `Ordinal` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:123:2 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn unicode_block_bar(max_length: usize, proportion: f32) -> UnicodeBlockBar { [INFO] [stdout] | ------------------------------------------------------------------------------- move the `impl` block outside of this function `unicode_block_bar` [INFO] [stdout] ... [INFO] [stdout] 123 | impl core::fmt::Display for UnicodeBlockBar { [INFO] [stdout] | ^^^^^------------------^^^^^--------------- [INFO] [stdout] | | | [INFO] [stdout] | | `UnicodeBlockBar` is not local [INFO] [stdout] | `Display` 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] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:205:2 [INFO] [stdout] | [INFO] [stdout] 194 | / pub fn vertical_unicode_block_bars( [INFO] [stdout] 195 | | max_height: usize, [INFO] [stdout] 196 | | proportions: I, [INFO] [stdout] 197 | | ) -> VerticalUnicodeBlockBars [INFO] [stdout] 198 | | where [INFO] [stdout] 199 | | I: IntoIterator, [INFO] [stdout] 200 | | I::IntoIter: Clone, [INFO] [stdout] | |_______________________- move the `impl` block outside of this function `vertical_unicode_block_bars` [INFO] [stdout] ... [INFO] [stdout] 205 | impl + Clone> core::fmt::Display for VerticalUnicodeBlockBars { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------------------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `VerticalUnicodeBlockBars` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:264:2 [INFO] [stdout] | [INFO] [stdout] 257 | / pub fn join(iterator: I, joiner: J) -> Join [INFO] [stdout] 258 | | where [INFO] [stdout] 259 | | T: core::fmt::Display, [INFO] [stdout] 260 | | I: IntoIterator, [INFO] [stdout] 261 | | I::IntoIter: Clone, [INFO] [stdout] 262 | | J: core::fmt::Display, [INFO] [stdout] | |__________________________- move the `impl` block outside of this function `join` [INFO] [stdout] 263 | { [INFO] [stdout] 264 | impl core::fmt::Display for Join [INFO] [stdout] | ^^^^^^^^^^^^^^------------------^^^^^----^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Join` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:321:2 [INFO] [stdout] | [INFO] [stdout] 314 | / pub fn join_format(iterator: I, joiner: J, callback: C) -> JoinFormat [INFO] [stdout] 315 | | where [INFO] [stdout] 316 | | I: IntoIterator, [INFO] [stdout] 317 | | I::IntoIter: Clone, [INFO] [stdout] 318 | | J: core::fmt::Display, [INFO] [stdout] 319 | | C: Fn(I::Item, &mut core::fmt::Formatter) -> core::fmt::Result, [INFO] [stdout] | |___________________________________________________________________- move the `impl` block outside of this function `join_format` [INFO] [stdout] 320 | { [INFO] [stdout] 321 | impl core::fmt::Display for JoinFormat [INFO] [stdout] | ^^^^^^^^^^^^^^------------------^^^^^----------^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `JoinFormat` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:368:2 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn repeat(token: T, times: usize) -> Repeat { [INFO] [stdout] | ------------------------------------------------------------------------- move the `impl` block outside of this function `repeat` [INFO] [stdout] 368 | impl core::fmt::Display for Repeat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Repeat` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:411:2 [INFO] [stdout] | [INFO] [stdout] 397 | pub fn lowercase(object: T) -> Lowercase { [INFO] [stdout] | ------------------------------------------------------------------ move the `impl` block outside of this function `lowercase` [INFO] [stdout] ... [INFO] [stdout] 411 | impl core::fmt::Display for Lowercase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^---------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Lowercase` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:452:2 [INFO] [stdout] | [INFO] [stdout] 438 | pub fn uppercase(object: T) -> Uppercase { [INFO] [stdout] | ------------------------------------------------------------------ move the `impl` block outside of this function `uppercase` [INFO] [stdout] ... [INFO] [stdout] 452 | impl core::fmt::Display for Uppercase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^---------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Uppercase` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:482:2 [INFO] [stdout] | [INFO] [stdout] 481 | pub fn replace<'a, T: core::fmt::Display>(source: &'a str, from: &'a str, to: T) -> Replace<'a, T> { [INFO] [stdout] | -------------------------------------------------------------------------------------------------- move the `impl` block outside of this function `replace` [INFO] [stdout] 482 | impl core::fmt::Display for Replace<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^-------^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Replace` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:526:2 [INFO] [stdout] | [INFO] [stdout] 522 | / pub fn replace_n<'a, T>(source: &'a str, from: &'a str, to: T, n: usize) -> ReplaceN<'a, T> [INFO] [stdout] 523 | | where [INFO] [stdout] 524 | | T: core::fmt::Display, [INFO] [stdout] | |__________________________- move the `impl` block outside of this function `replace_n` [INFO] [stdout] 525 | { [INFO] [stdout] 526 | impl core::fmt::Display for ReplaceN<'_, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^--------^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `ReplaceN` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:580:2 [INFO] [stdout] | [INFO] [stdout] 574 | / pub fn concat(iterator: I) -> Concat [INFO] [stdout] 575 | | where [INFO] [stdout] 576 | | I: IntoIterator, [INFO] [stdout] 577 | | I::Item: core::fmt::Display, [INFO] [stdout] 578 | | I::IntoIter: Clone, [INFO] [stdout] | |_______________________- move the `impl` block outside of this function `concat` [INFO] [stdout] 579 | { [INFO] [stdout] 580 | impl core::fmt::Display for Concat [INFO] [stdout] | ^^^^^^^^------------------^^^^^------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `Concat` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:785:2 [INFO] [stdout] | [INFO] [stdout] 749 | / pub fn slice(object: T, range: R) -> DisplaySlice [INFO] [stdout] 750 | | where [INFO] [stdout] 751 | | T: core::fmt::Display, [INFO] [stdout] 752 | | R: core::ops::RangeBounds, [INFO] [stdout] | |_____________________________________- move the `impl` block outside of this function `slice` [INFO] [stdout] ... [INFO] [stdout] 785 | impl core::fmt::Display for DisplaySlice { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------------^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `DisplaySlice` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:919:2 [INFO] [stdout] | [INFO] [stdout] 918 | pub fn ordinal(number: i32) -> Ordinal { [INFO] [stdout] | -------------------------------------- move the `impl` block outside of this function `ordinal` [INFO] [stdout] 919 | impl core::fmt::Display for Ordinal { [INFO] [stdout] | ^^^^^------------------^^^^^------- [INFO] [stdout] | | | [INFO] [stdout] | | `Ordinal` is not local [INFO] [stdout] | `Display` 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] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "ccbd31e52d04316e9e78cdda45ded6545173c40bac264d71f303cd3316f00421", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccbd31e52d04316e9e78cdda45ded6545173c40bac264d71f303cd3316f00421", kill_on_drop: false }` [INFO] [stdout] ccbd31e52d04316e9e78cdda45ded6545173c40bac264d71f303cd3316f00421 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3a87106c89385981f4e7e12c77ad68341f1601fdfbdfce940ff0695af5f8ffb9 [INFO] running `Command { std: "docker" "start" "-a" "3a87106c89385981f4e7e12c77ad68341f1601fdfbdfce940ff0695af5f8ffb9", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] [INFO] [stderr] --> src/lib.rs:123:2 [INFO] [stdout] running 1 test [INFO] [stderr] | [INFO] [stdout] test test_checked_split_at ... ok [INFO] [stderr] 119 | pub fn unicode_block_bar(max_length: usize, proportion: f32) -> UnicodeBlockBar { [INFO] [stdout] [INFO] [stderr] | ------------------------------------------------------------------------------- move the `impl` block outside of this function `unicode_block_bar` [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] ... [INFO] [stdout] [INFO] [stderr] 123 | impl core::fmt::Display for UnicodeBlockBar { [INFO] [stderr] | ^^^^^------------------^^^^^--------------- [INFO] [stderr] | | | [INFO] [stderr] | | `UnicodeBlockBar` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:205:2 [INFO] [stderr] | [INFO] [stderr] 194 | / pub fn vertical_unicode_block_bars( [INFO] [stderr] 195 | | max_height: usize, [INFO] [stderr] 196 | | proportions: I, [INFO] [stderr] 197 | | ) -> VerticalUnicodeBlockBars [INFO] [stderr] 198 | | where [INFO] [stderr] 199 | | I: IntoIterator, [INFO] [stderr] 200 | | I::IntoIter: Clone, [INFO] [stderr] | |_______________________- move the `impl` block outside of this function `vertical_unicode_block_bars` [INFO] [stderr] ... [INFO] [stderr] 205 | impl + Clone> core::fmt::Display for VerticalUnicodeBlockBars { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------------------------^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `VerticalUnicodeBlockBars` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:264:2 [INFO] [stderr] | [INFO] [stderr] 257 | / pub fn join(iterator: I, joiner: J) -> Join [INFO] [stderr] 258 | | where [INFO] [stderr] 259 | | T: core::fmt::Display, [INFO] [stderr] 260 | | I: IntoIterator, [INFO] [stderr] 261 | | I::IntoIter: Clone, [INFO] [stderr] 262 | | J: core::fmt::Display, [INFO] [stderr] | |__________________________- move the `impl` block outside of this function `join` [INFO] [stderr] 263 | { [INFO] [stderr] 264 | impl core::fmt::Display for Join [INFO] [stderr] | ^^^^^^^^^^^^^^------------------^^^^^----^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `Join` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:321:2 [INFO] [stderr] | [INFO] [stderr] 314 | / pub fn join_format(iterator: I, joiner: J, callback: C) -> JoinFormat [INFO] [stderr] 315 | | where [INFO] [stderr] 316 | | I: IntoIterator, [INFO] [stderr] 317 | | I::IntoIter: Clone, [INFO] [stderr] 318 | | J: core::fmt::Display, [INFO] [stderr] 319 | | C: Fn(I::Item, &mut core::fmt::Formatter) -> core::fmt::Result, [INFO] [stderr] | |___________________________________________________________________- move the `impl` block outside of this function `join_format` [INFO] [stderr] 320 | { [INFO] [stderr] 321 | impl core::fmt::Display for JoinFormat [INFO] [stderr] | ^^^^^^^^^^^^^^------------------^^^^^----------^^^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `JoinFormat` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:368:2 [INFO] [stderr] | [INFO] [stderr] 367 | pub fn repeat(token: T, times: usize) -> Repeat { [INFO] [stderr] | ------------------------------------------------------------------------- move the `impl` block outside of this function `repeat` [INFO] [stderr] 368 | impl core::fmt::Display for Repeat { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `Repeat` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:411:2 [INFO] [stderr] | [INFO] [stderr] 397 | pub fn lowercase(object: T) -> Lowercase { [INFO] [stderr] | ------------------------------------------------------------------ move the `impl` block outside of this function `lowercase` [INFO] [stderr] ... [INFO] [stderr] 411 | impl core::fmt::Display for Lowercase { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^---------^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `Lowercase` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:452:2 [INFO] [stderr] | [INFO] [stderr] 438 | pub fn uppercase(object: T) -> Uppercase { [INFO] [stderr] | ------------------------------------------------------------------ move the `impl` block outside of this function `uppercase` [INFO] [stderr] ... [INFO] [stderr] 452 | impl core::fmt::Display for Uppercase { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^---------^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `Uppercase` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:482:2 [INFO] [stderr] | [INFO] [stderr] 481 | pub fn replace<'a, T: core::fmt::Display>(source: &'a str, from: &'a str, to: T) -> Replace<'a, T> { [INFO] [stderr] | -------------------------------------------------------------------------------------------------- move the `impl` block outside of this function `replace` [INFO] [stderr] 482 | impl core::fmt::Display for Replace<'_, T> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^-------^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `Replace` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:526:2 [INFO] [stderr] | [INFO] [stderr] 522 | / pub fn replace_n<'a, T>(source: &'a str, from: &'a str, to: T, n: usize) -> ReplaceN<'a, T> [INFO] [stderr] 523 | | where [INFO] [stderr] 524 | | T: core::fmt::Display, [INFO] [stderr] | |__________________________- move the `impl` block outside of this function `replace_n` [INFO] [stderr] 525 | { [INFO] [stderr] 526 | impl core::fmt::Display for ReplaceN<'_, T> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^--------^^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `ReplaceN` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:580:2 [INFO] [stderr] | [INFO] [stderr] 574 | / pub fn concat(iterator: I) -> Concat [INFO] [stderr] 575 | | where [INFO] [stderr] 576 | | I: IntoIterator, [INFO] [stderr] 577 | | I::Item: core::fmt::Display, [INFO] [stderr] 578 | | I::IntoIter: Clone, [INFO] [stderr] | |_______________________- move the `impl` block outside of this function `concat` [INFO] [stderr] 579 | { [INFO] [stderr] 580 | impl core::fmt::Display for Concat [INFO] [stderr] | ^^^^^^^^------------------^^^^^------^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `Concat` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:785:2 [INFO] [stderr] | [INFO] [stderr] 749 | / pub fn slice(object: T, range: R) -> DisplaySlice [INFO] [stderr] 750 | | where [INFO] [stderr] 751 | | T: core::fmt::Display, [INFO] [stderr] 752 | | R: core::ops::RangeBounds, [INFO] [stderr] | |_____________________________________- move the `impl` block outside of this function `slice` [INFO] [stderr] ... [INFO] [stderr] 785 | impl core::fmt::Display for DisplaySlice { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------^^^^^------------^^^ [INFO] [stderr] | | | [INFO] [stderr] | | `DisplaySlice` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/lib.rs:919:2 [INFO] [stderr] | [INFO] [stderr] 918 | pub fn ordinal(number: i32) -> Ordinal { [INFO] [stderr] | -------------------------------------- move the `impl` block outside of this function `ordinal` [INFO] [stderr] 919 | impl core::fmt::Display for Ordinal { [INFO] [stderr] | ^^^^^------------------^^^^^------- [INFO] [stderr] | | | [INFO] [stderr] | | `Ordinal` is not local [INFO] [stderr] | `Display` is not local [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: `display_utils` (lib) generated 12 warnings [INFO] [stderr] warning: `display_utils` (lib test) generated 12 warnings (12 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/display_utils-4b8eff7f4b760b77) [INFO] [stderr] Doc-tests display_utils [INFO] [stdout] [INFO] [stdout] running 18 tests [INFO] [stdout] test src/lib.rs - ordinal (line 904) ... ok [INFO] [stdout] test src/lib.rs - lowercase (line 390) ... ok [INFO] [stdout] test src/lib.rs - (line 10) ... ok [INFO] [stdout] test src/lib.rs - cmp (line 827) ... ok [INFO] [stdout] test src/lib.rs - unicode_block_bar (line 96) ... ok [INFO] [stdout] test src/lib.rs - replace (line 473) ... ok [INFO] [stdout] test src/lib.rs - (line 21) ... ok [INFO] [stdout] test src/lib.rs - collect_str (line 705) ... ok [INFO] [stdout] test src/lib.rs - replace_n (line 514) ... ok [INFO] [stdout] test src/lib.rs - concat (line 67) ... ok [INFO] [stdout] test src/lib.rs - join_format (line 303) ... ok [INFO] [stdout] test src/lib.rs - collect_str_mut (line 610) ... ok [INFO] [stdout] test src/lib.rs - vertical_unicode_block_bars (line 171) ... ok [INFO] [stdout] test src/lib.rs - repeat (line 360) ... ok [INFO] [stdout] test src/lib.rs - join (line 248) ... ok [INFO] [stdout] test src/lib.rs - uppercase (line 430) ... ok [INFO] [stdout] test src/lib.rs - concat (line 563) ... ok [INFO] [stdout] test src/lib.rs - slice (line 740) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.85s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3a87106c89385981f4e7e12c77ad68341f1601fdfbdfce940ff0695af5f8ffb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a87106c89385981f4e7e12c77ad68341f1601fdfbdfce940ff0695af5f8ffb9", kill_on_drop: false }` [INFO] [stdout] 3a87106c89385981f4e7e12c77ad68341f1601fdfbdfce940ff0695af5f8ffb9