[INFO] cloning repository https://github.com/erikgrinaker/rex [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/erikgrinaker/rex" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferikgrinaker%2Frex", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferikgrinaker%2Frex'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 638525f5b9cba6cb98d412ac3473e98eed3f7e27 [INFO] building erikgrinaker/rex against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferikgrinaker%2Frex" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/erikgrinaker/rex on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/erikgrinaker/rex [INFO] finished tweaking git repo https://github.com/erikgrinaker/rex [INFO] tweaked toml for git repo https://github.com/erikgrinaker/rex written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/erikgrinaker/rex 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 87a443d48dfda4e41feba82c4b7191cc8e5b9581041e9c1fc7d86b2b4af2dee6 [INFO] running `Command { std: "docker" "start" "-a" "87a443d48dfda4e41feba82c4b7191cc8e5b9581041e9c1fc7d86b2b4af2dee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "87a443d48dfda4e41feba82c4b7191cc8e5b9581041e9c1fc7d86b2b4af2dee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87a443d48dfda4e41feba82c4b7191cc8e5b9581041e9c1fc7d86b2b4af2dee6", kill_on_drop: false }` [INFO] [stdout] 87a443d48dfda4e41feba82c4b7191cc8e5b9581041e9c1fc7d86b2b4af2dee6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0bf0d24fa46d5f56965496ae6de3a59908a1d216ebb2e2dbc96cfb94fec87067 [INFO] running `Command { std: "docker" "start" "-a" "0bf0d24fa46d5f56965496ae6de3a59908a1d216ebb2e2dbc96cfb94fec87067", kill_on_drop: false }` [INFO] [stderr] Compiling rex v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Transition` [INFO] [stdout] --> src/compiler.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::pattern::{Condition, Pattern, State, Transition}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `todo` [INFO] [stdout] --> src/pattern.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | todo, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/compiler.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn compile(&self, expr: ast::Expression) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut states = vec![State::Accept]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/compiler.rs:22:39 [INFO] [stdout] | [INFO] [stdout] 22 | ast::Expression::Sequence(seq) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | Alternation(Vec), // (|) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 | Alternation(()), // (|) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | Anchor(Anchor), // ^ or $ [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 | Anchor(()), // ^ or $ [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | Literal(char), // x [INFO] [stdout] | ------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | Literal(()), // x [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/ast.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | Quantifier(u8, Option), // ? * + {} [INFO] [stdout] | ---------- ^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 8 | Quantifier((), ()), // ? * + {} [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | Sequence(Vec), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | Sequence(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Class` is never constructed [INFO] [stdout] --> src/ast.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Expression { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 6 | Class(Class), // [] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alnum`, `Alpha`, `Digit`, `Lower`, `Space`, and `Upper` are never constructed [INFO] [stdout] --> src/ast.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Class { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 20 | Alnum, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | Alpha, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | Digit, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 23 | Lower, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | Space, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | Upper, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `compile_states` and `compile_condition` are never used [INFO] [stdout] --> src/compiler.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Compiler { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | fn compile_states(&self, expr: ast::Expression) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn compile_condition(&self, expr: ast::Expression) -> Condition { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `compile` is never used [INFO] [stdout] --> src/pattern.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Pattern { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 18 | pub fn compile(expr: ast::Expression) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Match` is never constructed [INFO] [stdout] --> src/pattern.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum State { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 45 | Accept, [INFO] [stdout] 46 | Match(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Always`, `Start`, `End`, and `Literal` are never constructed [INFO] [stdout] --> src/pattern.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Condition { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 55 | Always, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 56 | Start, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] 58 | Literal(char), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "0bf0d24fa46d5f56965496ae6de3a59908a1d216ebb2e2dbc96cfb94fec87067", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bf0d24fa46d5f56965496ae6de3a59908a1d216ebb2e2dbc96cfb94fec87067", kill_on_drop: false }` [INFO] [stdout] 0bf0d24fa46d5f56965496ae6de3a59908a1d216ebb2e2dbc96cfb94fec87067 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ecb2482b01d7101edf58365d944d6c1c27a1a906dd52a0a96d789f20f2e60b48 [INFO] running `Command { std: "docker" "start" "-a" "ecb2482b01d7101edf58365d944d6c1c27a1a906dd52a0a96d789f20f2e60b48", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `Transition` [INFO] [stdout] --> src/compiler.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::pattern::{Condition, Pattern, State, Transition}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `todo` [INFO] [stdout] --> src/pattern.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | todo, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/compiler.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn compile(&self, expr: ast::Expression) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut states = vec![State::Accept]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/compiler.rs:22:39 [INFO] [stdout] | [INFO] [stdout] 22 | ast::Expression::Sequence(seq) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | Alternation(Vec), // (|) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 | Alternation(()), // (|) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | Anchor(Anchor), // ^ or $ [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 | Anchor(()), // ^ or $ [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | Literal(char), // x [INFO] [stdout] | ------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | Literal(()), // x [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/ast.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | Quantifier(u8, Option), // ? * + {} [INFO] [stdout] | ---------- ^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 8 | Quantifier((), ()), // ? * + {} [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | Sequence(Vec), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | Sequence(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Class` is never constructed [INFO] [stdout] --> src/ast.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Expression { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 6 | Class(Class), // [] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alnum`, `Alpha`, `Digit`, `Lower`, `Space`, and `Upper` are never constructed [INFO] [stdout] --> src/ast.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Class { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 20 | Alnum, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | Alpha, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | Digit, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 23 | Lower, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | Space, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | Upper, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `compile_states` and `compile_condition` are never used [INFO] [stdout] --> src/compiler.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Compiler { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | fn compile_states(&self, expr: ast::Expression) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn compile_condition(&self, expr: ast::Expression) -> Condition { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `compile` is never used [INFO] [stdout] --> src/pattern.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Pattern { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 18 | pub fn compile(expr: ast::Expression) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Match` is never constructed [INFO] [stdout] --> src/pattern.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum State { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 45 | Accept, [INFO] [stdout] 46 | Match(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Always`, `Start`, `End`, and `Literal` are never constructed [INFO] [stdout] --> src/pattern.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Condition { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 55 | Always, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 56 | Start, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] 58 | Literal(char), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rex v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Transition` [INFO] [stdout] --> src/compiler.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::pattern::{Condition, Pattern, State, Transition}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `todo` [INFO] [stdout] --> src/pattern.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | todo, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/compiler.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn compile(&self, expr: ast::Expression) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/compiler.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut states = vec![State::Accept]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seq` [INFO] [stdout] --> src/compiler.rs:22:39 [INFO] [stdout] | [INFO] [stdout] 22 | ast::Expression::Sequence(seq) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | Alternation(Vec), // (|) [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 3 | Alternation(()), // (|) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | Anchor(Anchor), // ^ or $ [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 | Anchor(()), // ^ or $ [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | Literal(char), // x [INFO] [stdout] | ------- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | Literal(()), // x [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/ast.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | Quantifier(u8, Option), // ? * + {} [INFO] [stdout] | ---------- ^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 8 | Quantifier((), ()), // ? * + {} [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | Sequence(Vec), [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 9 | Sequence(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Class` is never constructed [INFO] [stdout] --> src/ast.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Expression { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 6 | Class(Class), // [] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alnum`, `Alpha`, `Digit`, `Lower`, `Space`, and `Upper` are never constructed [INFO] [stdout] --> src/ast.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Class { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 20 | Alnum, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | Alpha, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | Digit, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 23 | Lower, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 24 | Space, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | Upper, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `compile_states` and `compile_condition` are never used [INFO] [stdout] --> src/compiler.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Compiler { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | fn compile_states(&self, expr: ast::Expression) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn compile_condition(&self, expr: ast::Expression) -> Condition { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `compile` is never used [INFO] [stdout] --> src/pattern.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Pattern { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 18 | pub fn compile(expr: ast::Expression) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Match` is never constructed [INFO] [stdout] --> src/pattern.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum State { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 45 | Accept, [INFO] [stdout] 46 | Match(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Always`, `Start`, `End`, and `Literal` are never constructed [INFO] [stdout] --> src/pattern.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub enum Condition { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 55 | Always, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 56 | Start, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] 58 | Literal(char), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] running `Command { std: "docker" "inspect" "ecb2482b01d7101edf58365d944d6c1c27a1a906dd52a0a96d789f20f2e60b48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecb2482b01d7101edf58365d944d6c1c27a1a906dd52a0a96d789f20f2e60b48", kill_on_drop: false }` [INFO] [stdout] ecb2482b01d7101edf58365d944d6c1c27a1a906dd52a0a96d789f20f2e60b48