[INFO] fetching crate option-operations 0.5.0... [INFO] checking option-operations-0.5.0 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate option-operations 0.5.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate option-operations 0.5.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 option-operations 0.5.0 [INFO] finished tweaking crates.io crate option-operations 0.5.0 [INFO] tweaked toml for crates.io crate option-operations 0.5.0 written to /workspace/builds/worker-3-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] [stderr] Updating crates.io index [INFO] [stderr] Locking 1 package to latest compatible version [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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] df762d7d9eaea1b81de540e782f658a1a6f8d529a69adf958b509d355c1a2037 [INFO] running `Command { std: "docker" "start" "-a" "df762d7d9eaea1b81de540e782f658a1a6f8d529a69adf958b509d355c1a2037", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df762d7d9eaea1b81de540e782f658a1a6f8d529a69adf958b509d355c1a2037", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df762d7d9eaea1b81de540e782f658a1a6f8d529a69adf958b509d355c1a2037", kill_on_drop: false }` [INFO] [stdout] df762d7d9eaea1b81de540e782f658a1a6f8d529a69adf958b509d355c1a2037 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 2fe612cd87e118dbeba1677989cd0f5f2a98a75c54120a551d0349767b84bf3e [INFO] running `Command { std: "docker" "start" "-a" "2fe612cd87e118dbeba1677989cd0f5f2a98a75c54120a551d0349767b84bf3e", kill_on_drop: false }` [INFO] [stderr] Checking option-operations v0.5.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/add.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 202 | fn checked_add() { [INFO] [stdout] | ---------------- move the `impl` block outside of this function `checked_add` [INFO] [stdout] 203 | impl OptionCheckedAdd for MyInt { [INFO] [stdout] | ^^^^^----------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionCheckedAdd` 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/add.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 202 | fn checked_add() { [INFO] [stdout] | ---------------- move the `impl` block outside of this function `checked_add` [INFO] [stdout] ... [INFO] [stdout] 210 | impl OptionCheckedAdd for MyInt { [INFO] [stdout] | ^^^^^----------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionCheckedAdd` 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/add.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 235 | fn saturating_add() { [INFO] [stdout] | ------------------- move the `impl` block outside of this function `saturating_add` [INFO] [stdout] 236 | impl OptionSaturatingAdd for MyInt { [INFO] [stdout] | ^^^^^-------------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionSaturatingAdd` 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/add.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 235 | fn saturating_add() { [INFO] [stdout] | ------------------- move the `impl` block outside of this function `saturating_add` [INFO] [stdout] ... [INFO] [stdout] 243 | impl OptionSaturatingAdd for MyInt { [INFO] [stdout] | ^^^^^-------------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionSaturatingAdd` 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/add.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 263 | fn overflowing_add() { [INFO] [stdout] | -------------------- move the `impl` block outside of this function `overflowing_add` [INFO] [stdout] 264 | impl OptionOverflowingAdd for MyInt { [INFO] [stdout] | ^^^^^--------------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionOverflowingAdd` 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/add.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 263 | fn overflowing_add() { [INFO] [stdout] | -------------------- move the `impl` block outside of this function `overflowing_add` [INFO] [stdout] ... [INFO] [stdout] 273 | impl OptionOverflowingAdd for MyInt { [INFO] [stdout] | ^^^^^--------------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionOverflowingAdd` 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/add.rs:296:9 [INFO] [stdout] | [INFO] [stdout] 295 | fn wrapping_add() { [INFO] [stdout] | ----------------- move the `impl` block outside of this function `wrapping_add` [INFO] [stdout] 296 | impl OptionWrappingAdd for MyInt { [INFO] [stdout] | ^^^^^-----------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionWrappingAdd` 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/add.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 295 | fn wrapping_add() { [INFO] [stdout] | ----------------- move the `impl` block outside of this function `wrapping_add` [INFO] [stdout] ... [INFO] [stdout] 303 | impl OptionWrappingAdd for MyInt { [INFO] [stdout] | ^^^^^-----------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionWrappingAdd` 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/div.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 247 | fn checked_div() { [INFO] [stdout] | ---------------- move the `impl` block outside of this function `checked_div` [INFO] [stdout] 248 | impl OptionCheckedDiv for MyInt { [INFO] [stdout] | ^^^^^----------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionCheckedDiv` 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/div.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 247 | fn checked_div() { [INFO] [stdout] | ---------------- move the `impl` block outside of this function `checked_div` [INFO] [stdout] ... [INFO] [stdout] 255 | impl OptionCheckedDiv for MyInt { [INFO] [stdout] | ^^^^^----------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionCheckedDiv` 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/div.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 290 | fn overflowing_div() { [INFO] [stdout] | -------------------- move the `impl` block outside of this function `overflowing_div` [INFO] [stdout] 291 | impl OptionOverflowingDiv for MyInt { [INFO] [stdout] | ^^^^^--------------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionOverflowingDiv` 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/div.rs:300:9 [INFO] [stdout] | [INFO] [stdout] 290 | fn overflowing_div() { [INFO] [stdout] | -------------------- move the `impl` block outside of this function `overflowing_div` [INFO] [stdout] ... [INFO] [stdout] 300 | impl OptionOverflowingDiv for MyInt { [INFO] [stdout] | ^^^^^--------------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionOverflowingDiv` 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/div.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 336 | fn wrapping_div() { [INFO] [stdout] | ----------------- move the `impl` block outside of this function `wrapping_div` [INFO] [stdout] 337 | impl OptionWrappingDiv for MyInt { [INFO] [stdout] | ^^^^^-----------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionWrappingDiv` 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/div.rs:344:9 [INFO] [stdout] | [INFO] [stdout] 336 | fn wrapping_div() { [INFO] [stdout] | ----------------- move the `impl` block outside of this function `wrapping_div` [INFO] [stdout] ... [INFO] [stdout] 344 | impl OptionWrappingDiv for MyInt { [INFO] [stdout] | ^^^^^-----------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionWrappingDiv` 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/mul.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 220 | fn checked_mul() { [INFO] [stdout] | ---------------- move the `impl` block outside of this function `checked_mul` [INFO] [stdout] 221 | impl OptionCheckedMul for MyInt { [INFO] [stdout] | ^^^^^----------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionCheckedMul` 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/mul.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 220 | fn checked_mul() { [INFO] [stdout] | ---------------- move the `impl` block outside of this function `checked_mul` [INFO] [stdout] ... [INFO] [stdout] 228 | impl OptionCheckedMul for MyInt { [INFO] [stdout] | ^^^^^----------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionCheckedMul` 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/mul.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 255 | fn saturating_mul() { [INFO] [stdout] | ------------------- move the `impl` block outside of this function `saturating_mul` [INFO] [stdout] 256 | impl OptionSaturatingMul for MyInt { [INFO] [stdout] | ^^^^^-------------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionSaturatingMul` 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/mul.rs:263:9 [INFO] [stdout] | [INFO] [stdout] 255 | fn saturating_mul() { [INFO] [stdout] | ------------------- move the `impl` block outside of this function `saturating_mul` [INFO] [stdout] ... [INFO] [stdout] 263 | impl OptionSaturatingMul for MyInt { [INFO] [stdout] | ^^^^^-------------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionSaturatingMul` 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/mul.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 284 | fn overflowing_mul() { [INFO] [stdout] | -------------------- move the `impl` block outside of this function `overflowing_mul` [INFO] [stdout] 285 | impl OptionOverflowingMul for MyInt { [INFO] [stdout] | ^^^^^--------------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionOverflowingMul` 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/mul.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 284 | fn overflowing_mul() { [INFO] [stdout] | -------------------- move the `impl` block outside of this function `overflowing_mul` [INFO] [stdout] ... [INFO] [stdout] 294 | impl OptionOverflowingMul for MyInt { [INFO] [stdout] | ^^^^^--------------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionOverflowingMul` 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/mul.rs:339:9 [INFO] [stdout] | [INFO] [stdout] 338 | fn wrapping_mul() { [INFO] [stdout] | ----------------- move the `impl` block outside of this function `wrapping_mul` [INFO] [stdout] 339 | impl OptionWrappingMul for MyInt { [INFO] [stdout] | ^^^^^-----------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionWrappingMul` 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/mul.rs:346:9 [INFO] [stdout] | [INFO] [stdout] 338 | fn wrapping_mul() { [INFO] [stdout] | ----------------- move the `impl` block outside of this function `wrapping_mul` [INFO] [stdout] ... [INFO] [stdout] 346 | impl OptionWrappingMul for MyInt { [INFO] [stdout] | ^^^^^-----------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionWrappingMul` 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/rem.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 235 | fn checked_rem() { [INFO] [stdout] | ---------------- move the `impl` block outside of this function `checked_rem` [INFO] [stdout] 236 | impl OptionCheckedRem for MyInt { [INFO] [stdout] | ^^^^^----------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionCheckedRem` 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/rem.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 235 | fn checked_rem() { [INFO] [stdout] | ---------------- move the `impl` block outside of this function `checked_rem` [INFO] [stdout] ... [INFO] [stdout] 243 | impl OptionCheckedRem for MyInt { [INFO] [stdout] | ^^^^^----------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionCheckedRem` 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/rem.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 278 | fn overflowing_rem() { [INFO] [stdout] | -------------------- move the `impl` block outside of this function `overflowing_rem` [INFO] [stdout] 279 | impl OptionOverflowingRem for MyInt { [INFO] [stdout] | ^^^^^--------------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionOverflowingRem` 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/rem.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 278 | fn overflowing_rem() { [INFO] [stdout] | -------------------- move the `impl` block outside of this function `overflowing_rem` [INFO] [stdout] ... [INFO] [stdout] 288 | impl OptionOverflowingRem for MyInt { [INFO] [stdout] | ^^^^^--------------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionOverflowingRem` 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/rem.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 315 | fn wrapping_rem() { [INFO] [stdout] | ----------------- move the `impl` block outside of this function `wrapping_rem` [INFO] [stdout] 316 | impl OptionWrappingRem for MyInt { [INFO] [stdout] | ^^^^^-----------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionWrappingRem` 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/rem.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 315 | fn wrapping_rem() { [INFO] [stdout] | ----------------- move the `impl` block outside of this function `wrapping_rem` [INFO] [stdout] ... [INFO] [stdout] 323 | impl OptionWrappingRem for MyInt { [INFO] [stdout] | ^^^^^-----------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionWrappingRem` 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/sub.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 204 | fn checked_sub() { [INFO] [stdout] | ---------------- move the `impl` block outside of this function `checked_sub` [INFO] [stdout] 205 | impl OptionCheckedSub for MyInt { [INFO] [stdout] | ^^^^^----------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionCheckedSub` 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/sub.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 204 | fn checked_sub() { [INFO] [stdout] | ---------------- move the `impl` block outside of this function `checked_sub` [INFO] [stdout] ... [INFO] [stdout] 212 | impl OptionCheckedSub for MyInt { [INFO] [stdout] | ^^^^^----------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionCheckedSub` 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/sub.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 237 | fn saturating_sub() { [INFO] [stdout] | ------------------- move the `impl` block outside of this function `saturating_sub` [INFO] [stdout] 238 | impl OptionSaturatingSub for MyInt { [INFO] [stdout] | ^^^^^-------------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionSaturatingSub` 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/sub.rs:245:9 [INFO] [stdout] | [INFO] [stdout] 237 | fn saturating_sub() { [INFO] [stdout] | ------------------- move the `impl` block outside of this function `saturating_sub` [INFO] [stdout] ... [INFO] [stdout] 245 | impl OptionSaturatingSub for MyInt { [INFO] [stdout] | ^^^^^-------------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionSaturatingSub` 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/sub.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 265 | fn overflowing_sub() { [INFO] [stdout] | -------------------- move the `impl` block outside of this function `overflowing_sub` [INFO] [stdout] 266 | impl OptionOverflowingSub for MyInt { [INFO] [stdout] | ^^^^^--------------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionOverflowingSub` 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/sub.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 265 | fn overflowing_sub() { [INFO] [stdout] | -------------------- move the `impl` block outside of this function `overflowing_sub` [INFO] [stdout] ... [INFO] [stdout] 275 | impl OptionOverflowingSub for MyInt { [INFO] [stdout] | ^^^^^--------------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionOverflowingSub` 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/sub.rs:298:9 [INFO] [stdout] | [INFO] [stdout] 297 | fn wrapping_sub() { [INFO] [stdout] | ----------------- move the `impl` block outside of this function `wrapping_sub` [INFO] [stdout] 298 | impl OptionWrappingSub for MyInt { [INFO] [stdout] | ^^^^^-----------------^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionWrappingSub` 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/sub.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 297 | fn wrapping_sub() { [INFO] [stdout] | ----------------- move the `impl` block outside of this function `wrapping_sub` [INFO] [stdout] ... [INFO] [stdout] 305 | impl OptionWrappingSub for MyInt { [INFO] [stdout] | ^^^^^-----------------^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | `MyInt` is not local [INFO] [stdout] | `OptionWrappingSub` 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: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.91s [INFO] running `Command { std: "docker" "inspect" "2fe612cd87e118dbeba1677989cd0f5f2a98a75c54120a551d0349767b84bf3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fe612cd87e118dbeba1677989cd0f5f2a98a75c54120a551d0349767b84bf3e", kill_on_drop: false }` [INFO] [stdout] 2fe612cd87e118dbeba1677989cd0f5f2a98a75c54120a551d0349767b84bf3e