[INFO] fetching crate sea-canal 0.3.0... [INFO] checking sea-canal-0.3.0 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate sea-canal 0.3.0 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate sea-canal 0.3.0 [INFO] finished tweaking crates.io crate sea-canal 0.3.0 [INFO] tweaked toml for crates.io crate sea-canal 0.3.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sea-canal 0.3.0 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ad3e27a51298aecb2416435dcd568857211c0f35b47f53a8f8a68e1743e6248 [INFO] running `Command { std: "docker" "start" "-a" "4ad3e27a51298aecb2416435dcd568857211c0f35b47f53a8f8a68e1743e6248", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ad3e27a51298aecb2416435dcd568857211c0f35b47f53a8f8a68e1743e6248", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ad3e27a51298aecb2416435dcd568857211c0f35b47f53a8f8a68e1743e6248", kill_on_drop: false }` [INFO] [stdout] 4ad3e27a51298aecb2416435dcd568857211c0f35b47f53a8f8a68e1743e6248 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 228b347e41a02a57c9061e356284a11bd79d0b8cc68fadb29240371c9c9d6d11 [INFO] running `Command { std: "docker" "start" "-a" "228b347e41a02a57c9061e356284a11bd79d0b8cc68fadb29240371c9c9d6d11", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking sea-canal v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pattern.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | try!(write!(fmt, "{}", elem)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pattern.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pattern.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | try!(write!(fmt, "{}", elem)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pattern.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pattern.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | fn fmt(&self, mut fmt: &mut Formatter) -> Result<(), Error> { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pattern.rs:160:19 [INFO] [stdout] | [INFO] [stdout] 160 | fn fmt(&self, mut fmt: &mut Formatter) -> Result<(), Error> { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/pattern.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 51 | pub struct CustomPatternElem { [INFO] [stdout] 52 | check: fn(i32, i32) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/pattern.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] [INFO] [stdout] | ---------- in this derive macro expansion [INFO] [stdout] 51 | pub struct CustomPatternElem { [INFO] [stdout] 52 | check: fn(i32, i32) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/pattern.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] [INFO] [stdout] | --- in this derive macro expansion [INFO] [stdout] 51 | pub struct CustomPatternElem { [INFO] [stdout] 52 | check: fn(i32, i32) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/pattern.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn iter(&self) -> Iter { [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] 150 | pub fn iter(&self) -> Iter<'_, PatternElem> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pattern.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | fn fmt(&self, mut fmt: &mut Formatter) -> Result<(), Error> { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pattern.rs:160:19 [INFO] [stdout] | [INFO] [stdout] 160 | fn fmt(&self, mut fmt: &mut Formatter) -> Result<(), Error> { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/pattern.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 51 | pub struct CustomPatternElem { [INFO] [stdout] 52 | check: fn(i32, i32) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/pattern.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] [INFO] [stdout] | ---------- in this derive macro expansion [INFO] [stdout] 51 | pub struct CustomPatternElem { [INFO] [stdout] 52 | check: fn(i32, i32) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/pattern.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 50 | #[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] [INFO] [stdout] | --- in this derive macro expansion [INFO] [stdout] 51 | pub struct CustomPatternElem { [INFO] [stdout] 52 | check: fn(i32, i32) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/pattern.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn iter(&self) -> Iter { [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] 150 | pub fn iter(&self) -> Iter<'_, PatternElem> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/bin/scnl.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | for pat in analyzer.find_any_pattern(3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 39 - for pat in analyzer.find_any_pattern(3) { [INFO] [stdout] 39 + while let Some(pat) = analyzer.find_any_pattern(3) { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 39 - for pat in analyzer.find_any_pattern(3) { [INFO] [stdout] 39 + if let Some(pat) = analyzer.find_any_pattern(3) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/bin/scnl.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | for pat in analyzer.find_any_pattern_of_length(1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for pat in analyzer.find_any_pattern_of_length(1) { [INFO] [stdout] 56 + while let Some(pat) = analyzer.find_any_pattern_of_length(1) { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for pat in analyzer.find_any_pattern_of_length(1) { [INFO] [stdout] 56 + if let Some(pat) = analyzer.find_any_pattern_of_length(1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/bin/scnl.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | for pat in analyzer.find_any_pattern(3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 39 - for pat in analyzer.find_any_pattern(3) { [INFO] [stdout] 39 + while let Some(pat) = analyzer.find_any_pattern(3) { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 39 - for pat in analyzer.find_any_pattern(3) { [INFO] [stdout] 39 + if let Some(pat) = analyzer.find_any_pattern(3) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/bin/scnl.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | for pat in analyzer.find_any_pattern_of_length(1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for pat in analyzer.find_any_pattern_of_length(1) { [INFO] [stdout] 56 + while let Some(pat) = analyzer.find_any_pattern_of_length(1) { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for pat in analyzer.find_any_pattern_of_length(1) { [INFO] [stdout] 56 + if let Some(pat) = analyzer.find_any_pattern_of_length(1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.47s [INFO] running `Command { std: "docker" "inspect" "228b347e41a02a57c9061e356284a11bd79d0b8cc68fadb29240371c9c9d6d11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "228b347e41a02a57c9061e356284a11bd79d0b8cc68fadb29240371c9c9d6d11", kill_on_drop: false }` [INFO] [stdout] 228b347e41a02a57c9061e356284a11bd79d0b8cc68fadb29240371c9c9d6d11