[INFO] fetching crate rflex 0.9.0... [INFO] testing rflex-0.9.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate rflex 0.9.0 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate rflex 0.9.0 [INFO] finished tweaking crates.io crate rflex 0.9.0 [INFO] tweaked toml for crates.io crate rflex 0.9.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rflex 0.9.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rflex 0.9.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61df00b13ea05df5e14bc0cf6c22f123d6a6b38994ae8933948b93aec53224ab [INFO] running `Command { std: "docker" "start" "-a" "61df00b13ea05df5e14bc0cf6c22f123d6a6b38994ae8933948b93aec53224ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61df00b13ea05df5e14bc0cf6c22f123d6a6b38994ae8933948b93aec53224ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61df00b13ea05df5e14bc0cf6c22f123d6a6b38994ae8933948b93aec53224ab", kill_on_drop: false }` [INFO] [stdout] 61df00b13ea05df5e14bc0cf6c22f123d6a6b38994ae8933948b93aec53224ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64a21845090850aace6f46e59c8faea1ad610a1674fa4d0acff03383a6016aad [INFO] running `Command { std: "docker" "start" "-a" "64a21845090850aace6f46e59c8faea1ad610a1674fa4d0acff03383a6016aad", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling time-core v0.1.3 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling anymap2 v0.13.0 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Compiling time-macros v0.2.20 [INFO] [stderr] Compiling rustc-demangle v0.1.24 [INFO] [stderr] Compiling fixedbitset v0.5.7 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling time v0.3.39 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling liquid-derive v0.26.10 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling pest v2.7.15 [INFO] [stderr] Compiling backtrace v0.3.74 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling pest_meta v2.7.15 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling pest_generator v2.7.15 [INFO] [stderr] Compiling pest_derive v2.7.15 [INFO] [stderr] Compiling kstring v2.0.2 [INFO] [stderr] Compiling liquid-core v0.26.11 [INFO] [stderr] Compiling liquid-lib v0.26.11 [INFO] [stderr] Compiling liquid v0.26.11 [INFO] [stderr] Compiling rflex v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `set_end` and `set_start` are never used [INFO] [stdout] --> src/charclasses.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Interval { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn set_end(&mut self, end: usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn set_start(&mut self, start: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_char` is never used [INFO] [stdout] --> src/charclasses.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl IntCharSet { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn add_char(&mut self, c: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_max_char_code`, `set_max_char_code`, and `to_string_i` are never used [INFO] [stdout] --> src/charclasses.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 382 | impl CharClasses { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 396 | pub fn get_max_char_code(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | pub fn set_max_char_code(&mut self, max_char_code: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 511 | pub fn to_string_i(&self, index: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_dot` is never used [INFO] [stdout] --> src/nfa.rs:560:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl NFA { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 560 | pub fn write_dot(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Name` is never constructed [INFO] [stdout] --> src/scanner.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Ast { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 37 | Name(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ast` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `line_num` is never read [INFO] [stdout] --> src/scanner.rs:335:5 [INFO] [stdout] | [INFO] [stdout] 333 | pub struct RegexScanner<'a, 'b> { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 334 | chars: Chars<'a>, [INFO] [stdout] 335 | line_num: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegexScanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_char_classes` is never used [INFO] [stdout] --> src/scanner.rs:354:12 [INFO] [stdout] | [INFO] [stdout] 341 | impl<'a, 'b> RegexScanner<'a, 'b> { [INFO] [stdout] | --------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 354 | pub fn get_char_classes(&self) -> CharClasses { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `num` is never used [INFO] [stdout] --> src/scanner.rs:691:12 [INFO] [stdout] | [INFO] [stdout] 681 | impl Action { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 691 | pub fn num(num: i32) -> Action { [INFO] [stdout] | ^^^ [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/error.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ErrorKind` [INFO] [stdout] 9 | pub enum ErrorKind { [INFO] [stdout] | --------- `ErrorKind` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [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/error.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ErrorKind` [INFO] [stdout] 9 | pub enum ErrorKind { [INFO] [stdout] | --------- `ErrorKind` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | for cause in failure::Fail::iter_chain(&e) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | for cause in ::iter_chain(&e) { [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 46.34s [INFO] running `Command { std: "docker" "inspect" "64a21845090850aace6f46e59c8faea1ad610a1674fa4d0acff03383a6016aad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64a21845090850aace6f46e59c8faea1ad610a1674fa4d0acff03383a6016aad", kill_on_drop: false }` [INFO] [stdout] 64a21845090850aace6f46e59c8faea1ad610a1674fa4d0acff03383a6016aad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1ee096b64d886ddc4f1ac681db0290530b3f6ced647433506857aeb4e9b6c6f [INFO] running `Command { std: "docker" "start" "-a" "e1ee096b64d886ddc4f1ac681db0290530b3f6ced647433506857aeb4e9b6c6f", kill_on_drop: false }` [INFO] [stdout] warning: methods `set_end` and `set_start` are never used [INFO] [stdout] --> src/charclasses.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Interval { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn set_end(&mut self, end: usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn set_start(&mut self, start: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_char` is never used [INFO] [stdout] --> src/charclasses.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl IntCharSet { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn add_char(&mut self, c: usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_max_char_code`, `set_max_char_code`, and `to_string_i` are never used [INFO] [stdout] --> src/charclasses.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 382 | impl CharClasses { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 396 | pub fn get_max_char_code(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | pub fn set_max_char_code(&mut self, max_char_code: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 511 | pub fn to_string_i(&self, index: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_dot` is never used [INFO] [stdout] --> src/nfa.rs:560:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl NFA { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 560 | pub fn write_dot(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Name` is never constructed [INFO] [stdout] --> src/scanner.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Ast { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 37 | Name(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ast` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `line_num` is never read [INFO] [stdout] --> src/scanner.rs:335:5 [INFO] [stdout] | [INFO] [stdout] 333 | pub struct RegexScanner<'a, 'b> { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 334 | chars: Chars<'a>, [INFO] [stdout] 335 | line_num: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegexScanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_char_classes` is never used [INFO] [stdout] --> src/scanner.rs:354:12 [INFO] [stdout] | [INFO] [stdout] 341 | impl<'a, 'b> RegexScanner<'a, 'b> { [INFO] [stdout] | --------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 354 | pub fn get_char_classes(&self) -> CharClasses { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `num` is never used [INFO] [stdout] --> src/scanner.rs:691:12 [INFO] [stdout] | [INFO] [stdout] 681 | impl Action { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 691 | pub fn num(num: i32) -> Action { [INFO] [stdout] | ^^^ [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/error.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ErrorKind` [INFO] [stdout] 9 | pub enum ErrorKind { [INFO] [stdout] | --------- `ErrorKind` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [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/error.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ErrorKind` [INFO] [stdout] 9 | pub enum ErrorKind { [INFO] [stdout] | --------- `ErrorKind` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rflex v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | for cause in failure::Fail::iter_chain(&e) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 12 | for cause in ::iter_chain(&e) { [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_end` and `set_start` are never used [INFO] [stdout] --> src/charclasses.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Interval { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn set_end(&mut self, end: usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn set_start(&mut self, start: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_max_char_code` and `set_max_char_code` are never used [INFO] [stdout] --> src/charclasses.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 382 | impl CharClasses { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 396 | pub fn get_max_char_code(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 400 | pub fn set_max_char_code(&mut self, max_char_code: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Name` is never constructed [INFO] [stdout] --> src/scanner.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Ast { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 37 | Name(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ast` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `line_num` is never read [INFO] [stdout] --> src/scanner.rs:335:5 [INFO] [stdout] | [INFO] [stdout] 333 | pub struct RegexScanner<'a, 'b> { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 334 | chars: Chars<'a>, [INFO] [stdout] 335 | line_num: usize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegexScanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_char_classes` is never used [INFO] [stdout] --> src/scanner.rs:354:12 [INFO] [stdout] | [INFO] [stdout] 341 | impl<'a, 'b> RegexScanner<'a, 'b> { [INFO] [stdout] | --------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 354 | pub fn get_char_classes(&self) -> CharClasses { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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/error.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ErrorKind` [INFO] [stdout] 9 | pub enum ErrorKind { [INFO] [stdout] | --------- `ErrorKind` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [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/error.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ErrorKind` [INFO] [stdout] 9 | pub enum ErrorKind { [INFO] [stdout] | --------- `ErrorKind` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.10s [INFO] running `Command { std: "docker" "inspect" "e1ee096b64d886ddc4f1ac681db0290530b3f6ced647433506857aeb4e9b6c6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1ee096b64d886ddc4f1ac681db0290530b3f6ced647433506857aeb4e9b6c6f", kill_on_drop: false }` [INFO] [stdout] e1ee096b64d886ddc4f1ac681db0290530b3f6ced647433506857aeb4e9b6c6f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 40ae808a5c05407ef8751fcd13bbc2b42f62a80bf057e9de4c6a172e2d4d1cfc [INFO] running `Command { std: "docker" "start" "-a" "40ae808a5c05407ef8751fcd13bbc2b42f62a80bf057e9de4c6a172e2d4d1cfc", kill_on_drop: false }` [INFO] [stderr] warning: methods `set_end` and `set_start` are never used [INFO] [stderr] --> src/charclasses.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 9 | impl Interval { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 22 | pub fn set_end(&mut self, end: usize) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 26 | pub fn set_start(&mut self, start: usize) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `add_char` is never used [INFO] [stderr] --> src/charclasses.rs:155:12 [INFO] [stderr] | [INFO] [stderr] 37 | impl IntCharSet { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 155 | pub fn add_char(&mut self, c: usize) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_max_char_code`, `set_max_char_code`, and `to_string_i` are never used [INFO] [stderr] --> src/charclasses.rs:396:12 [INFO] [stderr] | [INFO] [stderr] 382 | impl CharClasses { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 396 | pub fn get_max_char_code(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 400 | pub fn set_max_char_code(&mut self, max_char_code: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 511 | pub fn to_string_i(&self, index: usize) -> String { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `write_dot` is never used [INFO] [stderr] --> src/nfa.rs:560:12 [INFO] [stderr] | [INFO] [stderr] 33 | impl NFA { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 560 | pub fn write_dot(&self) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Name` is never constructed [INFO] [stderr] --> src/scanner.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 23 | pub enum Ast { [INFO] [stderr] | --- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 37 | Name(String), [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Ast` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `line_num` is never read [INFO] [stderr] --> src/scanner.rs:335:5 [INFO] [stderr] | [INFO] [stderr] 333 | pub struct RegexScanner<'a, 'b> { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 334 | chars: Chars<'a>, [INFO] [stderr] 335 | line_num: usize, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RegexScanner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `get_char_classes` is never used [INFO] [stderr] --> src/scanner.rs:354:12 [INFO] [stderr] | [INFO] [stderr] 341 | impl<'a, 'b> RegexScanner<'a, 'b> { [INFO] [stderr] | --------------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 354 | pub fn get_char_classes(&self) -> CharClasses { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `num` is never used [INFO] [stderr] --> src/scanner.rs:691:12 [INFO] [stderr] | [INFO] [stderr] 681 | impl Action { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 691 | pub fn num(num: i32) -> Action { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/error.rs:8:10 [INFO] [stderr] | [INFO] [stderr] 8 | #[derive(Fail, Debug)] [INFO] [stderr] | ^--- [INFO] [stderr] | | [INFO] [stderr] | `Fail` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_ErrorKind` [INFO] [stderr] 9 | pub enum ErrorKind { [INFO] [stderr] | --------- `ErrorKind` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/error.rs:8:10 [INFO] [stderr] | [INFO] [stderr] 8 | #[derive(Fail, Debug)] [INFO] [stderr] | ^--- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_ErrorKind` [INFO] [stderr] 9 | pub enum ErrorKind { [INFO] [stderr] | --------- `ErrorKind` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `rflex` (lib) generated 10 warnings [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:12:30 [INFO] [stderr] | [INFO] [stderr] 12 | for cause in failure::Fail::iter_chain(&e) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 12 | for cause in ::iter_chain(&e) { [INFO] [stderr] | ++++ + [INFO] [stderr] [INFO] [stderr] warning: methods `get_max_char_code` and `set_max_char_code` are never used [INFO] [stderr] --> src/charclasses.rs:396:12 [INFO] [stderr] | [INFO] [stderr] 382 | impl CharClasses { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 396 | pub fn get_max_char_code(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 400 | pub fn set_max_char_code(&mut self, max_char_code: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rflex` (bin "rflex" test) generated 1 warning (run `cargo fix --bin "rflex" --tests` to apply 1 suggestion) [INFO] [stderr] warning: `rflex` (lib test) generated 7 warnings (6 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rflex-e1f3d6037a2aeeaa) [INFO] [stdout] [INFO] [stdout] running 41 tests [INFO] [stdout] test charclasses::tests::char_class_interval_format ... ok [INFO] [stdout] test scanner::tests::build_bol ... ok [INFO] [stdout] test charclasses::tests::char_classes_intervals ... ok [INFO] [stdout] test charclasses::tests::int_char_set ... ok [INFO] [stdout] test scanner::tests::build_trivial ... ok [INFO] [stdout] test scanner::tests::build_bol2 ... ok [INFO] [stdout] test charclasses::tests::interval_formatter ... ok [INFO] [stdout] test scanner::tests::fail_to_parse_literal ... ok [INFO] [stdout] test scanner::tests::condition_2 ... ok [INFO] [stdout] test scanner::tests::nfa_build_alter_group ... ok [INFO] [stdout] test scanner::tests::a_b_c_dot ... ok [INFO] [stdout] test scanner::tests::nfa_build_alter2 ... ok [INFO] [stdout] test scanner::tests::eof_1 ... ok [INFO] [stdout] test scanner::tests::nfa_build_char_class ... ok [INFO] [stdout] test scanner::tests::dfa_minimize_1 ... ok [INFO] [stdout] test scanner::tests::nfa_build_charset ... ok [INFO] [stdout] test scanner::tests::nfa_build_notcharset ... ok [INFO] [stdout] test scanner::tests::nfa_build_repetition ... ok [INFO] [stdout] test scanner::tests::nfa_build_notcharset2 ... ok [INFO] [stdout] test scanner::tests::parse_alternation_eq ... ok [INFO] [stdout] test scanner::tests::nfa_build_rep3 ... ok [INFO] [stdout] test scanner::tests::nfa_build_str ... ok [INFO] [stdout] test scanner::tests::nfa_build_rep2 ... ok [INFO] [stdout] test scanner::tests::parse_ir_bol ... ok [INFO] [stdout] test scanner::tests::parse_ir_eq_alternation_with_plus ... ok [INFO] [stdout] test scanner::tests::parse_ir_eq_alternation ... ok [INFO] [stdout] test scanner::tests::parse_ir_eq_alternation_with_concat ... ok [INFO] [stdout] test scanner::tests::parse_ir_eq_concat_and_more ... ok [INFO] [stdout] test scanner::tests::parse_dot ... ok [INFO] [stdout] test scanner::tests::parse_ir_trivial ... ok [INFO] [stdout] test scanner::tests::parse_letter ... ok [INFO] [stdout] test scanner::tests::parse_ir_eq_group ... ok [INFO] [stdout] test scanner::tests::parse_literal ... ok [INFO] [stdout] test scanner::tests::parse_star ... ok [INFO] [stdout] test scanner::tests::test_char_class ... ok [INFO] [stdout] test scanner::tests::parse_ir_bracket ... ok [INFO] [stdout] test scanner::tests::parse_literal_eq ... ok [INFO] [stdout] test scanner::tests::scan_multiple_line_action ... ok [INFO] [stdout] test scanner::tests::lexer_2 ... ok [INFO] [stdout] test scanner::tests::nfa_build_alter ... ok [INFO] [stdout] test scanner::tests::lexer_1 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 41 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rflex-8c5cc0b09dd7da68) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests rflex [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "40ae808a5c05407ef8751fcd13bbc2b42f62a80bf057e9de4c6a172e2d4d1cfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40ae808a5c05407ef8751fcd13bbc2b42f62a80bf057e9de4c6a172e2d4d1cfc", kill_on_drop: false }` [INFO] [stdout] 40ae808a5c05407ef8751fcd13bbc2b42f62a80bf057e9de4c6a172e2d4d1cfc