[INFO] fetching crate nom_html_parser 0.1.1... [INFO] checking nom_html_parser-0.1.1 against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] extracting crate nom_html_parser 0.1.1 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate nom_html_parser 0.1.1 on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate nom_html_parser 0.1.1 [INFO] finished tweaking crates.io crate nom_html_parser 0.1.1 [INFO] tweaked toml for crates.io crate nom_html_parser 0.1.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff843f46575adeae51ee6ba5ffbb478d223c98ac935e23e914b1f663fd1dc298 [INFO] running `Command { std: "docker" "start" "-a" "ff843f46575adeae51ee6ba5ffbb478d223c98ac935e23e914b1f663fd1dc298", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff843f46575adeae51ee6ba5ffbb478d223c98ac935e23e914b1f663fd1dc298", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff843f46575adeae51ee6ba5ffbb478d223c98ac935e23e914b1f663fd1dc298", kill_on_drop: false }` [INFO] [stdout] ff843f46575adeae51ee6ba5ffbb478d223c98ac935e23e914b1f663fd1dc298 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5ad2fc49026faa57eb4f64537427f4e7c0973c605c962ae0cc2e2e72fca076b [INFO] running `Command { std: "docker" "start" "-a" "a5ad2fc49026faa57eb4f64537427f4e7c0973c605c962ae0cc2e2e72fca076b", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Compiling nom v5.1.3 [INFO] [stderr] Checking nom_html_parser v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ParseError`, `newline` [INFO] [stdout] --> src/parser/attributes.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | character::complete::{char, newline, multispace0}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | sequence::{separated_pair}, [INFO] [stdout] 7 | error::{ParseError,VerboseError,context} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ATTRIBUTE_SPACE_BEFORE_ERROR` [INFO] [stdout] --> src/parser/attributes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ATTRIBUTE_SPACE_BEFORE_ERROR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `char`, `opt` [INFO] [stdout] --> src/parser/css/mod.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | character::complete::{char}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | multi::{many0}, [INFO] [stdout] 7 | combinator::{opt}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::errors::NEW_LINE_ERROR` [INFO] [stdout] --> src/parser/css/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use super::errors::NEW_LINE_ERROR; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ParseError`, `newline` [INFO] [stdout] --> src/parser/attributes.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | character::complete::{char, newline, multispace0}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | sequence::{separated_pair}, [INFO] [stdout] 7 | error::{ParseError,VerboseError,context} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ATTRIBUTE_SPACE_BEFORE_ERROR` [INFO] [stdout] --> src/parser/attributes.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ATTRIBUTE_SPACE_BEFORE_ERROR, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `char`, `opt` [INFO] [stdout] --> src/parser/css/mod.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | character::complete::{char}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | multi::{many0}, [INFO] [stdout] 7 | combinator::{opt}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::errors::NEW_LINE_ERROR` [INFO] [stdout] --> src/parser/css/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use super::errors::NEW_LINE_ERROR; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/utils.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | let tag = if tag.clone().chars().next() == Some('@') { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/utils.rs:80:26 [INFO] [stdout] | [INFO] [stdout] 80 | let mut lines = input.clone().lines(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/utils.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | let mut it = s.clone().trim_start().chars(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/utils.rs:134:30 [INFO] [stdout] | [INFO] [stdout] 134 | let mut input = input.clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `nom_html_parser` (lib) due to 5 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> src/parser/tag.rs:460:9 [INFO] [stdout] | [INFO] [stdout] 460 | let element = html(input); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/utils.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | let tag = if tag.clone().chars().next() == Some('@') { [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/utils.rs:80:26 [INFO] [stdout] | [INFO] [stdout] 80 | let mut lines = input.clone().lines(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/utils.rs:94:23 [INFO] [stdout] | [INFO] [stdout] 94 | let mut it = s.clone().trim_start().chars(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser/utils.rs:134:30 [INFO] [stdout] | [INFO] [stdout] 134 | let mut input = input.clone(); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `nom_html_parser` (lib test) due to 5 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a5ad2fc49026faa57eb4f64537427f4e7c0973c605c962ae0cc2e2e72fca076b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5ad2fc49026faa57eb4f64537427f4e7c0973c605c962ae0cc2e2e72fca076b", kill_on_drop: false }` [INFO] [stdout] a5ad2fc49026faa57eb4f64537427f4e7c0973c605c962ae0cc2e2e72fca076b