[INFO] fetching crate faster-pest 0.2.0-alpha.1... [INFO] checking faster-pest-0.2.0-alpha.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate faster-pest 0.2.0-alpha.1 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate faster-pest 0.2.0-alpha.1 [INFO] finished tweaking crates.io crate faster-pest 0.2.0-alpha.1 [INFO] tweaked toml for crates.io crate faster-pest 0.2.0-alpha.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate faster-pest 0.2.0-alpha.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate faster-pest 0.2.0-alpha.1 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 89591bdc40732a863f36a6579901453d622ebfcf2b0977800fff7a9725212107 [INFO] running `Command { std: "docker" "start" "-a" "89591bdc40732a863f36a6579901453d622ebfcf2b0977800fff7a9725212107", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "89591bdc40732a863f36a6579901453d622ebfcf2b0977800fff7a9725212107", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89591bdc40732a863f36a6579901453d622ebfcf2b0977800fff7a9725212107", kill_on_drop: false }` [INFO] [stdout] 89591bdc40732a863f36a6579901453d622ebfcf2b0977800fff7a9725212107 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c1de9e04f489822cf2b88e6edd7695c62023180907b5bee5a106048872e7c3f [INFO] running `Command { std: "docker" "start" "-a" "4c1de9e04f489822cf2b88e6edd7695c62023180907b5bee5a106048872e7c3f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling pest v2.7.10 [INFO] [stderr] Compiling pest_meta v2.7.10 [INFO] [stderr] Compiling faster-pest-generator v0.2.0-alpha.1 [INFO] [stderr] Compiling pest_generator v2.7.10 [INFO] [stderr] Compiling faster-pest-derive v0.2.0-alpha.1 [INFO] [stderr] Compiling pest_derive v2.7.10 [INFO] [stderr] Checking faster-pest v0.2.0-alpha.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ident.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn root(&self) -> IdentRef { [INFO] [stdout] | ^^^^^ ----------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 39 | pub fn root(&self) -> IdentRef<'_, I> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> benches/csv.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Parser)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: error opening "grammar.pest": No such file or directory (os error 2) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> benches/csv.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | #[derive(Parser)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Could not read grammar file at "faster-pest/examples/csv/grammar.pest" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/csv/main.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Parser)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Could not read grammar file at "faster-pest/examples/csv/grammar.pest" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/json/main.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Parser)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Could not read grammar file at "faster-pest/examples/json/grammar.pest" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/po/main.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Parser)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Could not read grammar file at "faster-pest/examples/po/grammar.pest" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse` found for struct `CSVParser` in the current scope [INFO] [stdout] --> examples/csv/main.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 5 | struct CSVParser { [INFO] [stdout] | ---------------- function or associated item `parse` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 18 | let file = CSVParser::parse(Rule::file, &unparsed_file) [INFO] [stdout] | ^^^^^ function or associated item not found in `CSVParser` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `parse`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `pest::parser::Parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/csv/main.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | let file = CSVParser::parse(Rule::file, &unparsed_file) [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse` found for struct `pest_classic::CSVParser` in the current scope [INFO] [stdout] --> benches/csv.rs:29:35 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct CSVParser { [INFO] [stdout] | -------------------- function or associated item `parse` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 29 | let file = CSVParser::parse(Rule::file, &unparsed_file) [INFO] [stdout] | ^^^^^ function or associated item not found in `pest_classic::CSVParser` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `parse`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `pest::Parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/csv.rs:29:41 [INFO] [stdout] | [INFO] [stdout] 29 | let file = CSVParser::parse(Rule::file, &unparsed_file) [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/csv/main.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | Rule::record => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/lightgrep/main.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Parser)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Could not read grammar file at "faster-pest/examples/lightgrep/grammar.pest" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> examples/po/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse_file` found for struct `faster_pest::CSVParser` in the current scope [INFO] [stdout] --> benches/csv.rs:78:35 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct CSVParser { [INFO] [stdout] | -------------------- function or associated item `parse_file` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 78 | let file = CSVParser::parse_file(&unparsed_file).expect("unsuccessful parse"); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `faster_pest::CSVParser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/csv.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | Rule::record => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/csv.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | Rule::record => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse_file` found for struct `POParser` in the current scope [INFO] [stdout] --> examples/po/main.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct POParser; [INFO] [stdout] | ------------------- function or associated item `parse_file` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 17 | let output = POParser::parse_file(&unparsed_file).map_err(|e| e.print(unparsed_file.as_str())).expect("unsuccessful parse"); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `POParser` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `faster-pest` (bench "csv") due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/po/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | Rule::entry => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> examples/ini/main.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Parser)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Could not read grammar file at "faster-pest/examples/ini/grammar.pest" [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `faster-pest` (example "csv") due to 4 previous errors [INFO] [stderr] error: could not compile `faster-pest` (example "po") due to 3 previous errors; 1 warning emitted [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Parser)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Could not read grammar file at "faster-pest/examples/lightgrep/grammar.pest" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse` found for struct `INIParser` in the current scope [INFO] [stdout] --> examples/ini/main.rs:17:27 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct INIParser; [INFO] [stdout] | -------------------- function or associated item `parse` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 17 | let file = INIParser::parse(Rule::file, &unparsed_file) [INFO] [stdout] | ^^^^^ function or associated item not found in `INIParser` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `parse`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `pest::parser::Parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/ini/main.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | let file = INIParser::parse(Rule::file, &unparsed_file) [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/ini/main.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | Rule::property => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/ini/main.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | Rule::section => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `faster-pest` (example "ini") due to 5 previous errors [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> benches/json.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | #[derive(Parser)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: error opening "grammar.pest": No such file or directory (os error 2) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> benches/json.rs:140:14 [INFO] [stdout] | [INFO] [stdout] 140 | #[derive(Parser)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: message: Could not read grammar file at "faster-pest/examples/json/grammar.pest" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> examples/lightgrep/main.rs:29:43 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn from_ident_ref(value: IdentRef) -> Self { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | impl ExpressionRationnelle { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> examples/json/main.rs:19:43 [INFO] [stdout] | [INFO] [stdout] 19 | fn from_ident_ref(value: IdentRef<'i, Ident>) -> Self { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 18 | impl<'i, Ident> Value<'i> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> examples/json/main.rs:46:33 [INFO] [stdout] | [INFO] [stdout] 46 | fn unescape<'i>(s: IdentRef<'i, Ident>) -> Cow<'i, str> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 46 | fn unescape<'i, Ident>(s: IdentRef<'i, Ident>) -> Cow<'i, str> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> benches/json.rs:81:47 [INFO] [stdout] | [INFO] [stdout] 81 | fn from_ident_ref(value: IdentRef<'i, Ident>) -> Self { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 80 | impl<'i, Ident> Value<'i> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> benches/json.rs:108:37 [INFO] [stdout] | [INFO] [stdout] 108 | fn unescape<'i>(s: IdentRef<'i, Ident>) -> Cow<'i, str> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 108 | fn unescape<'i, Ident>(s: IdentRef<'i, Ident>) -> Cow<'i, str> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse` found for struct `pest_classic_json::JsonParser` in the current scope [INFO] [stdout] --> benches/json.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct JsonParser { [INFO] [stdout] | --------------------- function or associated item `parse` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 69 | JsonParser::parse(Rule::file, &unparsed_file) [INFO] [stdout] | ^^^^^ function or associated item not found in `pest_classic_json::JsonParser` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `parse`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `pest::Parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/json.rs:69:31 [INFO] [stdout] | [INFO] [stdout] 69 | JsonParser::parse(Rule::file, &unparsed_file) [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/ident.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn root(&self) -> IdentRef { [INFO] [stdout] | ^^^^^ ----------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 39 | pub fn root(&self) -> IdentRef<'_, I> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/lightgrep/main.rs:71:67 [INFO] [stdout] | [INFO] [stdout] 71 | debug_assert!(element_ens_lettre.as_rule() == Rule::element_ens_lettre); [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse_file` found for struct `faster_pest_json::JsonParser` in the current scope [INFO] [stdout] --> benches/json.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct JsonParser { [INFO] [stdout] | --------------------- function or associated item `parse_file` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 157 | JsonParser::parse_file(&unparsed_file).expect("unsuccessful parse"); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `faster_pest_json::JsonParser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse_file` found for struct `faster_pest_json::JsonParser` in the current scope [INFO] [stdout] --> benches/json.rs:172:38 [INFO] [stdout] | [INFO] [stdout] 142 | pub struct JsonParser { [INFO] [stdout] | --------------------- function or associated item `parse_file` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 172 | let output = JsonParser::parse_file(&unparsed_file).map_err(|e| e.print(unparsed_file.as_str())).expect("unsuccessful parse"); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `faster_pest_json::JsonParser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse_file` found for struct `LightgrepParser` in the current scope [INFO] [stdout] --> examples/lightgrep/main.rs:104:35 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct LightgrepParser; [INFO] [stdout] | -------------------------- function or associated item `parse_file` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 104 | let output = LightgrepParser::parse_file(&unparsed_file).map_err(|e| e.print(unparsed_file.as_str())).expect("unsuccessful parse"); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `LightgrepParser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/json.rs:103:47 [INFO] [stdout] | [INFO] [stdout] 103 | Rule::property | Rule::file | Rule::escaped_char => unreachable!(), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/json.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | Rule::string => Value::String(unescape(value)), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/json.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | Rule::number => Value::Number(value.as_str().parse().expect("number")), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/json.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 85 | Rule::boolean => Value::Boolean(value.as_str() == "true"), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ident` in this scope [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:29:43 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn from_ident_ref(value: IdentRef) -> Self { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 28 | impl ExpressionRationnelle { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/json.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | Rule::array => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/json.rs:91:17 [INFO] [stdout] | [INFO] [stdout] 91 | Rule::object => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/json.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | Rule::null => Value::Null, [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/json.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | Rule::property | Rule::file | Rule::escaped_char => unreachable!(), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/json.rs:103:34 [INFO] [stdout] | [INFO] [stdout] 103 | Rule::property | Rule::file | Rule::escaped_char => unreachable!(), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/lightgrep/main.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | Rule::er => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse_file` found for struct `JsonParser` in the current scope [INFO] [stdout] --> examples/json/main.rs:87:30 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct JsonParser; [INFO] [stdout] | --------------------- function or associated item `parse_file` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 87 | let output = JsonParser::parse_file(&unparsed_file).map_err(|e| e.print(unparsed_file.as_str())).expect("unsuccessful parse"); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `JsonParser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/lightgrep/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | Rule::erc => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/lightgrep/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | Rule::erb => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/lightgrep/main.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | Rule::er => ExpressionRationnelle::from_ident_ref(ere), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/lightgrep/main.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | ... Rule::caractere | Rule::caractere_echape => ExpressionRationnelle::Lettre(ere.as_str().chars().next().expect("caractere")), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/lightgrep/main.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | ... Rule::caractere | Rule::caractere_echape => ExpressionRationnelle::Lettre(ere.as_str().chars().next().expect("caractere")), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/lightgrep/main.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | Rule::joker => ExpressionRationnelle::Joker, [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/lightgrep/main.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | Rule::ens_lettre => ExpressionRationnelle::from_ident_ref(ere), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/lightgrep/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | Rule::ens_lettre => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/json/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | Rule::string => Value::String(unescape(value)), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `faster-pest` (bench "json") due to 17 previous errors [INFO] [stderr] error: could not compile `faster-pest` (example "lightgrep") due to 13 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/json/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | Rule::number => Value::Number(value.as_str().parse().expect("number")), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/json/main.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | Rule::boolean => Value::Boolean(value.as_str() == "true"), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/json/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | Rule::array => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/json/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | Rule::object => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/json/main.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | Rule::null => Value::Null, [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/json/main.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | Rule::property | Rule::file | Rule::escaped_char => unreachable!(), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/json/main.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | Rule::property | Rule::file | Rule::escaped_char => unreachable!(), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> examples/json/main.rs:41:43 [INFO] [stdout] | [INFO] [stdout] 41 | Rule::property | Rule::file | Rule::escaped_char => unreachable!(), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `faster-pest` (example "json") due to 13 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:71:67 [INFO] [stdout] | [INFO] [stdout] 71 | debug_assert!(element_ens_lettre.as_rule() == Rule::element_ens_lettre); [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse_file` found for struct `lightgrep::LightgrepParser` in the current scope [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:104:35 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct LightgrepParser; [INFO] [stdout] | -------------------------- function or associated item `parse_file` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 104 | let output = LightgrepParser::parse_file(&unparsed_file).map_err(|e| e.print(unparsed_file.as_str())).expect("unsuccessful parse"); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `lightgrep::LightgrepParser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse_file` found for struct `lightgrep::LightgrepParser` in the current scope [INFO] [stdout] --> benches/lightgrep.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | LightgrepParser::parse_file(&unparsed_file).expect("unsuccessful parse"); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `lightgrep::LightgrepParser` [INFO] [stdout] | [INFO] [stdout] ::: benches/../examples/lightgrep/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct LightgrepParser; [INFO] [stdout] | -------------------------- function or associated item `parse_file` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse_file` found for struct `lightgrep::LightgrepParser` in the current scope [INFO] [stdout] --> benches/lightgrep.rs:40:39 [INFO] [stdout] | [INFO] [stdout] 40 | let output = LightgrepParser::parse_file(&unparsed_file).map_err(|e| e.print(unparsed_file.as_str())).expect("unsuccessful parse"); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `lightgrep::LightgrepParser` [INFO] [stdout] | [INFO] [stdout] ::: benches/../examples/lightgrep/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct LightgrepParser; [INFO] [stdout] | -------------------------- function or associated item `parse_file` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `faster_pest` [INFO] [stdout] --> benches/lightgrep.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use faster_pest::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | Rule::er => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | Rule::erc => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | Rule::erb => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | Rule::er => ExpressionRationnelle::from_ident_ref(ere), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | ... Rule::caractere | Rule::caractere_echape => ExpressionRationnelle::Lettre(ere.as_str().chars().next().expect("caractere")), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | ... Rule::caractere | Rule::caractere_echape => ExpressionRationnelle::Lettre(ere.as_str().chars().next().expect("caractere")), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `faster-pest` (bench "lightgrep") due to 15 previous errors; 1 warning emitted [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | Rule::joker => ExpressionRationnelle::Joker, [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | Rule::ens_lettre => ExpressionRationnelle::from_ident_ref(ere), [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rule` [INFO] [stdout] --> benches/../examples/lightgrep/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | Rule::ens_lettre => { [INFO] [stdout] | ^^^^ use of undeclared type `Rule` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4c1de9e04f489822cf2b88e6edd7695c62023180907b5bee5a106048872e7c3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c1de9e04f489822cf2b88e6edd7695c62023180907b5bee5a106048872e7c3f", kill_on_drop: false }` [INFO] [stdout] 4c1de9e04f489822cf2b88e6edd7695c62023180907b5bee5a106048872e7c3f