[INFO] fetching crate twitter-text 0.2.0... [INFO] testing twitter-text-0.2.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate twitter-text 0.2.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate twitter-text 0.2.0 [INFO] finished tweaking crates.io crate twitter-text 0.2.0 [INFO] tweaked toml for crates.io crate twitter-text 0.2.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate twitter-text 0.2.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 36 packages to latest compatible versions [INFO] [stderr] Adding idna v0.1.5 (available: v1.1.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded twitter_text_config v0.2.0 [INFO] [stderr] Downloaded twitter_text_parser v0.2.0 [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 536d2c59fddc321000f299df58f829d54a7a752d29451ffb39a5019bd59a3820 [INFO] running `Command { std: "docker" "start" "-a" "536d2c59fddc321000f299df58f829d54a7a752d29451ffb39a5019bd59a3820", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "536d2c59fddc321000f299df58f829d54a7a752d29451ffb39a5019bd59a3820", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "536d2c59fddc321000f299df58f829d54a7a752d29451ffb39a5019bd59a3820", kill_on_drop: false }` [INFO] [stdout] 536d2c59fddc321000f299df58f829d54a7a752d29451ffb39a5019bd59a3820 [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac9931e5c36dafada8587407d615403d5080659372a35bfa9204db43dc8e62a2 [INFO] running `Command { std: "docker" "start" "-a" "ac9931e5c36dafada8587407d615403d5080659372a35bfa9204db43dc8e62a2", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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 matches v0.1.10 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling twitter_text_config v0.2.0 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Compiling twitter_text_parser v0.2.0 [INFO] [stderr] Compiling twitter-text v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/hit_highlighter.rs:43:48 [INFO] [stdout] | [INFO] [stdout] 43 | fn walk(&self, pairs: Pairs, hits: &[(Hit)], builder: &mut HighlightBuilder) -> usize { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - fn walk(&self, pairs: Pairs, hits: &[(Hit)], builder: &mut HighlightBuilder) -> usize { [INFO] [stdout] 43 + fn walk(&self, pairs: Pairs, hits: &[Hit], builder: &mut HighlightBuilder) -> usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/hit_highlighter.rs:89:46 [INFO] [stdout] | [INFO] [stdout] 89 | fn new(text: &str, tag: &str, hits: &Vec<(Hit)>) -> HighlightBuilder { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - fn new(text: &str, tag: &str, hits: &Vec<(Hit)>) -> HighlightBuilder { [INFO] [stdout] 89 + fn new(text: &str, tag: &str, hits: &Vec) -> HighlightBuilder { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stdout] --> src/hit_highlighter.rs:51:60 [INFO] [stdout] | [INFO] [stdout] 51 | Rule::start_tag => builder.append_tag(pair.into_span().as_str()), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stdout] --> src/hit_highlighter.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | Rule::end_tag => builder.append_tag(pair.into_span().as_str()), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stdout] --> src/hit_highlighter.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | let span = pair.into_span(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `original_length` [INFO] [stdout] --> src/extractor.rs:325:14 [INFO] [stdout] | [INFO] [stdout] 325 | let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `original_length_utf8` [INFO] [stdout] --> src/extractor.rs:325:31 [INFO] [stdout] | [INFO] [stdout] 325 | let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_length_utf8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/extractor.rs:415:30 [INFO] [stdout] | [INFO] [stdout] 415 | fn mention_result(&self, s: &'a str, pair: Option>) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pair` [INFO] [stdout] --> src/extractor.rs:415:42 [INFO] [stdout] | [INFO] [stdout] 415 | fn mention_result(&self, s: &'a str, pair: Option>) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entity` [INFO] [stdout] --> src/autolinker.rs:109:28 [INFO] [stdout] | [INFO] [stdout] 109 | fn link_to_text(&self, entity: &Entity, original_text: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_entity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/autolinker.rs:174:48 [INFO] [stdout] | [INFO] [stdout] 174 | fn link_to_cashtag(&self, entity: &Entity, text: &str, buf: &mut String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/autolinker.rs:201:44 [INFO] [stdout] | [INFO] [stdout] 201 | fn link_to_url(&self, entity: &Entity, text: &str, buf: &mut String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/extractor.rs:300:31 [INFO] [stdout] | [INFO] [stdout] 300 | pub fn new(configuration: &Configuration) -> ValidatingExtractor { [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] 300 | pub fn new(configuration: &Configuration) -> ValidatingExtractor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/extractor.rs:467:20 [INFO] [stdout] | [INFO] [stdout] 467 | fn new(config: &Configuration, normalized_length: i32) -> TextMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 467 | fn new(config: &Configuration, normalized_length: i32) -> TextMetrics<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.21s [INFO] running `Command { std: "docker" "inspect" "ac9931e5c36dafada8587407d615403d5080659372a35bfa9204db43dc8e62a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac9931e5c36dafada8587407d615403d5080659372a35bfa9204db43dc8e62a2", kill_on_drop: false }` [INFO] [stdout] ac9931e5c36dafada8587407d615403d5080659372a35bfa9204db43dc8e62a2 [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 76ee23a8790c923d959fc626a5a9fd0c1e5483c1094e7541f5e5174c2be63217 [INFO] running `Command { std: "docker" "start" "-a" "76ee23a8790c923d959fc626a5a9fd0c1e5483c1094e7541f5e5174c2be63217", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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: unnecessary parentheses around type [INFO] [stdout] --> src/hit_highlighter.rs:43:48 [INFO] [stdout] | [INFO] [stdout] 43 | fn walk(&self, pairs: Pairs, hits: &[(Hit)], builder: &mut HighlightBuilder) -> usize { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - fn walk(&self, pairs: Pairs, hits: &[(Hit)], builder: &mut HighlightBuilder) -> usize { [INFO] [stdout] 43 + fn walk(&self, pairs: Pairs, hits: &[Hit], builder: &mut HighlightBuilder) -> usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/hit_highlighter.rs:89:46 [INFO] [stdout] | [INFO] [stdout] 89 | fn new(text: &str, tag: &str, hits: &Vec<(Hit)>) -> HighlightBuilder { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - fn new(text: &str, tag: &str, hits: &Vec<(Hit)>) -> HighlightBuilder { [INFO] [stdout] 89 + fn new(text: &str, tag: &str, hits: &Vec) -> HighlightBuilder { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stdout] --> src/hit_highlighter.rs:51:60 [INFO] [stdout] | [INFO] [stdout] 51 | Rule::start_tag => builder.append_tag(pair.into_span().as_str()), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stdout] --> src/hit_highlighter.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | Rule::end_tag => builder.append_tag(pair.into_span().as_str()), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stdout] --> src/hit_highlighter.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | let span = pair.into_span(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `original_length` [INFO] [stdout] --> src/extractor.rs:325:14 [INFO] [stdout] | [INFO] [stdout] 325 | let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `original_length_utf8` [INFO] [stdout] --> src/extractor.rs:325:31 [INFO] [stdout] | [INFO] [stdout] 325 | let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_length_utf8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/extractor.rs:415:30 [INFO] [stdout] | [INFO] [stdout] 415 | fn mention_result(&self, s: &'a str, pair: Option>) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pair` [INFO] [stdout] --> src/extractor.rs:415:42 [INFO] [stdout] | [INFO] [stdout] 415 | fn mention_result(&self, s: &'a str, pair: Option>) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entity` [INFO] [stdout] --> src/autolinker.rs:109:28 [INFO] [stdout] | [INFO] [stdout] 109 | fn link_to_text(&self, entity: &Entity, original_text: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_entity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/autolinker.rs:174:48 [INFO] [stdout] | [INFO] [stdout] 174 | fn link_to_cashtag(&self, entity: &Entity, text: &str, buf: &mut String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling twitter-text v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/autolinker.rs:201:44 [INFO] [stdout] | [INFO] [stdout] 201 | fn link_to_url(&self, entity: &Entity, text: &str, buf: &mut String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/extractor.rs:300:31 [INFO] [stdout] | [INFO] [stdout] 300 | pub fn new(configuration: &Configuration) -> ValidatingExtractor { [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] 300 | pub fn new(configuration: &Configuration) -> ValidatingExtractor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/extractor.rs:467:20 [INFO] [stdout] | [INFO] [stdout] 467 | fn new(config: &Configuration, normalized_length: i32) -> TextMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 467 | fn new(config: &Configuration, normalized_length: i32) -> TextMetrics<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/hit_highlighter.rs:43:48 [INFO] [stdout] | [INFO] [stdout] 43 | fn walk(&self, pairs: Pairs, hits: &[(Hit)], builder: &mut HighlightBuilder) -> usize { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 43 - fn walk(&self, pairs: Pairs, hits: &[(Hit)], builder: &mut HighlightBuilder) -> usize { [INFO] [stdout] 43 + fn walk(&self, pairs: Pairs, hits: &[Hit], builder: &mut HighlightBuilder) -> usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/hit_highlighter.rs:89:46 [INFO] [stdout] | [INFO] [stdout] 89 | fn new(text: &str, tag: &str, hits: &Vec<(Hit)>) -> HighlightBuilder { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - fn new(text: &str, tag: &str, hits: &Vec<(Hit)>) -> HighlightBuilder { [INFO] [stdout] 89 + fn new(text: &str, tag: &str, hits: &Vec) -> HighlightBuilder { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stdout] --> src/hit_highlighter.rs:51:60 [INFO] [stdout] | [INFO] [stdout] 51 | Rule::start_tag => builder.append_tag(pair.into_span().as_str()), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stdout] --> src/hit_highlighter.rs:52:58 [INFO] [stdout] | [INFO] [stdout] 52 | Rule::end_tag => builder.append_tag(pair.into_span().as_str()), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stdout] --> src/hit_highlighter.rs:54:37 [INFO] [stdout] | [INFO] [stdout] 54 | let span = pair.into_span(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `original_length` [INFO] [stdout] --> src/extractor.rs:325:14 [INFO] [stdout] | [INFO] [stdout] 325 | let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `original_length_utf8` [INFO] [stdout] --> src/extractor.rs:325:31 [INFO] [stdout] | [INFO] [stdout] 325 | let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_length_utf8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/extractor.rs:415:30 [INFO] [stdout] | [INFO] [stdout] 415 | fn mention_result(&self, s: &'a str, pair: Option>) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pair` [INFO] [stdout] --> src/extractor.rs:415:42 [INFO] [stdout] | [INFO] [stdout] 415 | fn mention_result(&self, s: &'a str, pair: Option>) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entity` [INFO] [stdout] --> src/autolinker.rs:109:28 [INFO] [stdout] | [INFO] [stdout] 109 | fn link_to_text(&self, entity: &Entity, original_text: &str, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_entity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/autolinker.rs:174:48 [INFO] [stdout] | [INFO] [stdout] 174 | fn link_to_cashtag(&self, entity: &Entity, text: &str, buf: &mut String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/autolinker.rs:201:44 [INFO] [stdout] | [INFO] [stdout] 201 | fn link_to_url(&self, entity: &Entity, text: &str, buf: &mut String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/extractor.rs:300:31 [INFO] [stdout] | [INFO] [stdout] 300 | pub fn new(configuration: &Configuration) -> ValidatingExtractor { [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] 300 | pub fn new(configuration: &Configuration) -> ValidatingExtractor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/extractor.rs:467:20 [INFO] [stdout] | [INFO] [stdout] 467 | fn new(config: &Configuration, normalized_length: i32) -> TextMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 467 | fn new(config: &Configuration, normalized_length: i32) -> TextMetrics<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.93s [INFO] running `Command { std: "docker" "inspect" "76ee23a8790c923d959fc626a5a9fd0c1e5483c1094e7541f5e5174c2be63217", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76ee23a8790c923d959fc626a5a9fd0c1e5483c1094e7541f5e5174c2be63217", kill_on_drop: false }` [INFO] [stdout] 76ee23a8790c923d959fc626a5a9fd0c1e5483c1094e7541f5e5174c2be63217 [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 21d6fa4423e2b406c980057ef60186de80737d5239308bcec4d52218600bc1a9 [INFO] running `Command { std: "docker" "start" "-a" "21d6fa4423e2b406c980057ef60186de80737d5239308bcec4d52218600bc1a9", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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: unnecessary parentheses around type [INFO] [stderr] --> src/hit_highlighter.rs:43:48 [INFO] [stderr] | [INFO] [stderr] 43 | fn walk(&self, pairs: Pairs, hits: &[(Hit)], builder: &mut HighlightBuilder) -> usize { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 43 - fn walk(&self, pairs: Pairs, hits: &[(Hit)], builder: &mut HighlightBuilder) -> usize { [INFO] [stderr] 43 + fn walk(&self, pairs: Pairs, hits: &[Hit], builder: &mut HighlightBuilder) -> usize { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/hit_highlighter.rs:89:46 [INFO] [stderr] | [INFO] [stderr] 89 | fn new(text: &str, tag: &str, hits: &Vec<(Hit)>) -> HighlightBuilder { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 89 - fn new(text: &str, tag: &str, hits: &Vec<(Hit)>) -> HighlightBuilder { [INFO] [stderr] 89 + fn new(text: &str, tag: &str, hits: &Vec) -> HighlightBuilder { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stderr] --> src/hit_highlighter.rs:51:60 [INFO] [stderr] | [INFO] [stderr] 51 | Rule::start_tag => builder.append_tag(pair.into_span().as_str()), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stderr] --> src/hit_highlighter.rs:52:58 [INFO] [stderr] | [INFO] [stderr] 52 | Rule::end_tag => builder.append_tag(pair.into_span().as_str()), [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `pest::iterators::Pair::<'i, R>::into_span`: Please use `as_span` instead [INFO] [stderr] --> src/hit_highlighter.rs:54:37 [INFO] [stderr] | [INFO] [stderr] 54 | let span = pair.into_span(); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `original_length` [INFO] [stderr] --> src/extractor.rs:325:14 [INFO] [stderr] | [INFO] [stderr] 325 | let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_length` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `original_length_utf8` [INFO] [stderr] --> src/extractor.rs:325:31 [INFO] [stderr] | [INFO] [stderr] 325 | let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_original_length_utf8` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/extractor.rs:415:30 [INFO] [stderr] | [INFO] [stderr] 415 | fn mention_result(&self, s: &'a str, pair: Option>) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pair` [INFO] [stderr] --> src/extractor.rs:415:42 [INFO] [stderr] | [INFO] [stderr] 415 | fn mention_result(&self, s: &'a str, pair: Option>) [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pair` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `entity` [INFO] [stderr] --> src/autolinker.rs:109:28 [INFO] [stderr] | [INFO] [stderr] 109 | fn link_to_text(&self, entity: &Entity, original_text: &str, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_entity` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `text` [INFO] [stderr] --> src/autolinker.rs:174:48 [INFO] [stderr] | [INFO] [stderr] 174 | fn link_to_cashtag(&self, entity: &Entity, text: &str, buf: &mut String) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `text` [INFO] [stderr] --> src/autolinker.rs:201:44 [INFO] [stderr] | [INFO] [stderr] 201 | fn link_to_url(&self, entity: &Entity, text: &str, buf: &mut String) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/extractor.rs:300:31 [INFO] [stderr] | [INFO] [stderr] 300 | pub fn new(configuration: &Configuration) -> ValidatingExtractor { [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided 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: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 300 | pub fn new(configuration: &Configuration) -> ValidatingExtractor<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/extractor.rs:467:20 [INFO] [stderr] | [INFO] [stderr] 467 | fn new(config: &Configuration, normalized_length: i32) -> TextMetrics { [INFO] [stderr] | ^^^^^^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 467 | fn new(config: &Configuration, normalized_length: i32) -> TextMetrics<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `twitter-text` (lib) generated 14 warnings (run `cargo fix --lib -p twitter-text` to apply 4 suggestions) [INFO] [stderr] warning: `twitter-text` (lib test) generated 14 warnings (14 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/twitter_text-178d94e62aa863bc) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test autolinker::tests::test_escape_brackets ... ok [INFO] [stdout] test autolinker::tests::test_escape_html ... ok [INFO] [stdout] test extractor::tests::test_extract_empty_string_mentions ... ok [INFO] [stdout] test extractor::tests::test_extract_setting ... ok [INFO] [stdout] test extractor::tests::test_extract_single_mention ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests twitter_text [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/hit_highlighter.rs:43:48 [INFO] [stderr] | [INFO] [stderr] 43 | fn walk(&self, pairs: Pairs, hits: &[(Hit)], builder: &mut HighlightBuilder) -> usize { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 43 - fn walk(&self, pairs: Pairs, hits: &[(Hit)], builder: &mut HighlightBuilder) -> usize { [INFO] [stderr] 43 + fn walk(&self, pairs: Pairs, hits: &[Hit], builder: &mut HighlightBuilder) -> usize { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/hit_highlighter.rs:89:46 [INFO] [stderr] | [INFO] [stderr] 89 | fn new(text: &str, tag: &str, hits: &Vec<(Hit)>) -> HighlightBuilder { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 89 - fn new(text: &str, tag: &str, hits: &Vec<(Hit)>) -> HighlightBuilder { [INFO] [stderr] 89 + fn new(text: &str, tag: &str, hits: &Vec) -> HighlightBuilder { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [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" "21d6fa4423e2b406c980057ef60186de80737d5239308bcec4d52218600bc1a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21d6fa4423e2b406c980057ef60186de80737d5239308bcec4d52218600bc1a9", kill_on_drop: false }` [INFO] [stdout] 21d6fa4423e2b406c980057ef60186de80737d5239308bcec4d52218600bc1a9