[INFO] cloning repository https://github.com/Ruberald/regex-engine-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ruberald/regex-engine-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRuberald%2Fregex-engine-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRuberald%2Fregex-engine-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1229d50135a09bdb3cdb67d461a6adcfd5b0932d [INFO] checking Ruberald/regex-engine-rs against try#a3a874232ae0a7586b5fbe7483c5a42e157bd62a for pr-151109 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRuberald%2Fregex-engine-rs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Ruberald/regex-engine-rs [INFO] finished tweaking git repo https://github.com/Ruberald/regex-engine-rs [INFO] tweaked toml for git repo https://github.com/Ruberald/regex-engine-rs written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Ruberald/regex-engine-rs on toolchain a3a874232ae0a7586b5fbe7483c5a42e157bd62a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a3a874232ae0a7586b5fbe7483c5a42e157bd62a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Ruberald/regex-engine-rs 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" "+a3a874232ae0a7586b5fbe7483c5a42e157bd62a" "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-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a3a874232ae0a7586b5fbe7483c5a42e157bd62a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6952514f59b4ae0dcfc7c17369056bda1248baf46785d08c7c2b132104816fba [INFO] running `Command { std: "docker" "start" "-a" "6952514f59b4ae0dcfc7c17369056bda1248baf46785d08c7c2b132104816fba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6952514f59b4ae0dcfc7c17369056bda1248baf46785d08c7c2b132104816fba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6952514f59b4ae0dcfc7c17369056bda1248baf46785d08c7c2b132104816fba", kill_on_drop: false }` [INFO] [stdout] 6952514f59b4ae0dcfc7c17369056bda1248baf46785d08c7c2b132104816fba [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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a3a874232ae0a7586b5fbe7483c5a42e157bd62a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6fcbc53a2b237003f49e1ef98835e5dc75b74095bca6761a12e07a0a95d40b55 [INFO] running `Command { std: "docker" "start" "-a" "6fcbc53a2b237003f49e1ef98835e5dc75b74095bca6761a12e07a0a95d40b55", kill_on_drop: false }` [INFO] [stderr] Checking regex-engine-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ptr::hash` [INFO] [stdout] --> src/nfa_engine/mod.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::HashMap, ptr::hash, rc::Rc, str, usize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/nfa_engine/state.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::VecDeque, ops::Deref, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ptr::hash` [INFO] [stdout] --> src/nfa_engine/mod.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::HashMap, ptr::hash, rc::Rc, str, usize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/nfa_engine/state.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::RefCell, collections::VecDeque, ops::Deref, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:97:27 [INFO] [stdout] | [INFO] [stdout] 97 | HirKind::Look(x) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:98:28 [INFO] [stdout] | [INFO] [stdout] 98 | HirKind::Class(x) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:99:30 [INFO] [stdout] | [INFO] [stdout] 99 | HirKind::Capture(x) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pushfront_transition` is never used [INFO] [stdout] --> src/nfa_engine/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a> EngineNFA<'a> { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn pushfront_transition(&mut self, from_state: &str, to_state: &str, matcher: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `starts_group` and `ends_group` are never read [INFO] [stdout] --> src/nfa_engine/state.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct State<'a> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | starts_group: Vec<&'a str>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | ends_group: Vec<&'a str>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pushfront_transition` is never used [INFO] [stdout] --> src/nfa_engine/state.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> State<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn pushfront_transition(&mut self, to_state: Rc>>, matcher: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_label` is never used [INFO] [stdout] --> src/nfa_engine/state.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait Matcher: DynClone { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 40 | fn get_label(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `source` is never read [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 174 | pub struct NFARegex<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 175 | source: &'static str, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:49:42 [INFO] [stdout] | [INFO] [stdout] 49 | let mut nfa = EngineNFA::new((*(self_.as_ref().as_ptr())).states[0].as_str(), vec![]); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:49:42 [INFO] [stdout] | [INFO] [stdout] 49 | let mut nfa = EngineNFA::new((*(self_.as_ref().as_ptr())).states[0].as_str(), vec![]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 49 | let mut nfa = EngineNFA::new((&(*(self_.as_ref().as_ptr())).states)[0].as_str(), vec![]); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:53:27 [INFO] [stdout] | [INFO] [stdout] 53 | nfa.add_state((*(self_.as_ref().as_ptr())).states[0].as_str()); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:53:27 [INFO] [stdout] | [INFO] [stdout] 53 | nfa.add_state((*(self_.as_ref().as_ptr())).states[0].as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 53 | nfa.add_state((&(*(self_.as_ref().as_ptr())).states)[0].as_str()); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `regex-engine-rs` (bin "regex-engine-rs") due to 11 previous errors; 10 warnings emitted [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | nfa.append_nfa(temp, (*(self_.as_ref().as_ptr())).states[increase].as_str()); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | nfa.append_nfa(temp, (*(self_.as_ref().as_ptr())).states[increase].as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 60 | nfa.append_nfa(temp, (&(*(self_.as_ref().as_ptr())).states)[increase].as_str()); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:66:27 [INFO] [stdout] | [INFO] [stdout] 66 | nfa.add_state((*(self_.as_ref().as_ptr())).states[0].as_str()); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:66:27 [INFO] [stdout] | [INFO] [stdout] 66 | nfa.add_state((*(self_.as_ref().as_ptr())).states[0].as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 66 | nfa.add_state((&(*(self_.as_ref().as_ptr())).states)[0].as_str()); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:68:70 [INFO] [stdout] | [INFO] [stdout] 68 | ending_states.iter().for_each(|x| nfa.add_transition(*x, (*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:68:70 [INFO] [stdout] | [INFO] [stdout] 68 | ending_states.iter().for_each(|x| nfa.add_transition(*x, (*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 68 | ending_states.iter().for_each(|x| nfa.add_transition(*x, (&(*(self_.as_ref().as_ptr())).states)[0].as_str(), [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:123:42 [INFO] [stdout] | [INFO] [stdout] 123 | let mut nfa = EngineNFA::new((*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:123:42 [INFO] [stdout] | [INFO] [stdout] 123 | let mut nfa = EngineNFA::new((*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 123 | let mut nfa = EngineNFA::new((&(*(self_.as_ref().as_ptr())).states)[0].as_str(), [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:124:22 [INFO] [stdout] | [INFO] [stdout] 124 | vec![(*(self_.as_ref().as_ptr())).states[1].as_str()]); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:124:22 [INFO] [stdout] | [INFO] [stdout] 124 | vec![(*(self_.as_ref().as_ptr())).states[1].as_str()]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 124 | vec![(&(*(self_.as_ref().as_ptr())).states)[1].as_str()]); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:126:37 [INFO] [stdout] | [INFO] [stdout] 126 | nfa.declare_states(vec![(*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:126:37 [INFO] [stdout] | [INFO] [stdout] 126 | nfa.declare_states(vec![(*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 126 | nfa.declare_states(vec![(&(*(self_.as_ref().as_ptr())).states)[0].as_str(), [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | (*(self_.as_ref().as_ptr())).states[1].as_str()]); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | (*(self_.as_ref().as_ptr())).states[1].as_str()]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 127 | (&(*(self_.as_ref().as_ptr())).states)[1].as_str()]); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 142 | let new_init = (*(self_.as_ref().as_ptr())).states[0].as_str(); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 142 | let new_init = (*(self_.as_ref().as_ptr())).states[0].as_str(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 142 | let new_init = (&(*(self_.as_ref().as_ptr())).states)[0].as_str(); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:143:27 [INFO] [stdout] | [INFO] [stdout] 143 | let new_end = (*(self_.as_ref().as_ptr())).states[1].as_str(); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:143:27 [INFO] [stdout] | [INFO] [stdout] 143 | let new_end = (*(self_.as_ref().as_ptr())).states[1].as_str(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 143 | let new_end = (&(*(self_.as_ref().as_ptr())).states)[1].as_str(); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:97:27 [INFO] [stdout] | [INFO] [stdout] 97 | HirKind::Look(x) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:98:28 [INFO] [stdout] | [INFO] [stdout] 98 | HirKind::Class(x) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:99:30 [INFO] [stdout] | [INFO] [stdout] 99 | HirKind::Capture(x) => todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pushfront_transition` is never used [INFO] [stdout] --> src/nfa_engine/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl<'a> EngineNFA<'a> { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn pushfront_transition(&mut self, from_state: &str, to_state: &str, matcher: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `starts_group` and `ends_group` are never read [INFO] [stdout] --> src/nfa_engine/state.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct State<'a> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | starts_group: Vec<&'a str>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | ends_group: Vec<&'a str>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pushfront_transition` is never used [INFO] [stdout] --> src/nfa_engine/state.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl<'a> State<'a> { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn pushfront_transition(&mut self, to_state: Rc>>, matcher: Box) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_label` is never used [INFO] [stdout] --> src/nfa_engine/state.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait Matcher: DynClone { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 40 | fn get_label(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `source` is never read [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 174 | pub struct NFARegex<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 175 | source: &'static str, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:49:42 [INFO] [stdout] | [INFO] [stdout] 49 | let mut nfa = EngineNFA::new((*(self_.as_ref().as_ptr())).states[0].as_str(), vec![]); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:49:42 [INFO] [stdout] | [INFO] [stdout] 49 | let mut nfa = EngineNFA::new((*(self_.as_ref().as_ptr())).states[0].as_str(), vec![]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 49 | let mut nfa = EngineNFA::new((&(*(self_.as_ref().as_ptr())).states)[0].as_str(), vec![]); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:53:27 [INFO] [stdout] | [INFO] [stdout] 53 | nfa.add_state((*(self_.as_ref().as_ptr())).states[0].as_str()); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:53:27 [INFO] [stdout] | [INFO] [stdout] 53 | nfa.add_state((*(self_.as_ref().as_ptr())).states[0].as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 53 | nfa.add_state((&(*(self_.as_ref().as_ptr())).states)[0].as_str()); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | nfa.append_nfa(temp, (*(self_.as_ref().as_ptr())).states[increase].as_str()); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | nfa.append_nfa(temp, (*(self_.as_ref().as_ptr())).states[increase].as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 60 | nfa.append_nfa(temp, (&(*(self_.as_ref().as_ptr())).states)[increase].as_str()); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:66:27 [INFO] [stdout] | [INFO] [stdout] 66 | nfa.add_state((*(self_.as_ref().as_ptr())).states[0].as_str()); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:66:27 [INFO] [stdout] | [INFO] [stdout] 66 | nfa.add_state((*(self_.as_ref().as_ptr())).states[0].as_str()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 66 | nfa.add_state((&(*(self_.as_ref().as_ptr())).states)[0].as_str()); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:68:70 [INFO] [stdout] | [INFO] [stdout] 68 | ending_states.iter().for_each(|x| nfa.add_transition(*x, (*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:68:70 [INFO] [stdout] | [INFO] [stdout] 68 | ending_states.iter().for_each(|x| nfa.add_transition(*x, (*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 68 | ending_states.iter().for_each(|x| nfa.add_transition(*x, (&(*(self_.as_ref().as_ptr())).states)[0].as_str(), [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:123:42 [INFO] [stdout] | [INFO] [stdout] 123 | let mut nfa = EngineNFA::new((*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:123:42 [INFO] [stdout] | [INFO] [stdout] 123 | let mut nfa = EngineNFA::new((*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 123 | let mut nfa = EngineNFA::new((&(*(self_.as_ref().as_ptr())).states)[0].as_str(), [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:124:22 [INFO] [stdout] | [INFO] [stdout] 124 | vec![(*(self_.as_ref().as_ptr())).states[1].as_str()]); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:124:22 [INFO] [stdout] | [INFO] [stdout] 124 | vec![(*(self_.as_ref().as_ptr())).states[1].as_str()]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 124 | vec![(&(*(self_.as_ref().as_ptr())).states)[1].as_str()]); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:126:37 [INFO] [stdout] | [INFO] [stdout] 126 | nfa.declare_states(vec![(*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:126:37 [INFO] [stdout] | [INFO] [stdout] 126 | nfa.declare_states(vec![(*(self_.as_ref().as_ptr())).states[0].as_str(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 126 | nfa.declare_states(vec![(&(*(self_.as_ref().as_ptr())).states)[0].as_str(), [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | (*(self_.as_ref().as_ptr())).states[1].as_str()]); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | (*(self_.as_ref().as_ptr())).states[1].as_str()]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 127 | (&(*(self_.as_ref().as_ptr())).states)[1].as_str()]); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 142 | let new_init = (*(self_.as_ref().as_ptr())).states[0].as_str(); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:142:28 [INFO] [stdout] | [INFO] [stdout] 142 | let new_init = (*(self_.as_ref().as_ptr())).states[0].as_str(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 142 | let new_init = (&(*(self_.as_ref().as_ptr())).states)[0].as_str(); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:143:27 [INFO] [stdout] | [INFO] [stdout] 143 | let new_end = (*(self_.as_ref().as_ptr())).states[1].as_str(); [INFO] [stdout] | ^^-------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut NFABuilder` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&VecDeque` [INFO] [stdout] --> src/regex_engine/nfa_regex.rs:143:27 [INFO] [stdout] | [INFO] [stdout] 143 | let new_end = (*(self_.as_ref().as_ptr())).states[1].as_str(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 143 | let new_end = (&(*(self_.as_ref().as_ptr())).states)[1].as_str(); [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `regex-engine-rs` (bin "regex-engine-rs" test) due to 11 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6fcbc53a2b237003f49e1ef98835e5dc75b74095bca6761a12e07a0a95d40b55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fcbc53a2b237003f49e1ef98835e5dc75b74095bca6761a12e07a0a95d40b55", kill_on_drop: false }` [INFO] [stdout] 6fcbc53a2b237003f49e1ef98835e5dc75b74095bca6761a12e07a0a95d40b55