[INFO] fetching crate display_utils 0.4.0... [INFO] checking display_utils-0.4.0 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate display_utils 0.4.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate display_utils 0.4.0 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "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" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11bdc82594575824222be516b78dbe465b73f0bbe9f4586277d159ca3fed7d22 [INFO] running `Command { std: "docker" "start" "-a" "11bdc82594575824222be516b78dbe465b73f0bbe9f4586277d159ca3fed7d22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11bdc82594575824222be516b78dbe465b73f0bbe9f4586277d159ca3fed7d22", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11bdc82594575824222be516b78dbe465b73f0bbe9f4586277d159ca3fed7d22", kill_on_drop: false }` [INFO] [stdout] 11bdc82594575824222be516b78dbe465b73f0bbe9f4586277d159ca3fed7d22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail_expr_drop_order" "-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 161fbe19974fdb829c681b5cffcb26e37542f481a64e2a4818b97db16945e3ff [INFO] running `Command { std: "docker" "start" "-a" "161fbe19974fdb829c681b5cffcb26e37542f481a64e2a4818b97db16945e3ff", 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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [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] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "161fbe19974fdb829c681b5cffcb26e37542f481a64e2a4818b97db16945e3ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "161fbe19974fdb829c681b5cffcb26e37542f481a64e2a4818b97db16945e3ff", kill_on_drop: false }` [INFO] [stdout] 161fbe19974fdb829c681b5cffcb26e37542f481a64e2a4818b97db16945e3ff