[INFO] fetching crate display_utils 0.4.0... [INFO] checking display_utils-0.4.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate display_utils 0.4.0 into /workspace/builds/worker-4-tc1/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-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate display_utils 0.4.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dc2278f291e583e572d26dfd68053c065a8f584bba47934da2ce791b7588a4c6 [INFO] running `Command { std: "docker" "start" "-a" "dc2278f291e583e572d26dfd68053c065a8f584bba47934da2ce791b7588a4c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc2278f291e583e572d26dfd68053c065a8f584bba47934da2ce791b7588a4c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc2278f291e583e572d26dfd68053c065a8f584bba47934da2ce791b7588a4c6", kill_on_drop: false }` [INFO] [stdout] dc2278f291e583e572d26dfd68053c065a8f584bba47934da2ce791b7588a4c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f476d19be876e822ca75b34db8b062b0c68ba2c3036419a94567bb4513b30e4 [INFO] running `Command { std: "docker" "start" "-a" "4f476d19be876e822ca75b34db8b062b0c68ba2c3036419a94567bb4513b30e4", kill_on_drop: false }` [INFO] [stderr] Checking 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] [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.20s [INFO] running `Command { std: "docker" "inspect" "4f476d19be876e822ca75b34db8b062b0c68ba2c3036419a94567bb4513b30e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f476d19be876e822ca75b34db8b062b0c68ba2c3036419a94567bb4513b30e4", kill_on_drop: false }` [INFO] [stdout] 4f476d19be876e822ca75b34db8b062b0c68ba2c3036419a94567bb4513b30e4