[INFO] fetching crate nyst 0.1.2... [INFO] testing nyst-0.1.2 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate nyst 0.1.2 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate nyst 0.1.2 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate nyst 0.1.2 [INFO] finished tweaking crates.io crate nyst 0.1.2 [INFO] tweaked toml for crates.io crate nyst 0.1.2 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ron v0.6.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6583ce923747700c9750c256506141f47e366da7efcbc19db6f367bd069f2064 [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" "6583ce923747700c9750c256506141f47e366da7efcbc19db6f367bd069f2064", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6583ce923747700c9750c256506141f47e366da7efcbc19db6f367bd069f2064", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6583ce923747700c9750c256506141f47e366da7efcbc19db6f367bd069f2064", kill_on_drop: false }` [INFO] [stdout] 6583ce923747700c9750c256506141f47e366da7efcbc19db6f367bd069f2064 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99916877eeb464bee595a46a4337c22cb45147202da1312e2e76f5c3743cccb0 [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" "99916877eeb464bee595a46a4337c22cb45147202da1312e2e76f5c3743cccb0", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling ron v0.6.4 [INFO] [stderr] Compiling nyst v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 46.49s [INFO] running `Command { std: "docker" "inspect" "99916877eeb464bee595a46a4337c22cb45147202da1312e2e76f5c3743cccb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99916877eeb464bee595a46a4337c22cb45147202da1312e2e76f5c3743cccb0", kill_on_drop: false }` [INFO] [stdout] 99916877eeb464bee595a46a4337c22cb45147202da1312e2e76f5c3743cccb0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0c8f649c2deb83becee53448f18a3c6e861ab4b070bce9ff7cc942f3d25d8f0d [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" "0c8f649c2deb83becee53448f18a3c6e861ab4b070bce9ff7cc942f3d25d8f0d", kill_on_drop: false }` [INFO] [stderr] Compiling nyst v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.08s [INFO] running `Command { std: "docker" "inspect" "0c8f649c2deb83becee53448f18a3c6e861ab4b070bce9ff7cc942f3d25d8f0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c8f649c2deb83becee53448f18a3c6e861ab4b070bce9ff7cc942f3d25d8f0d", kill_on_drop: false }` [INFO] [stdout] 0c8f649c2deb83becee53448f18a3c6e861ab4b070bce9ff7cc942f3d25d8f0d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 0e807cffe54a560c45a67b13b58a0f674468ab3ee74448b36320c3b774556f31 [INFO] running `Command { std: "docker" "start" "-a" "0e807cffe54a560c45a67b13b58a0f674468ab3ee74448b36320c3b774556f31", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/nyst-4af589e26c1eaa8d) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests nyst [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - Parser::ignore (line 269) ... FAILED [INFO] [stdout] test src/lib.rs - Parser::regex (line 192) ... FAILED [INFO] [stdout] test src/lib.rs - Parser::optional (line 325) ... FAILED [INFO] [stdout] test src/lib.rs - Parser::and (line 216) ... FAILED [INFO] [stdout] test src/lib.rs - Parser::repeat_range (line 294) ... FAILED [INFO] [stdout] test src/lib.rs - Parser::or (line 242) ... FAILED [INFO] [stdout] test src/lib.rs - Parser::map (line 357) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Parser::ignore (line 269) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/lib.rs:271:15 [INFO] [stdout] | [INFO] [stdout] 4 | let letters = Parser::regex(r"[a-zA-Z]+"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nyst::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Parser::regex (line 192) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/lib.rs:195:20 [INFO] [stdout] | [INFO] [stdout] 5 | let regex_parser = Parser::regex(r"[a-zA-Z]"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nyst::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Parser::optional (line 325) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/lib.rs:328:17 [INFO] [stdout] | [INFO] [stdout] 5 | let ab_parser = Parser::regex(r"a"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nyst::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/lib.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 7 | let optional_c_parser = Parser::regex(r"c").optional(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nyst::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Parser::and (line 216) stdout ---- [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:224:7 [INFO] [stdout] | [INFO] [stdout] 10 | Ok(("["abc","123"]"), "") [INFO] [stdout] | ^^^^^^ invalid suffix `abc` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `","` [INFO] [stdout] --> src/lib.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 10 | Ok(("["abc","123"]"), "") [INFO] [stdout] | -^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `123` [INFO] [stdout] --> src/lib.rs:224:16 [INFO] [stdout] | [INFO] [stdout] 10 | Ok(("["abc","123"]"), "") [INFO] [stdout] | -^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `"]"` [INFO] [stdout] --> src/lib.rs:224:19 [INFO] [stdout] | [INFO] [stdout] 10 | Ok(("["abc","123"]"), "") [INFO] [stdout] | -^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/lib.rs:218:22 [INFO] [stdout] | [INFO] [stdout] 4 | let letters_parser = Parser::regex(r"[a-zA-Z]+"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nyst::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/lib.rs:219:22 [INFO] [stdout] | [INFO] [stdout] 5 | let numbers_parser = Parser::regex(r"\d+"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nyst::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:224:3 [INFO] [stdout] | [INFO] [stdout] 10 | Ok(("["abc","123"]"), "") [INFO] [stdout] | ^^ ----------------- -- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Parser::repeat_range (line 294) stdout ---- [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:307:7 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(("["a", "a", "a", "a", "a"]", "")) [INFO] [stdout] | ^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:307:11 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(("["a", "a", "a", "a", "a"]", "")) [INFO] [stdout] | ^^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `", "a` [INFO] [stdout] --> src/lib.rs:307:11 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(("["a", "a", "a", "a", "a"]", "")) [INFO] [stdout] | -^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:307:16 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(("["a", "a", "a", "a", "a"]", "")) [INFO] [stdout] | ^^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `", "a` [INFO] [stdout] --> src/lib.rs:307:16 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(("["a", "a", "a", "a", "a"]", "")) [INFO] [stdout] | -^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:307:21 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(("["a", "a", "a", "a", "a"]", "")) [INFO] [stdout] | ^^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `", "a` [INFO] [stdout] --> src/lib.rs:307:21 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(("["a", "a", "a", "a", "a"]", "")) [INFO] [stdout] | -^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:307:26 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(("["a", "a", "a", "a", "a"]", "")) [INFO] [stdout] | ^^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `", "a` [INFO] [stdout] --> src/lib.rs:307:26 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(("["a", "a", "a", "a", "a"]", "")) [INFO] [stdout] | -^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `"]"` [INFO] [stdout] --> src/lib.rs:307:31 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(("["a", "a", "a", "a", "a"]", "")) [INFO] [stdout] | -^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:311:7 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | ^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:311:11 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | ^^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `", "a` [INFO] [stdout] --> src/lib.rs:311:11 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | -^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:311:16 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | ^^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `", "a` [INFO] [stdout] --> src/lib.rs:311:16 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | -^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:311:21 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | ^^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `", "a` [INFO] [stdout] --> src/lib.rs:311:21 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | -^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:311:26 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | ^^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `", "a` [INFO] [stdout] --> src/lib.rs:311:26 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | -^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:311:31 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | ^^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `", "a` [INFO] [stdout] --> src/lib.rs:311:31 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | -^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `"]"` [INFO] [stdout] --> src/lib.rs:311:36 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(("["a", "a", "a", "a", "a", "a"]", "aa")) [INFO] [stdout] | -^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/lib.rs:298:16 [INFO] [stdout] | [INFO] [stdout] 6 | let a_parser = Parser::regex(r"a"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nyst::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Parser::or (line 242) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/lib.rs:245:22 [INFO] [stdout] | [INFO] [stdout] 5 | let letters_parser = Parser::regex(r"[a-zA-Z]+"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nyst::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/lib.rs:246:22 [INFO] [stdout] | [INFO] [stdout] 6 | let numbers_parser = Parser::regex(r"\d+"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nyst::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:251:3 [INFO] [stdout] | [INFO] [stdout] 11 | Ok(("abc"), "") [INFO] [stdout] | ^^ ------- -- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:255:3 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(("123"), "") [INFO] [stdout] | ^^ ------- -- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Parser::map (line 357) stdout ---- [INFO] [stdout] error: comparison operators cannot be chained [INFO] [stdout] --> src/lib.rs:367:60 [INFO] [stdout] | [INFO] [stdout] 12 | let numbered_letters = letters.iter().enumerate().collect>(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: use `::<...>` instead of `<...>` to specify type or const arguments [INFO] [stdout] | [INFO] [stdout] 12 | let numbered_letters = letters.iter().enumerate().collect::>(); [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:363:51 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(multiple_letter_parser.parse(src), Ok(("["a", "b", "c"]", ""))); [INFO] [stdout] | ^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:363:55 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(multiple_letter_parser.parse(src), Ok(("["a", "b", "c"]", ""))); [INFO] [stdout] | ^^^^^ invalid suffix `b` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `", "b` [INFO] [stdout] --> src/lib.rs:363:55 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(multiple_letter_parser.parse(src), Ok(("["a", "b", "c"]", ""))); [INFO] [stdout] | -^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:363:60 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(multiple_letter_parser.parse(src), Ok(("["a", "b", "c"]", ""))); [INFO] [stdout] | ^^^^^ invalid suffix `c` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `", "c` [INFO] [stdout] --> src/lib.rs:363:60 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(multiple_letter_parser.parse(src), Ok(("["a", "b", "c"]", ""))); [INFO] [stdout] | -^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `"]"` [INFO] [stdout] --> src/lib.rs:363:65 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(multiple_letter_parser.parse(src), Ok(("["a", "b", "c"]", ""))); [INFO] [stdout] | -^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:372:7 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(("[(0, "a"), (1, "b"), (2, "c")]", "")) [INFO] [stdout] | ^^^^^^^^ invalid suffix `a` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:372:15 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(("[(0, "a"), (1, "b"), (2, "c")]", "")) [INFO] [stdout] | ^^^^^^^^^^ invalid suffix `b` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `"), (1, "b` [INFO] [stdout] --> src/lib.rs:372:15 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(("[(0, "a"), (1, "b"), (2, "c")]", "")) [INFO] [stdout] | -^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: suffixes on a string literal are invalid [INFO] [stdout] --> src/lib.rs:372:25 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(("[(0, "a"), (1, "b"), (2, "c")]", "")) [INFO] [stdout] | ^^^^^^^^^^ invalid suffix `c` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `"), (2, "c` [INFO] [stdout] --> src/lib.rs:372:25 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(("[(0, "a"), (1, "b"), (2, "c")]", "")) [INFO] [stdout] | -^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `")]"` [INFO] [stdout] --> src/lib.rs:372:35 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(("[(0, "a"), (1, "b"), (2, "c")]", "")) [INFO] [stdout] | -^^^ [INFO] [stdout] | | [INFO] [stdout] | expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Parser` [INFO] [stdout] --> src/lib.rs:361:30 [INFO] [stdout] | [INFO] [stdout] 6 | let multiple_letter_parser = Parser::regex(r"[a-zA-Z]").repeat_range(0..usize::MAX); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use nyst::Parser; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/lib.rs:365:42 [INFO] [stdout] | [INFO] [stdout] 10 | let mapped = multiple_letter_parser.map(|result| { [INFO] [stdout] | ^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 10 | let mapped = multiple_letter_parser.map(|&result| { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - Parser::and (line 216) [INFO] [stdout] src/lib.rs - Parser::ignore (line 269) [INFO] [stdout] src/lib.rs - Parser::map (line 357) [INFO] [stdout] src/lib.rs - Parser::optional (line 325) [INFO] [stdout] src/lib.rs - Parser::or (line 242) [INFO] [stdout] src/lib.rs - Parser::regex (line 192) [INFO] [stdout] src/lib.rs - Parser::repeat_range (line 294) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.60s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "0e807cffe54a560c45a67b13b58a0f674468ab3ee74448b36320c3b774556f31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e807cffe54a560c45a67b13b58a0f674468ab3ee74448b36320c3b774556f31", kill_on_drop: false }` [INFO] [stdout] 0e807cffe54a560c45a67b13b58a0f674468ab3ee74448b36320c3b774556f31