[INFO] fetching crate tree-automata 0.1.2... [INFO] checking tree-automata-0.1.2 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate tree-automata 0.1.2 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate tree-automata 0.1.2 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tree-automata 0.1.2 [INFO] finished tweaking crates.io crate tree-automata 0.1.2 [INFO] tweaked toml for crates.io crate tree-automata 0.1.2 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate crates.io crate tree-automata 0.1.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded terms v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 56c33d532662e43ac31d2c8dd15e950d7a0d29e4c6d606be7bdc0d44652ed61f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "56c33d532662e43ac31d2c8dd15e950d7a0d29e4c6d606be7bdc0d44652ed61f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56c33d532662e43ac31d2c8dd15e950d7a0d29e4c6d606be7bdc0d44652ed61f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56c33d532662e43ac31d2c8dd15e950d7a0d29e4c6d606be7bdc0d44652ed61f", kill_on_drop: false }` [INFO] [stdout] 56c33d532662e43ac31d2c8dd15e950d7a0d29e4c6d606be7bdc0d44652ed61f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 196ca31095e5396123106279d55d27aeff68caf15fd980b220ad95dee3d7406d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "196ca31095e5396123106279d55d27aeff68caf15fd980b220ad95dee3d7406d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking crossbeam-channel v0.4.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking terms v0.1.2 [INFO] [stderr] Checking tree-automata v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `ta::Automaton` [INFO] [stdout] --> tests/search.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ta::Automaton; [INFO] [stdout] | ^^^^--------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `automaton` [INFO] [stdout] | no `Automaton` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Term` [INFO] [stdout] --> tests/search.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use terms::{Term, Pattern}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ta::Automaton` [INFO] [stdout] --> examples/search.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ta::Automaton; [INFO] [stdout] | ^^^^--------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `automaton` [INFO] [stdout] | no `Automaton` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ta::Automaton` [INFO] [stdout] --> tests/construction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ta::Automaton; [INFO] [stdout] | ^^^^--------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `automaton` [INFO] [stdout] | no `Automaton` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:10:30 [INFO] [stdout] | [INFO] [stdout] 10 | a.add(Pattern::cons('a', &[]), (), "ab"); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/search.rs:11:34 [INFO] [stdout] | [INFO] [stdout] 11 | let conf = Pattern::cons((), &[]); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tree-automata` [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | a.add(Pattern::cons('b', &[]), (), "ab"); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | a.add(Pattern::cons('b', &[]), (), "bc"); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | a.add(Pattern::cons('c', &[]), (), "bc"); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/construction.rs:10:34 [INFO] [stdout] | [INFO] [stdout] 10 | let conf = Pattern::cons((), &[]); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:15:54 [INFO] [stdout] | [INFO] [stdout] 15 | assert!(a.configurations_for(&Pattern::cons('a', &[])).next().is_some()); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/construction.rs:22:28 [INFO] [stdout] | [INFO] [stdout] 22 | Pattern::cons("f", &[]), [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:16:54 [INFO] [stdout] | [INFO] [stdout] 16 | assert!(a.configurations_for(&Pattern::cons('a', &[])).next().is_some()); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/construction.rs:23:28 [INFO] [stdout] | [INFO] [stdout] 23 | Pattern::cons("g", &[]), [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:17:54 [INFO] [stdout] | [INFO] [stdout] 17 | assert!(a.configurations_for(&Pattern::cons('a', &[])).next().is_some()); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/construction.rs:24:28 [INFO] [stdout] | [INFO] [stdout] 24 | Pattern::cons("h", &[]), [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:18:54 [INFO] [stdout] | [INFO] [stdout] 18 | assert!(a.configurations_for(&Pattern::cons('a', &[])).next().is_some()); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/construction.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 25 | Pattern::cons("i", &[]) [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | a.add(Pattern::cons('i', &["ab".into()]), (), "i(ab)"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["ab".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:21:30 [INFO] [stdout] | [INFO] [stdout] 21 | a.add(Pattern::cons('j', &["ab".into()]), (), "j(ab)"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["ab".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | a.add(Pattern::cons('k', &["ab".into()]), (), "k(ab)"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["ab".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | a.add(Pattern::cons('l', &["ab".into()]), (), "l(ab)"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["ab".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | a.add(Pattern::cons('l', &["bc".into()]), (), "l(bc)"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["bc".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | a.add(Pattern::cons('m', &["bc".into()]), (), "m(bc)"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["bc".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 26 | a.add(Pattern::cons('n', &["bc".into()]), (), "n(bc)"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["bc".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:27:30 [INFO] [stdout] | [INFO] [stdout] 27 | a.add(Pattern::cons('o', &["bc".into()]), (), "o(bc)"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["bc".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | a.add(Pattern::cons('f', &["i(ab)".into()]), (), "f(ij)|g(kl)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["i(ab)".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | a.add(Pattern::cons('f', &["j(ab)".into()]), (), "f(ij)|g(kl)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["j(ab)".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | a.add(Pattern::cons('g', &["k(ab)".into()]), (), "f(ij)|g(kl)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["k(ab)".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | a.add(Pattern::cons('g', &["l(ab)".into()]), (), "f(ij)|g(kl)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["l(ab)".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:33:30 [INFO] [stdout] | [INFO] [stdout] 33 | a.add(Pattern::cons('g', &["l(bc)".into()]), (), "g(lm)|h(no)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["l(bc)".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:34:30 [INFO] [stdout] | [INFO] [stdout] 34 | a.add(Pattern::cons('g', &["m(bc)".into()]), (), "g(lm)|h(no)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["m(bc)".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 35 | a.add(Pattern::cons('h', &["n(bc)".into()]), (), "g(lm)|h(no)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["n(bc)".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 36 | a.add(Pattern::cons('h', &["o(bc)".into()]), (), "g(lm)|h(no)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 1]` [INFO] [stdout] | help: try using a conversion method: `(&["o(bc)".into()]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:44:65 [INFO] [stdout] | [INFO] [stdout] 44 | let term = Term::new('g', &[Term::new('l', &[Term::new('b', &[])])]); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[_; 0]` [INFO] [stdout] | help: try using a conversion method: `(&[]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[_; 0]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:44:48 [INFO] [stdout] | [INFO] [stdout] 44 | let term = Term::new('g', &[Term::new('l', &[Term::new('b', &[])])]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[Term; 1]` [INFO] [stdout] | help: try using a conversion method: `(&[Term::new('b', &[])]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[Term; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/search.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 44 | let term = Term::new('g', &[Term::new('l', &[Term::new('b', &[])])]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found `&[Term; 1]` [INFO] [stdout] | help: try using a conversion method: `(&[Term::new('l', &[Term::new('b', &[])])]).to_vec()` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>` [INFO] [stdout] found reference `&[Term; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 28 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "196ca31095e5396123106279d55d27aeff68caf15fd980b220ad95dee3d7406d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "196ca31095e5396123106279d55d27aeff68caf15fd980b220ad95dee3d7406d", kill_on_drop: false }` [INFO] [stdout] 196ca31095e5396123106279d55d27aeff68caf15fd980b220ad95dee3d7406d