[INFO] fetching crate nom_html_parser 0.1.1... [INFO] checking nom_html_parser-0.1.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate nom_html_parser 0.1.1 into /workspace/builds/worker-4-tc1/source [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-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nom_html_parser 0.1.1 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 9 packages to latest compatible versions [INFO] [stderr] Adding nom v5.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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1c268b96624d5ab673d6578f8a4d5a89014ae0942da16ce985d8c6c35b5a6341 [INFO] running `Command { std: "docker" "start" "-a" "1c268b96624d5ab673d6578f8a4d5a89014ae0942da16ce985d8c6c35b5a6341", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1c268b96624d5ab673d6578f8a4d5a89014ae0942da16ce985d8c6c35b5a6341", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c268b96624d5ab673d6578f8a4d5a89014ae0942da16ce985d8c6c35b5a6341", kill_on_drop: false }` [INFO] [stdout] 1c268b96624d5ab673d6578f8a4d5a89014ae0942da16ce985d8c6c35b5a6341 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a4b2ed3eaf87a0edf8eea0c6c58476071298a2b8120bb01df9c0720f91fcd45 [INFO] running `Command { std: "docker" "start" "-a" "6a4b2ed3eaf87a0edf8eea0c6c58476071298a2b8120bb01df9c0720f91fcd45", 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 lexical-core v0.7.6 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Checking memchr v2.7.5 [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` and `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` and `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` and `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` and `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: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/parser/utils.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn space_and_opening_tag<'a>(input: &'a str) -> IResult<&'a str, (&'a str, &'a str, TagAttributes, char), VerboseError<&str>> { [INFO] [stdout] | ^^ -- -- -- the same lifetime is named here ---- the same lifetime is elided here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the lifetime is named 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: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 19 | pub fn space_and_opening_tag<'a>(input: &'a str) -> IResult<&'a str, (&'a str, &'a str, TagAttributes, char), VerboseError<&'a str>> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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] | ^^^^^^^^ help: remove this redundant 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: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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] | ^^^^^^^^ help: remove this redundant 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] warning: 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] | ^^^^^^^^ help: remove this redundant 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] warning: 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] | ^^^^^^^^ help: remove this redundant 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] 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] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/parser/utils.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn space_and_opening_tag<'a>(input: &'a str) -> IResult<&'a str, (&'a str, &'a str, TagAttributes, char), VerboseError<&str>> { [INFO] [stdout] | ^^ -- -- -- the same lifetime is named here ---- the same lifetime is elided here [INFO] [stdout] | | | | [INFO] [stdout] | | | the same lifetime is named here [INFO] [stdout] | | the same lifetime is named here [INFO] [stdout] | the lifetime is named 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: consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 19 | pub fn space_and_opening_tag<'a>(input: &'a str) -> IResult<&'a str, (&'a str, &'a str, TagAttributes, char), VerboseError<&'a str>> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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] | ^^^^^^^^ help: remove this redundant 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: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 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] | ^^^^^^^^ help: remove this redundant 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] warning: 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] | ^^^^^^^^ help: remove this redundant 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] warning: 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] | ^^^^^^^^ help: remove this redundant 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.80s [INFO] running `Command { std: "docker" "inspect" "6a4b2ed3eaf87a0edf8eea0c6c58476071298a2b8120bb01df9c0720f91fcd45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a4b2ed3eaf87a0edf8eea0c6c58476071298a2b8120bb01df9c0720f91fcd45", kill_on_drop: false }` [INFO] [stdout] 6a4b2ed3eaf87a0edf8eea0c6c58476071298a2b8120bb01df9c0720f91fcd45