[INFO] fetching crate nom_html_parser 0.1.1... [INFO] testing nom_html_parser-0.1.1 against 1.90.0 for beta-1.91-3 [INFO] extracting crate nom_html_parser 0.1.1 into /workspace/builds/worker-6-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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nom_html_parser 0.1.1 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "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" "+1.90.0" "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" "+1.90.0" "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-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1df51b47e7edd8003db6b4d57b0a400f411fea36e629bf861c3a2f142f861a2 [INFO] running `Command { std: "docker" "start" "-a" "b1df51b47e7edd8003db6b4d57b0a400f411fea36e629bf861c3a2f142f861a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1df51b47e7edd8003db6b4d57b0a400f411fea36e629bf861c3a2f142f861a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1df51b47e7edd8003db6b4d57b0a400f411fea36e629bf861c3a2f142f861a2", kill_on_drop: false }` [INFO] [stdout] b1df51b47e7edd8003db6b4d57b0a400f411fea36e629bf861c3a2f142f861a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ad16fc4f9201dd757257a98ce591e69d65dd40802bded0809ef1d5509121ef9 [INFO] running `Command { std: "docker" "start" "-a" "1ad16fc4f9201dd757257a98ce591e69d65dd40802bded0809ef1d5509121ef9", 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 nom v5.1.3 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling 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: 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 4.82s [INFO] running `Command { std: "docker" "inspect" "1ad16fc4f9201dd757257a98ce591e69d65dd40802bded0809ef1d5509121ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ad16fc4f9201dd757257a98ce591e69d65dd40802bded0809ef1d5509121ef9", kill_on_drop: false }` [INFO] [stdout] 1ad16fc4f9201dd757257a98ce591e69d65dd40802bded0809ef1d5509121ef9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 992043d4961a5ec298214c49825a8e96efbabedbfee66f5da7b7d4243865e934 [INFO] running `Command { std: "docker" "start" "-a" "992043d4961a5ec298214c49825a8e96efbabedbfee66f5da7b7d4243865e934", 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] [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] [stderr] Compiling 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 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 `test` profile [unoptimized + debuginfo] target(s) in 0.91s [INFO] running `Command { std: "docker" "inspect" "992043d4961a5ec298214c49825a8e96efbabedbfee66f5da7b7d4243865e934", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "992043d4961a5ec298214c49825a8e96efbabedbfee66f5da7b7d4243865e934", kill_on_drop: false }` [INFO] [stdout] 992043d4961a5ec298214c49825a8e96efbabedbfee66f5da7b7d4243865e934 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2b4269b93826c94eb7aec33373573e7ee7de4553e62212960a1d26513e17ba41 [INFO] running `Command { std: "docker" "start" "-a" "2b4269b93826c94eb7aec33373573e7ee7de4553e62212960a1d26513e17ba41", 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] warning: unused imports: `ParseError` and `newline` [INFO] [stderr] --> src/parser/attributes.rs:5:33 [INFO] [stderr] | [INFO] [stderr] 5 | character::complete::{char, newline, multispace0}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 6 | sequence::{separated_pair}, [INFO] [stderr] 7 | error::{ParseError,VerboseError,context} [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `ATTRIBUTE_SPACE_BEFORE_ERROR` [INFO] [stderr] --> src/parser/attributes.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | ATTRIBUTE_SPACE_BEFORE_ERROR, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `char` and `opt` [INFO] [stderr] --> src/parser/css/mod.rs:5:25 [INFO] [stderr] | [INFO] [stderr] 5 | character::complete::{char}, [INFO] [stderr] | ^^^^ [INFO] [stderr] 6 | multi::{many0}, [INFO] [stderr] 7 | combinator::{opt}, [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::errors::NEW_LINE_ERROR` [INFO] [stderr] --> src/parser/css/mod.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use super::errors::NEW_LINE_ERROR; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/parser/utils.rs:19:42 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn space_and_opening_tag<'a>(input: &'a str) -> IResult<&'a str, (&'a str, &'a str, TagAttributes, char), VerboseError<&str>> { [INFO] [stderr] | ^^ -- -- -- the same lifetime is named here ---- the same lifetime is elided here [INFO] [stderr] | | | | [INFO] [stderr] | | | the same lifetime is named here [INFO] [stderr] | | the same lifetime is named here [INFO] [stderr] | the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: consistently use `'a` [INFO] [stderr] | [INFO] [stderr] 19 | pub fn space_and_opening_tag<'a>(input: &'a str) -> IResult<&'a str, (&'a str, &'a str, TagAttributes, char), VerboseError<&'a str>> { [INFO] [stderr] | ++ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/parser/utils.rs:27:21 [INFO] [stderr] | [INFO] [stderr] 27 | let tag = if tag.clone().chars().next() == Some('@') { [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/parser/utils.rs:80:26 [INFO] [stderr] | [INFO] [stderr] 80 | let mut lines = input.clone().lines(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/parser/utils.rs:94:23 [INFO] [stderr] | [INFO] [stderr] 94 | let mut it = s.clone().trim_start().chars(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/parser/utils.rs:134:30 [INFO] [stderr] | [INFO] [stderr] 134 | let mut input = input.clone(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: unused variable: `element` [INFO] [stderr] --> src/parser/tag.rs:460:9 [INFO] [stderr] | [INFO] [stderr] 460 | let element = html(input); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `nom_html_parser` (lib) generated 9 warnings (run `cargo fix --lib -p nom_html_parser` to apply 8 suggestions) [INFO] [stderr] warning: `nom_html_parser` (lib test) generated 10 warnings (9 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nom_html_parser-d3dbc661dc1d932e) [INFO] [stdout] [INFO] [stdout] running 23 tests [INFO] [stdout] test parser::css::parse_css_rule_with_before_selector_test ... ok [INFO] [stdout] test parser::css::parse_css_rule_with_first_child_selector_test ... ok [INFO] [stdout] test parser::css::parse_css_rule_test ... ok [INFO] [stdout] test parser::css::parse_css_rule_with_hover_pseudo_selector_test ... ok [INFO] [stdout] test parser::css::parse_css_rule_with_nth_child_selector_test ... ok [INFO] [stdout] test parser::tag::complex_content_test ... ok [INFO] [stdout] test parser::tag::component_attribute_test ... ok [INFO] [stdout] test parser::tag::empty_input_test ... ok [INFO] [stdout] test parser::tag::component_test ... ok [INFO] [stdout] test parser::tag::parse_simple_tags_and_attributes_with_newline_test ... ok [INFO] [stdout] test parser::css::parse_css_rule_with_after_selector_test ... ok [INFO] [stdout] test parser::tag::parse_simple_tags_test ... ok [INFO] [stdout] test parser::tag::parse_tag_and_childs_test ... ok [INFO] [stdout] test parser::tag::parse_tag_and_content_test ... ok [INFO] [stdout] test parser::tag::parse_tag_and_multiple_childs_and_inner_childs_test ... ok [INFO] [stdout] test parser::tag::parse_tag_and_content_nested_test ... ok [INFO] [stdout] test parser::tag::parse_tag_and_multiple_childs_test ... ok [INFO] [stdout] test parser::tag::parse_tag_and_multiples_childs_and_multiple_inner_childs_test ... ok [INFO] [stdout] test parser::tag::parse_tag_and_two_childs_and_multiple_inner_childs_test ... ok [INFO] [stdout] test parser::tag::parse_simple_tags_and_attributes_test ... ok [INFO] [stdout] test parser::css::parse_css_rules_test ... ok [INFO] [stdout] test parser::tag::parse_tag_error_test ... ok [INFO] [stdout] test parser::tag::parse_tags_and_childs_with_attributes_with_newline_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s [INFO] [stdout] [INFO] [stderr] Doc-tests nom_html_parser [INFO] [stdout] [INFO] [stdout] running 0 tests [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] running `Command { std: "docker" "inspect" "2b4269b93826c94eb7aec33373573e7ee7de4553e62212960a1d26513e17ba41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b4269b93826c94eb7aec33373573e7ee7de4553e62212960a1d26513e17ba41", kill_on_drop: false }` [INFO] [stdout] 2b4269b93826c94eb7aec33373573e7ee7de4553e62212960a1d26513e17ba41