[INFO] cloning repository https://github.com/perseus06/Rex [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/perseus06/Rex" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fperseus06%2FRex", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fperseus06%2FRex'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 842f8b0c81682775e23f63a2dfb4c854e2360e65 [INFO] building perseus06/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%2Fperseus06%2FRex" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/perseus06/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/perseus06/Rex [INFO] finished tweaking git repo https://github.com/perseus06/Rex [INFO] tweaked toml for git repo https://github.com/perseus06/Rex written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/perseus06/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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] a4fc4ef279b8b1e7829c6e2afb07442132fb8506aef74a2a9c224d8910f451ec [INFO] running `Command { std: "docker" "start" "-a" "a4fc4ef279b8b1e7829c6e2afb07442132fb8506aef74a2a9c224d8910f451ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4fc4ef279b8b1e7829c6e2afb07442132fb8506aef74a2a9c224d8910f451ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4fc4ef279b8b1e7829c6e2afb07442132fb8506aef74a2a9c224d8910f451ec", kill_on_drop: false }` [INFO] [stdout] a4fc4ef279b8b1e7829c6e2afb07442132fb8506aef74a2a9c224d8910f451ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] bf0b00a8402115f7b0e76eef0d009d9aef5cefa34d348e77b087f1336b7c2e2a [INFO] running `Command { std: "docker" "start" "-a" "bf0b00a8402115f7b0e76eef0d009d9aef5cefa34d348e77b087f1336b7c2e2a", 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.14s [INFO] running `Command { std: "docker" "inspect" "bf0b00a8402115f7b0e76eef0d009d9aef5cefa34d348e77b087f1336b7c2e2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf0b00a8402115f7b0e76eef0d009d9aef5cefa34d348e77b087f1336b7c2e2a", kill_on_drop: false }` [INFO] [stdout] bf0b00a8402115f7b0e76eef0d009d9aef5cefa34d348e77b087f1336b7c2e2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] ede4b5461602749e589f219aef554326f5979fecc198d38a6f35ec6387879513 [INFO] running `Command { std: "docker" "start" "-a" "ede4b5461602749e589f219aef554326f5979fecc198d38a6f35ec6387879513", 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] [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.49s [INFO] running `Command { std: "docker" "inspect" "ede4b5461602749e589f219aef554326f5979fecc198d38a6f35ec6387879513", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ede4b5461602749e589f219aef554326f5979fecc198d38a6f35ec6387879513", kill_on_drop: false }` [INFO] [stdout] ede4b5461602749e589f219aef554326f5979fecc198d38a6f35ec6387879513