[INFO] fetching crate option-operations 0.5.0... [INFO] testing option-operations-0.5.0 against try#ed7f3d77595b4831fdf085f2529aa13b5b51ff7d for pr-134530 [INFO] extracting crate option-operations 0.5.0 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate option-operations 0.5.0 on toolchain ed7f3d77595b4831fdf085f2529aa13b5b51ff7d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "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-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "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" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 58e02696bc5a71225043419c99eef274321352d8b9a395637a7366c685d020ad [INFO] running `Command { std: "docker" "start" "-a" "58e02696bc5a71225043419c99eef274321352d8b9a395637a7366c685d020ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58e02696bc5a71225043419c99eef274321352d8b9a395637a7366c685d020ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58e02696bc5a71225043419c99eef274321352d8b9a395637a7366c685d020ad", kill_on_drop: false }` [INFO] [stdout] 58e02696bc5a71225043419c99eef274321352d8b9a395637a7366c685d020ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cbcd3d4a5b651a462d827c4d8ce02bce4e8c3ae01f183b85491791e1869f0c2b [INFO] running `Command { std: "docker" "start" "-a" "cbcd3d4a5b651a462d827c4d8ce02bce4e8c3ae01f183b85491791e1869f0c2b", kill_on_drop: false }` [INFO] [stderr] Compiling option-operations v0.5.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.71s [INFO] running `Command { std: "docker" "inspect" "cbcd3d4a5b651a462d827c4d8ce02bce4e8c3ae01f183b85491791e1869f0c2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbcd3d4a5b651a462d827c4d8ce02bce4e8c3ae01f183b85491791e1869f0c2b", kill_on_drop: false }` [INFO] [stdout] cbcd3d4a5b651a462d827c4d8ce02bce4e8c3ae01f183b85491791e1869f0c2b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38af25960eea7700acbe8ca2dfea31cf9ed10b5316e3c22ba27cf11131c51aaf [INFO] running `Command { std: "docker" "start" "-a" "38af25960eea7700acbe8ca2dfea31cf9ed10b5316e3c22ba27cf11131c51aaf", kill_on_drop: false }` [INFO] [stderr] Compiling 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: `#[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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [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] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.49s [INFO] running `Command { std: "docker" "inspect" "38af25960eea7700acbe8ca2dfea31cf9ed10b5316e3c22ba27cf11131c51aaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38af25960eea7700acbe8ca2dfea31cf9ed10b5316e3c22ba27cf11131c51aaf", kill_on_drop: false }` [INFO] [stdout] 38af25960eea7700acbe8ca2dfea31cf9ed10b5316e3c22ba27cf11131c51aaf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3b354fd1e185b1d576bde81952fe1f2141686a8cc43587d48c0562e06c08bd1a [INFO] running `Command { std: "docker" "start" "-a" "3b354fd1e185b1d576bde81952fe1f2141686a8cc43587d48c0562e06c08bd1a", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/add.rs:203:9 [INFO] [stderr] | [INFO] [stderr] 202 | fn checked_add() { [INFO] [stderr] | ---------------- move the `impl` block outside of this function `checked_add` [INFO] [stderr] 203 | impl OptionCheckedAdd for MyInt { [INFO] [stderr] | ^^^^^----------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionCheckedAdd` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/add.rs:210:9 [INFO] [stderr] | [INFO] [stderr] 202 | fn checked_add() { [INFO] [stderr] | ---------------- move the `impl` block outside of this function `checked_add` [INFO] [stderr] ... [INFO] [stderr] 210 | impl OptionCheckedAdd for MyInt { [INFO] [stderr] | ^^^^^----------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionCheckedAdd` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/add.rs:236:9 [INFO] [stderr] | [INFO] [stderr] 235 | fn saturating_add() { [INFO] [stderr] | ------------------- move the `impl` block outside of this function `saturating_add` [INFO] [stderr] 236 | impl OptionSaturatingAdd for MyInt { [INFO] [stderr] | ^^^^^-------------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionSaturatingAdd` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/add.rs:243:9 [INFO] [stderr] | [INFO] [stderr] 235 | fn saturating_add() { [INFO] [stderr] | ------------------- move the `impl` block outside of this function `saturating_add` [INFO] [stderr] ... [INFO] [stderr] 243 | impl OptionSaturatingAdd for MyInt { [INFO] [stderr] | ^^^^^-------------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionSaturatingAdd` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/add.rs:264:9 [INFO] [stderr] | [INFO] [stderr] 263 | fn overflowing_add() { [INFO] [stderr] | -------------------- move the `impl` block outside of this function `overflowing_add` [INFO] [stderr] 264 | impl OptionOverflowingAdd for MyInt { [INFO] [stderr] | ^^^^^--------------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionOverflowingAdd` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/add.rs:273:9 [INFO] [stderr] | [INFO] [stderr] 263 | fn overflowing_add() { [INFO] [stderr] | -------------------- move the `impl` block outside of this function `overflowing_add` [INFO] [stderr] ... [INFO] [stderr] 273 | impl OptionOverflowingAdd for MyInt { [INFO] [stderr] | ^^^^^--------------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionOverflowingAdd` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/add.rs:296:9 [INFO] [stderr] | [INFO] [stderr] 295 | fn wrapping_add() { [INFO] [stderr] | ----------------- move the `impl` block outside of this function `wrapping_add` [INFO] [stderr] 296 | impl OptionWrappingAdd for MyInt { [INFO] [stderr] | ^^^^^-----------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionWrappingAdd` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/add.rs:303:9 [INFO] [stderr] | [INFO] [stderr] 295 | fn wrapping_add() { [INFO] [stderr] | ----------------- move the `impl` block outside of this function `wrapping_add` [INFO] [stderr] ... [INFO] [stderr] 303 | impl OptionWrappingAdd for MyInt { [INFO] [stderr] | ^^^^^-----------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionWrappingAdd` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/div.rs:248:9 [INFO] [stderr] | [INFO] [stderr] 247 | fn checked_div() { [INFO] [stderr] | ---------------- move the `impl` block outside of this function `checked_div` [INFO] [stderr] 248 | impl OptionCheckedDiv for MyInt { [INFO] [stderr] | ^^^^^----------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionCheckedDiv` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/div.rs:255:9 [INFO] [stderr] | [INFO] [stderr] 247 | fn checked_div() { [INFO] [stderr] | ---------------- move the `impl` block outside of this function `checked_div` [INFO] [stderr] ... [INFO] [stderr] 255 | impl OptionCheckedDiv for MyInt { [INFO] [stderr] | ^^^^^----------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionCheckedDiv` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/div.rs:291:9 [INFO] [stderr] | [INFO] [stderr] 290 | fn overflowing_div() { [INFO] [stderr] | -------------------- move the `impl` block outside of this function `overflowing_div` [INFO] [stderr] 291 | impl OptionOverflowingDiv for MyInt { [INFO] [stderr] | ^^^^^--------------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionOverflowingDiv` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/div.rs:300:9 [INFO] [stderr] | [INFO] [stderr] 290 | fn overflowing_div() { [INFO] [stderr] | -------------------- move the `impl` block outside of this function `overflowing_div` [INFO] [stderr] ... [INFO] [stderr] 300 | impl OptionOverflowingDiv for MyInt { [INFO] [stderr] | ^^^^^--------------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionOverflowingDiv` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/div.rs:337:9 [INFO] [stderr] | [INFO] [stderr] 336 | fn wrapping_div() { [INFO] [stderr] | ----------------- move the `impl` block outside of this function `wrapping_div` [INFO] [stderr] 337 | impl OptionWrappingDiv for MyInt { [INFO] [stderr] | ^^^^^-----------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionWrappingDiv` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/div.rs:344:9 [INFO] [stderr] | [INFO] [stderr] 336 | fn wrapping_div() { [INFO] [stderr] | ----------------- move the `impl` block outside of this function `wrapping_div` [INFO] [stderr] ... [INFO] [stderr] 344 | impl OptionWrappingDiv for MyInt { [INFO] [stderr] | ^^^^^-----------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionWrappingDiv` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/mul.rs:221:9 [INFO] [stderr] | [INFO] [stderr] 220 | fn checked_mul() { [INFO] [stderr] | ---------------- move the `impl` block outside of this function `checked_mul` [INFO] [stderr] 221 | impl OptionCheckedMul for MyInt { [INFO] [stderr] | ^^^^^----------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionCheckedMul` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/mul.rs:228:9 [INFO] [stderr] | [INFO] [stderr] 220 | fn checked_mul() { [INFO] [stderr] | ---------------- move the `impl` block outside of this function `checked_mul` [INFO] [stderr] ... [INFO] [stderr] 228 | impl OptionCheckedMul for MyInt { [INFO] [stderr] | ^^^^^----------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionCheckedMul` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/mul.rs:256:9 [INFO] [stderr] | [INFO] [stderr] 255 | fn saturating_mul() { [INFO] [stderr] | ------------------- move the `impl` block outside of this function `saturating_mul` [INFO] [stderr] 256 | impl OptionSaturatingMul for MyInt { [INFO] [stderr] | ^^^^^-------------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionSaturatingMul` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/mul.rs:263:9 [INFO] [stderr] | [INFO] [stderr] 255 | fn saturating_mul() { [INFO] [stderr] | ------------------- move the `impl` block outside of this function `saturating_mul` [INFO] [stderr] ... [INFO] [stderr] 263 | impl OptionSaturatingMul for MyInt { [INFO] [stderr] | ^^^^^-------------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionSaturatingMul` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/mul.rs:285:9 [INFO] [stderr] | [INFO] [stderr] 284 | fn overflowing_mul() { [INFO] [stderr] | -------------------- move the `impl` block outside of this function `overflowing_mul` [INFO] [stderr] 285 | impl OptionOverflowingMul for MyInt { [INFO] [stderr] | ^^^^^--------------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionOverflowingMul` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/mul.rs:294:9 [INFO] [stderr] | [INFO] [stderr] 284 | fn overflowing_mul() { [INFO] [stderr] | -------------------- move the `impl` block outside of this function `overflowing_mul` [INFO] [stderr] ... [INFO] [stderr] 294 | impl OptionOverflowingMul for MyInt { [INFO] [stderr] | ^^^^^--------------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionOverflowingMul` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/mul.rs:339:9 [INFO] [stderr] | [INFO] [stderr] 338 | fn wrapping_mul() { [INFO] [stderr] | ----------------- move the `impl` block outside of this function `wrapping_mul` [INFO] [stderr] 339 | impl OptionWrappingMul for MyInt { [INFO] [stderr] | ^^^^^-----------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionWrappingMul` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/mul.rs:346:9 [INFO] [stderr] | [INFO] [stderr] 338 | fn wrapping_mul() { [INFO] [stderr] | ----------------- move the `impl` block outside of this function `wrapping_mul` [INFO] [stderr] ... [INFO] [stderr] 346 | impl OptionWrappingMul for MyInt { [INFO] [stderr] | ^^^^^-----------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionWrappingMul` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/rem.rs:236:9 [INFO] [stderr] | [INFO] [stderr] 235 | fn checked_rem() { [INFO] [stderr] | ---------------- move the `impl` block outside of this function `checked_rem` [INFO] [stderr] 236 | impl OptionCheckedRem for MyInt { [INFO] [stderr] | ^^^^^----------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionCheckedRem` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/rem.rs:243:9 [INFO] [stderr] | [INFO] [stderr] 235 | fn checked_rem() { [INFO] [stderr] | ---------------- move the `impl` block outside of this function `checked_rem` [INFO] [stderr] ... [INFO] [stderr] 243 | impl OptionCheckedRem for MyInt { [INFO] [stderr] | ^^^^^----------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionCheckedRem` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/rem.rs:279:9 [INFO] [stderr] | [INFO] [stderr] 278 | fn overflowing_rem() { [INFO] [stderr] | -------------------- move the `impl` block outside of this function `overflowing_rem` [INFO] [stderr] 279 | impl OptionOverflowingRem for MyInt { [INFO] [stderr] | ^^^^^--------------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionOverflowingRem` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/rem.rs:288:9 [INFO] [stderr] | [INFO] [stderr] 278 | fn overflowing_rem() { [INFO] [stderr] | -------------------- move the `impl` block outside of this function `overflowing_rem` [INFO] [stderr] ... [INFO] [stderr] 288 | impl OptionOverflowingRem for MyInt { [INFO] [stderr] | ^^^^^--------------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionOverflowingRem` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/rem.rs:316:9 [INFO] [stderr] | [INFO] [stderr] 315 | fn wrapping_rem() { [INFO] [stderr] | ----------------- move the `impl` block outside of this function `wrapping_rem` [INFO] [stderr] 316 | impl OptionWrappingRem for MyInt { [INFO] [stderr] | ^^^^^-----------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionWrappingRem` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/rem.rs:323:9 [INFO] [stderr] | [INFO] [stderr] 315 | fn wrapping_rem() { [INFO] [stderr] | ----------------- move the `impl` block outside of this function `wrapping_rem` [INFO] [stderr] ... [INFO] [stderr] 323 | impl OptionWrappingRem for MyInt { [INFO] [stderr] | ^^^^^-----------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionWrappingRem` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/sub.rs:205:9 [INFO] [stderr] | [INFO] [stderr] 204 | fn checked_sub() { [INFO] [stderr] | ---------------- move the `impl` block outside of this function `checked_sub` [INFO] [stderr] 205 | impl OptionCheckedSub for MyInt { [INFO] [stderr] | ^^^^^----------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionCheckedSub` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/sub.rs:212:9 [INFO] [stderr] | [INFO] [stderr] 204 | fn checked_sub() { [INFO] [stderr] | ---------------- move the `impl` block outside of this function `checked_sub` [INFO] [stderr] ... [INFO] [stderr] 212 | impl OptionCheckedSub for MyInt { [INFO] [stderr] | ^^^^^----------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionCheckedSub` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/sub.rs:238:9 [INFO] [stderr] | [INFO] [stderr] 237 | fn saturating_sub() { [INFO] [stderr] | ------------------- move the `impl` block outside of this function `saturating_sub` [INFO] [stderr] 238 | impl OptionSaturatingSub for MyInt { [INFO] [stderr] | ^^^^^-------------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionSaturatingSub` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/sub.rs:245:9 [INFO] [stderr] | [INFO] [stderr] 237 | fn saturating_sub() { [INFO] [stderr] | ------------------- move the `impl` block outside of this function `saturating_sub` [INFO] [stderr] ... [INFO] [stderr] 245 | impl OptionSaturatingSub for MyInt { [INFO] [stderr] | ^^^^^-------------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionSaturatingSub` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/sub.rs:266:9 [INFO] [stderr] | [INFO] [stderr] 265 | fn overflowing_sub() { [INFO] [stderr] | -------------------- move the `impl` block outside of this function `overflowing_sub` [INFO] [stderr] 266 | impl OptionOverflowingSub for MyInt { [INFO] [stderr] | ^^^^^--------------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionOverflowingSub` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/sub.rs:275:9 [INFO] [stderr] | [INFO] [stderr] 265 | fn overflowing_sub() { [INFO] [stderr] | -------------------- move the `impl` block outside of this function `overflowing_sub` [INFO] [stderr] ... [INFO] [stderr] 275 | impl OptionOverflowingSub for MyInt { [INFO] [stderr] | ^^^^^--------------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionOverflowingSub` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/sub.rs:298:9 [INFO] [stderr] | [INFO] [stderr] 297 | fn wrapping_sub() { [INFO] [stderr] | ----------------- move the `impl` block outside of this function `wrapping_sub` [INFO] [stderr] 298 | impl OptionWrappingSub for MyInt { [INFO] [stderr] | ^^^^^-----------------^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionWrappingSub` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/sub.rs:305:9 [INFO] [stderr] | [INFO] [stderr] 297 | fn wrapping_sub() { [INFO] [stderr] | ----------------- move the `impl` block outside of this function `wrapping_sub` [INFO] [stderr] ... [INFO] [stderr] 305 | impl OptionWrappingSub for MyInt { [INFO] [stderr] | ^^^^^-----------------^^^^^^^^^^----- [INFO] [stderr] | | | [INFO] [stderr] | | `MyInt` is not local [INFO] [stderr] | `OptionWrappingSub` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] [INFO] [stderr] warning: `option-operations` (lib test) generated 36 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/option_operations-5c2bf54fbee4acd6) [INFO] [stdout] [INFO] [stdout] running 52 tests [INFO] [stdout] test add::test::add_assign_u64 ... ok [INFO] [stdout] test div::test::checked_div ... ok [INFO] [stdout] test add::test::checked_add ... ok [INFO] [stdout] test div::test::div_my ... ok [INFO] [stdout] test add::test::overflowing_add ... ok [INFO] [stdout] test div::test::div_assign_my ... ok [INFO] [stdout] test div::test::div_i64 ... ok [INFO] [stdout] test div::test::wrapping_div ... ok [INFO] [stdout] test add::test::saturating_add ... ok [INFO] [stdout] test add::test::add_u64 ... ok [INFO] [stdout] test div::test::div_assign_i64 ... ok [INFO] [stdout] test add::test::add_assign_my ... ok [INFO] [stdout] test eq::test::opt_ne ... ok [INFO] [stdout] test mul::test::mul_assign_u64 ... ok [INFO] [stdout] test mul::test::mul_my ... ok [INFO] [stdout] test mul::test::mul_u64 ... ok [INFO] [stdout] test min_max::test::max ... ok [INFO] [stdout] test mul::test::overflowing_mul ... ok [INFO] [stdout] test eq::test::opt_eq ... ok [INFO] [stdout] test div::test::overflowing_div ... ok [INFO] [stdout] test mul::test::saturating_mul ... ok [INFO] [stdout] test add::test::add_my ... ok [INFO] [stdout] test ord::test::opt_cmp ... ok [INFO] [stdout] test mul::test::wrapping_mul ... ok [INFO] [stdout] test rem::test::checked_rem ... ok [INFO] [stdout] test min_max::test::min ... ok [INFO] [stdout] test rem::test::overflowing_rem ... ok [INFO] [stdout] test add::test::wrapping_add ... ok [INFO] [stdout] test mul::test::mul_assign_my ... ok [INFO] [stdout] test mul::test::checked_mul ... ok [INFO] [stdout] test rem::test::rem_assign_my ... ok [INFO] [stdout] test rem::test::rem_my ... ok [INFO] [stdout] test rem::test::wrapping_rem ... ok [INFO] [stdout] test sub::test::overflowing_sub ... ok [INFO] [stdout] test rem::test::rem_assign_i64 ... ok [INFO] [stdout] test sub::test::sub_assign_my ... ok [INFO] [stdout] test rem::test::rem_i64 ... ok [INFO] [stdout] test sub::test::sub_assign_u64 ... ok [INFO] [stdout] test sub::test::saturating_sub ... ok [INFO] [stdout] test sub::test::checked_sub ... ok [INFO] [stdout] test sub::test::sub_my ... ok [INFO] [stdout] test sub::test::sub_u64 ... ok [INFO] [stdout] test sub::test::wrapping_sub ... ok [INFO] [stdout] test ord::test::option_partial_ord_workaround ... ok [INFO] [stdout] test div::test::div_assign_by_zero_my - should panic ... ok [INFO] [stdout] test div::test::div_assign_by_zero_i64 - should panic ... ok [INFO] [stdout] test div::test::div_by_zero_my - should panic ... ok [INFO] [stdout] test div::test::div_by_zero_i64 - should panic ... ok [INFO] [stdout] test rem::test::rem_assign_by_zero_i64 - should panic ... ok [INFO] [stdout] test rem::test::rem_assign_by_zero_my - should panic ... ok [INFO] [stdout] test rem::test::rem_by_zero_my - should panic ... ok [INFO] [stdout] test rem::test::rem_by_zero_i64 - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 52 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] [stderr] Doc-tests option_operations [INFO] [stderr] error: DefId(0:0 ~ option_operations[7bb0]) has more than five doctests [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/bin/rustdoc --edition=2018 --crate-type lib --color auto --crate-name option_operations --test src/lib.rs --test-run-directory /opt/rustwide/workdir -L dependency=/opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern option_operations=/opt/rustwide/target/debug/deps/liboption_operations-7cdf685ba665b4d5.rlib --extern paste=/opt/rustwide/target/debug/deps/libpaste-a7d55195f43d4871.so -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "std"))' --cap-lints=forbid --error-format human` (exit status: 1) [INFO] [stderr] note: test exited abnormally; to see the full output pass --nocapture to the harness. [INFO] running `Command { std: "docker" "inspect" "3b354fd1e185b1d576bde81952fe1f2141686a8cc43587d48c0562e06c08bd1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b354fd1e185b1d576bde81952fe1f2141686a8cc43587d48c0562e06c08bd1a", kill_on_drop: false }` [INFO] [stdout] 3b354fd1e185b1d576bde81952fe1f2141686a8cc43587d48c0562e06c08bd1a