[INFO] fetching crate twitter-text 0.2.0... [INFO] building twitter-text-0.2.0 against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] extracting crate twitter-text 0.2.0 into /workspace/builds/worker-3-tc2/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-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate twitter-text 0.2.0 on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 37 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41b37e0f3e8057c36b003fc0fd2f9820a215b79621456d698cc154a3a1b463d3 [INFO] running `Command { std: "docker" "start" "-a" "41b37e0f3e8057c36b003fc0fd2f9820a215b79621456d698cc154a3a1b463d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41b37e0f3e8057c36b003fc0fd2f9820a215b79621456d698cc154a3a1b463d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41b37e0f3e8057c36b003fc0fd2f9820a215b79621456d698cc154a3a1b463d3", kill_on_drop: false }` [INFO] [stdout] 41b37e0f3e8057c36b003fc0fd2f9820a215b79621456d698cc154a3a1b463d3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40242475b910189f2da39e154017344195fd12159775faf35ba9fd60ea944019 [INFO] running `Command { std: "docker" "start" "-a" "40242475b910189f2da39e154017344195fd12159775faf35ba9fd60ea944019", 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-bidi v0.3.18 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling twitter_text_parser v0.2.0 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling twitter_text_config 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: `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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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: `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: 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] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 325 | let (_original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_TWEET_LENGTH` [INFO] [stdout] | [INFO] [stdout] 325 - let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] 325 + let (validator::MAX_TWEET_LENGTH, original_length_utf8) = calculate_length(s); [INFO] [stdout] | [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] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 325 | let (original_length, _original_length_utf8) = calculate_length(s); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_TWEET_LENGTH` [INFO] [stdout] | [INFO] [stdout] 325 - let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] 325 + let (original_length, validator::MAX_TWEET_LENGTH) = calculate_length(s); [INFO] [stdout] | [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 13.05s [INFO] running `Command { std: "docker" "inspect" "40242475b910189f2da39e154017344195fd12159775faf35ba9fd60ea944019", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40242475b910189f2da39e154017344195fd12159775faf35ba9fd60ea944019", kill_on_drop: false }` [INFO] [stdout] 40242475b910189f2da39e154017344195fd12159775faf35ba9fd60ea944019 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7150ab261b0c34c0b8bc03e587445275b6d4dcd65e61ef636d3fa613e9a2769 [INFO] running `Command { std: "docker" "start" "-a" "b7150ab261b0c34c0b8bc03e587445275b6d4dcd65e61ef636d3fa613e9a2769", 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: `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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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: `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: 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] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 325 | let (_original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_TWEET_LENGTH` [INFO] [stdout] | [INFO] [stdout] 325 - let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] 325 + let (validator::MAX_TWEET_LENGTH, original_length_utf8) = calculate_length(s); [INFO] [stdout] | [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] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 325 | let (original_length, _original_length_utf8) = calculate_length(s); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_TWEET_LENGTH` [INFO] [stdout] | [INFO] [stdout] 325 - let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] 325 + let (original_length, validator::MAX_TWEET_LENGTH) = calculate_length(s); [INFO] [stdout] | [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] [stderr] Compiling twitter-text v0.2.0 (/opt/rustwide/workdir) [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: `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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [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: `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] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 325 | let (_original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_TWEET_LENGTH` [INFO] [stdout] | [INFO] [stdout] 325 - let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] 325 + let (validator::MAX_TWEET_LENGTH, original_length_utf8) = calculate_length(s); [INFO] [stdout] | [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] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 325 | let (original_length, _original_length_utf8) = calculate_length(s); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_TWEET_LENGTH` [INFO] [stdout] | [INFO] [stdout] 325 - let (original_length, original_length_utf8) = calculate_length(s); [INFO] [stdout] 325 + let (original_length, validator::MAX_TWEET_LENGTH) = calculate_length(s); [INFO] [stdout] | [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: 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: 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.77s [INFO] running `Command { std: "docker" "inspect" "b7150ab261b0c34c0b8bc03e587445275b6d4dcd65e61ef636d3fa613e9a2769", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7150ab261b0c34c0b8bc03e587445275b6d4dcd65e61ef636d3fa613e9a2769", kill_on_drop: false }` [INFO] [stdout] b7150ab261b0c34c0b8bc03e587445275b6d4dcd65e61ef636d3fa613e9a2769