[INFO] cloning repository https://github.com/drwilco/nom-cheatsheet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/drwilco/nom-cheatsheet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdrwilco%2Fnom-cheatsheet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdrwilco%2Fnom-cheatsheet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 55494a7418682d4f3a10a593533e24afa87591e9 [INFO] checking drwilco/nom-cheatsheet/55494a7418682d4f3a10a593533e24afa87591e9 against master#f5711a55f5d5e2f942057d0f6d648dd2d8b2c37b for pr-148329 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdrwilco%2Fnom-cheatsheet" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/drwilco/nom-cheatsheet [INFO] finished tweaking git repo https://github.com/drwilco/nom-cheatsheet [INFO] tweaked toml for git repo https://github.com/drwilco/nom-cheatsheet written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/drwilco/nom-cheatsheet on toolchain f5711a55f5d5e2f942057d0f6d648dd2d8b2c37b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5711a55f5d5e2f942057d0f6d648dd2d8b2c37b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5711a55f5d5e2f942057d0f6d648dd2d8b2c37b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 109 packages to latest compatible versions [INFO] [stderr] Adding comrak v0.15.0 (available: v0.47.0) [INFO] [stderr] Adding itertools v0.10.5 (available: v0.14.0) [INFO] [stderr] Adding nom v7.1.3 (available: v8.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5711a55f5d5e2f942057d0f6d648dd2d8b2c37b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fancy-regex v0.16.2 [INFO] [stderr] Downloaded comrak v0.15.0 [INFO] [stderr] Downloaded syntect v5.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+f5711a55f5d5e2f942057d0f6d648dd2d8b2c37b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f4ba7a808d16a37d950186a3c016f1c7134e611d173f0b782cd94c3c7b5f747 [INFO] running `Command { std: "docker" "start" "-a" "5f4ba7a808d16a37d950186a3c016f1c7134e611d173f0b782cd94c3c7b5f747", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f4ba7a808d16a37d950186a3c016f1c7134e611d173f0b782cd94c3c7b5f747", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f4ba7a808d16a37d950186a3c016f1c7134e611d173f0b782cd94c3c7b5f747", kill_on_drop: false }` [INFO] [stdout] 5f4ba7a808d16a37d950186a3c016f1c7134e611d173f0b782cd94c3c7b5f747 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+f5711a55f5d5e2f942057d0f6d648dd2d8b2c37b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f692998356056cf6930815cd7b4de4d7e3f9f3d06ba775aa8ba64112459e042 [INFO] running `Command { std: "docker" "start" "-a" "8f692998356056cf6930815cd7b4de4d7e3f9f3d06ba775aa8ba64112459e042", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.109 [INFO] [stderr] Compiling find-msvc-tools v0.1.4 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking regex-syntax v0.8.8 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking deranged v0.5.5 [INFO] [stderr] Checking is_terminal_polyfill v1.70.2 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking anstyle v1.0.13 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Compiling pest_meta v2.8.3 [INFO] [stderr] Checking quick-xml v0.38.3 [INFO] [stderr] Checking clap_lex v0.7.6 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling cc v1.2.44 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking flate2 v1.1.5 [INFO] [stderr] Checking pest v2.8.3 [INFO] [stderr] Checking xdg v2.5.2 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking entities v1.0.1 [INFO] [stderr] Checking terminal_size v0.4.3 [INFO] [stderr] Checking clap_builder v4.5.51 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling onig_sys v69.9.1 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Compiling nom-cheatsheet v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `sep` in this scope [INFO] [stdout] --> build.rs:48:26 [INFO] [stdout] | [INFO] [stdout] 48 | let (input, _) = tag(sep)(input)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `sep` in this scope [INFO] [stdout] --> build.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | let (input, _) = tag(sep)(input)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `sep` in this scope [INFO] [stdout] --> build.rs:56:26 [INFO] [stdout] | [INFO] [stdout] 56 | let (input, _) = tag(sep)(input)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `sep` in this scope [INFO] [stdout] --> build.rs:57:26 [INFO] [stdout] | [INFO] [stdout] 57 | let (input, _) = tag(sep)(input)?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> build.rs:47:39 [INFO] [stdout] | [INFO] [stdout] 47 | let (input, urls): (&str, &str) = take_until()(input)?; [INFO] [stdout] | ^^^^^^^^^^-- argument #1 is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/nom-7.1.3/src/bytes/complete.rs:435:8 [INFO] [stdout] | [INFO] [stdout] 435 | pub fn take_until>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 47 | let (input, urls): (&str, &str) = take_until(/* tag */)(input)?; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> build.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | usage, [INFO] [stdout] | ^^^^^ expected `Option<&str>`, found `&str` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&str>` [INFO] [stdout] found reference `&str` [INFO] [stdout] help: try wrapping the expression in `Some` [INFO] [stdout] | [INFO] [stdout] 97 | usage: Some(usage), [INFO] [stdout] | ++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `starts_with` found for enum `Option` in the current scope [INFO] [stdout] --> build.rs:174:58 [INFO] [stdout] | [INFO] [stdout] 174 | let assignment: String = if combinator.usage.starts_with("let output") { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | [INFO] [stdout] note: the method `starts_with` exists on the type `&str` [INFO] [stdout] --> /rustc/f5711a55f5d5e2f942057d0f6d648dd2d8b2c37b/library/core/src/str/mod.rs:1378:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 174 | let assignment: String = if combinator.usage.expect("REASON").starts_with("let output") { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Option<&str>` doesn't implement `std::fmt::Display` [INFO] [stdout] --> build.rs:175:38 [INFO] [stdout] | [INFO] [stdout] 175 | format!("{}({});\n", combinator.usage, input) [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^ `Option<&str>` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Option<&str>` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Option<&str>` doesn't implement `std::fmt::Display` [INFO] [stdout] --> build.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 178 | "let output: IResult<_, _> = {}({});\n", [INFO] [stdout] | -- required by this formatting parameter [INFO] [stdout] 179 | combinator.usage, input [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `Option<&str>` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Option<&str>` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Option<&str>` doesn't implement `std::fmt::Display` [INFO] [stdout] --> build.rs:186:49 [INFO] [stdout] | [INFO] [stdout] 186 | println!("cargo:warning=usage: {}", combinator.usage); [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^ `Option<&str>` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Option<&str>` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_empty` found for enum `Option` in the current scope [INFO] [stdout] --> build.rs:187:45 [INFO] [stdout] | [INFO] [stdout] 187 | let usage = if combinator.usage.is_empty() { [INFO] [stdout] | ^^^^^^^^ method not found in `Option<&str>` [INFO] [stdout] | [INFO] [stdout] note: the method `is_empty` exists on the type `&str` [INFO] [stdout] --> /rustc/f5711a55f5d5e2f942057d0f6d648dd2d8b2c37b/library/core/src/str/mod.rs:161:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 187 | let usage = if combinator.usage.expect("REASON").is_empty() { [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_string` exists for enum `Option<&str>`, but its trait bounds were not satisfied [INFO] [stdout] --> build.rs:192:34 [INFO] [stdout] | [INFO] [stdout] 192 | combinator.usage.to_string() [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Option<&str>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Option<&str>: std::fmt::Display` [INFO] [stdout] which is required by `Option<&str>: ToString` [INFO] [stdout] note: the method `to_string` exists on the type `&str` [INFO] [stdout] --> /rustc/f5711a55f5d5e2f942057d0f6d648dd2d8b2c37b/library/alloc/src/string.rs:2855:5 [INFO] [stdout] help: consider using `Option::expect` to unwrap the `&str` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 192 | combinator.usage.expect("REASON").to_string() [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0425, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nom-cheatsheet` (build script) due to 12 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "8f692998356056cf6930815cd7b4de4d7e3f9f3d06ba775aa8ba64112459e042", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f692998356056cf6930815cd7b4de4d7e3f9f3d06ba775aa8ba64112459e042", kill_on_drop: false }` [INFO] [stdout] 8f692998356056cf6930815cd7b4de4d7e3f9f3d06ba775aa8ba64112459e042