[INFO] fetching crate lexr 0.1.0... [INFO] checking lexr-0.1.0 against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] extracting crate lexr 0.1.0 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate lexr 0.1.0 on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate lexr 0.1.0 [INFO] finished tweaking crates.io crate lexr 0.1.0 [INFO] tweaked toml for crates.io crate lexr 0.1.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 92d6249ac0871315b92cdbb3ada3bbd28380d0763b814ebcdd8a3f86d924984f [INFO] running `Command { std: "docker" "start" "-a" "92d6249ac0871315b92cdbb3ada3bbd28380d0763b814ebcdd8a3f86d924984f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "92d6249ac0871315b92cdbb3ada3bbd28380d0763b814ebcdd8a3f86d924984f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92d6249ac0871315b92cdbb3ada3bbd28380d0763b814ebcdd8a3f86d924984f", kill_on_drop: false }` [INFO] [stdout] 92d6249ac0871315b92cdbb3ada3bbd28380d0763b814ebcdd8a3f86d924984f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1fb775565a8189065645cc21e8c3a80ecf273819ea1e0fefd0e97687a01c11bb [INFO] running `Command { std: "docker" "start" "-a" "1fb775565a8189065645cc21e8c3a80ecf273819ea1e0fefd0e97687a01c11bb", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Compiling concat-idents v1.1.5 [INFO] [stderr] Checking lexr v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.57s [INFO] running `Command { std: "docker" "inspect" "1fb775565a8189065645cc21e8c3a80ecf273819ea1e0fefd0e97687a01c11bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fb775565a8189065645cc21e8c3a80ecf273819ea1e0fefd0e97687a01c11bb", kill_on_drop: false }` [INFO] [stdout] 1fb775565a8189065645cc21e8c3a80ecf273819ea1e0fefd0e97687a01c11bb [INFO] checking lexr-0.1.0 against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] extracting crate lexr 0.1.0 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate lexr 0.1.0 on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate lexr 0.1.0 [INFO] finished tweaking crates.io crate lexr 0.1.0 [INFO] tweaked toml for crates.io crate lexr 0.1.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5cbe30c6499c3bf8b6bc64d5a1e934e9e553ccdf8e99988158bdb2d1866091b8 [INFO] running `Command { std: "docker" "start" "-a" "5cbe30c6499c3bf8b6bc64d5a1e934e9e553ccdf8e99988158bdb2d1866091b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5cbe30c6499c3bf8b6bc64d5a1e934e9e553ccdf8e99988158bdb2d1866091b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cbe30c6499c3bf8b6bc64d5a1e934e9e553ccdf8e99988158bdb2d1866091b8", kill_on_drop: false }` [INFO] [stdout] 5cbe30c6499c3bf8b6bc64d5a1e934e9e553ccdf8e99988158bdb2d1866091b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f2832c73bcb2a7c94ab511e59c58beb8746d846b6c8578587f514ea2978dcd2 [INFO] running `Command { std: "docker" "start" "-a" "4f2832c73bcb2a7c94ab511e59c58beb8746d846b6c8578587f514ea2978dcd2", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Compiling concat-idents v1.1.5 [INFO] [stderr] Checking lexr v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / lex_rule!{wildcard() -> Token { [INFO] [stdout] 11 | | _ => |_| Token::A, [INFO] [stdout] 12 | | }}; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `wildcard_matches_any_char` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / lex_rule!{main -> Token { [INFO] [stdout] 21 | | "a" => |_| A, [INFO] [stdout] 22 | | "b" => |_, buf| { [INFO] [stdout] 23 | | sub(buf).next_token().unwrap() [INFO] [stdout] 24 | | } [INFO] [stdout] 25 | | }} [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `can_use_buf_in_sub_rule` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / lex_rule!{sub -> Token { [INFO] [stdout] 28 | | "c" => |_| C, [INFO] [stdout] 29 | | }} [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `can_use_buf_in_sub_rule` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / lex_rule!{main -> Token { [INFO] [stdout] 38 | | "a" => |_| A, [INFO] [stdout] 39 | | "b" => |_, buf| { [INFO] [stdout] 40 | | sub(buf).deplete(); [INFO] [stdout] ... | [INFO] [stdout] 43 | | "c" => |_| C [INFO] [stdout] 44 | | }} [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `subrule_mutates_same_buf` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | / lex_rule!{sub -> () { [INFO] [stdout] 47 | | "c" => |_| break, [INFO] [stdout] 48 | | _ => |_| continue, [INFO] [stdout] 49 | | }} [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `subrule_mutates_same_buf` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / lex_rule!{lex -> Token { [INFO] [stdout] 58 | | "a" "b" => |_| A, [INFO] [stdout] 59 | | "b" "a" => |_| B, [INFO] [stdout] 60 | | _ => |_| C [INFO] [stdout] 61 | | }} [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `can_concatenate_rules` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | / lex_rule!{lex -> Token { [INFO] [stdout] 73 | | A_RULE => |_| A, [INFO] [stdout] 74 | | B_RULE => |_| B, [INFO] [stdout] 75 | | _ => |_| C [INFO] [stdout] 76 | | }} [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `can_use_const_and_static_regex_rules` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | / lex_rule!{lex -> Token { [INFO] [stdout] 88 | | A_RULE "a" "b" => |_| A, [INFO] [stdout] 89 | | B_RULE "b" "a" => |_| B, [INFO] [stdout] 90 | | _ => |_| C [INFO] [stdout] 91 | | }} [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `can_concatenate_string_and_const_rules` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / lex_rule!{lex -> Token { [INFO] [stdout] 100 | | "a" => |_, _, _| A, [INFO] [stdout] 101 | | "b" => |_, _| B, [INFO] [stdout] 102 | | "c" => |_| C, [INFO] [stdout] ... | [INFO] [stdout] 108 | | } [INFO] [stdout] 109 | | }} [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `lex_params_work_as_expected` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | / lex_rule!{break_and_continue -> Token { [INFO] [stdout] 118 | | "a" => |_| A, [INFO] [stdout] 119 | | "b" => |_| break, [INFO] [stdout] 120 | | }}; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `break_stops_the_lexer` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | / lex_rule!{break_and_continue -> Token { [INFO] [stdout] 129 | | "a" => |_| A, [INFO] [stdout] 130 | | "b" => |_| continue, [INFO] [stdout] 131 | | }}; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `continue_skips_the_character` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | / lex_rule!{eof() -> Token { [INFO] [stdout] 140 | | eof => |_| Token::Eof [INFO] [stdout] 141 | | }}; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `eof_detected_in_empty_string` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / lex_rule!{eof() -> Token { [INFO] [stdout] 150 | | "a" => |_| continue, [INFO] [stdout] 151 | | eof => |_| Token::Eof [INFO] [stdout] 152 | | }}; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `stops_at_eof` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:160:5 [INFO] [stdout] | [INFO] [stdout] 160 | lex_rule!{eof() -> Token {}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `terminate_without_explicit_eof_rule` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | / lex_rule!{wildcard() -> Token { [INFO] [stdout] 169 | | _ => |_| Token::A, [INFO] [stdout] 170 | | eof => |_| Token::Eof [INFO] [stdout] 171 | | }}; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `wildcard_does_not_match_eof` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | / lex_rule!{wildcard() -> Token { [INFO] [stdout] 180 | | eof => |_| Token::Eof, [INFO] [stdout] 181 | | _ => |_| continue, [INFO] [stdout] 182 | | }}; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `only_single_eof_with_wildcard_rule` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | / lex_rule!{error() -> Token { [INFO] [stdout] 192 | | "a" => |_, _, loc| {println!("{}", loc); A}, [INFO] [stdout] 193 | | "b" => |_, _, loc| {println!("{:?}", loc.get_abs_loc()); B}, [INFO] [stdout] 194 | | "c" => |_, _, loc| {println!("{}", loc); C}, [INFO] [stdout] 195 | | }}; [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `error_reporting` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> tests/lex_tests.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 212 | / lex_rule!{lex -> T { [INFO] [stdout] 213 | | ws => |_| continue, // Matches whitespace [INFO] [stdout] 214 | | "a" => |_| A, // Matches "a" [INFO] [stdout] 215 | | "b" "a" => |_| B, // Matches "bc" [INFO] [stdout] ... | [INFO] [stdout] 219 | | eof => |_| Eof, // Matches the end of the input [INFO] [stdout] 220 | | }} [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `readme_example` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: this error originates in the macro `lex_rule` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lexr` (test "lex_tests") due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "4f2832c73bcb2a7c94ab511e59c58beb8746d846b6c8578587f514ea2978dcd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f2832c73bcb2a7c94ab511e59c58beb8746d846b6c8578587f514ea2978dcd2", kill_on_drop: false }` [INFO] [stdout] 4f2832c73bcb2a7c94ab511e59c58beb8746d846b6c8578587f514ea2978dcd2