[INFO] cloning repository https://github.com/ehlxr/rust_study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ehlxr/rust_study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fehlxr%2Frust_study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fehlxr%2Frust_study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c2c3d879ccdc4ad3538ccf5f5dde0fe05bcaa392 [INFO] checking ehlxr/rust_study against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fehlxr%2Frust_study" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ehlxr/rust_study [INFO] finished tweaking git repo https://github.com/ehlxr/rust_study [INFO] tweaked toml for git repo https://github.com/ehlxr/rust_study written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ehlxr/rust_study on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ehlxr/rust_study already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] af9e1ead5a5bcf83d1deeb744f051cfef426b6f9b9a83aa247d2debf7967779d [INFO] running `Command { std: "docker" "start" "-a" "af9e1ead5a5bcf83d1deeb744f051cfef426b6f9b9a83aa247d2debf7967779d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "af9e1ead5a5bcf83d1deeb744f051cfef426b6f9b9a83aa247d2debf7967779d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af9e1ead5a5bcf83d1deeb744f051cfef426b6f9b9a83aa247d2debf7967779d", kill_on_drop: false }` [INFO] [stdout] af9e1ead5a5bcf83d1deeb744f051cfef426b6f9b9a83aa247d2debf7967779d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9d1e1ef60e5ee2218756726cfd2fea6ca1032b09b54841e0cd6f6e9c725a6cd0 [INFO] running `Command { std: "docker" "start" "-a" "9d1e1ef60e5ee2218756726cfd2fea6ca1032b09b54841e0cd6f6e9c725a6cd0", kill_on_drop: false }` [INFO] [stderr] Checking rust_study v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lib.rs:511:28 [INFO] [stdout] | [INFO] [stdout] 511 | pub fn new(messenger: &'a T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^ --------------- the same lifetime is hidden here [INFO] [stdout] | | [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] 511 | pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/lib.rs:511:28 [INFO] [stdout] | [INFO] [stdout] 511 | pub fn new(messenger: &'a T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^ --------------- the same lifetime is hidden here [INFO] [stdout] | | [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] 511 | pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:648:10 [INFO] [stdout] | [INFO] [stdout] 648 | 1...5 => println!("one through five"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:654:12 [INFO] [stdout] | [INFO] [stdout] 654 | 'a'...'j' => println!("early ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:655:12 [INFO] [stdout] | [INFO] [stdout] 655 | 'k'...'z' => println!("late ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:787:35 [INFO] [stdout] | [INFO] [stdout] 787 | Ms::Hello { id: id_var @ 3...7 } => println!("Found an id in range: {}", id_var), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:789:27 [INFO] [stdout] | [INFO] [stdout] 789 | Ms::Hello { id: 10...12 } => println!("Found an id in another range"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:648:10 [INFO] [stdout] | [INFO] [stdout] 648 | 1...5 => println!("one through five"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:654:12 [INFO] [stdout] | [INFO] [stdout] 654 | 'a'...'j' => println!("early ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:655:12 [INFO] [stdout] | [INFO] [stdout] 655 | 'k'...'z' => println!("late ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:787:35 [INFO] [stdout] | [INFO] [stdout] 787 | Ms::Hello { id: id_var @ 3...7 } => println!("Found an id in range: {}", id_var), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:789:27 [INFO] [stdout] | [INFO] [stdout] 789 | Ms::Hello { id: 10...12 } => println!("Found an id in another range"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> src/tests.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let v1 = c.value(2); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/tests.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let v = c.value("tetsss"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:346:19 [INFO] [stdout] | [INFO] [stdout] 346 | .map(|(a, b)| a) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:346:19 [INFO] [stdout] | [INFO] [stdout] 346 | .map(|(a, b)| a) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Foo` is never used [INFO] [stdout] --> src/main.rs:852:18 [INFO] [stdout] | [INFO] [stdout] 852 | unsafe trait Foo { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `diameter` is never read [INFO] [stdout] --> src/main.rs:886:9 [INFO] [stdout] | [INFO] [stdout] 885 | struct Ball<'a> { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 886 | diameter: &'a i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrWrap` is never constructed [INFO] [stdout] --> src/main.rs:896:12 [INFO] [stdout] | [INFO] [stdout] 896 | struct StrWrap<'a>(&'a str); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fsw` is never used [INFO] [stdout] --> src/main.rs:899:8 [INFO] [stdout] | [INFO] [stdout] 899 | fn fsw(string: &str) -> StrWrap<'_> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:923:15 [INFO] [stdout] | [INFO] [stdout] 923 | Value(u32), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 923 - Value(u32), [INFO] [stdout] 923 + Value(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stop` is never constructed [INFO] [stdout] --> src/main.rs:924:9 [INFO] [stdout] | [INFO] [stdout] 922 | enum Status { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 923 | Value(u32), [INFO] [stdout] 924 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MockMessenger` is never constructed [INFO] [stdout] --> src/tests.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | struct MockMessenger { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/tests.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 63 | impl MockMessenger { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 64 | fn new() -> MockMessenger { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/user.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | pub sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 6 | pub active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:849:33 [INFO] [stdout] | [INFO] [stdout] 849 | println!("COUNTER: {}", COUNTER); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:872:31 [INFO] [stdout] | [INFO] [stdout] 872 | fn parse_context(context: Context) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^ ---- the same lifetime is elided here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is hidden 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] 872 | fn parse_context(context: Context<'_>) -> Result<(), &str> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/user.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 3 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | pub sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 6 | pub active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:849:33 [INFO] [stdout] | [INFO] [stdout] 849 | println!("COUNTER: {}", COUNTER); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:872:31 [INFO] [stdout] | [INFO] [stdout] 872 | fn parse_context(context: Context) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^ ---- the same lifetime is elided here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is hidden 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] 872 | fn parse_context(context: Context<'_>) -> Result<(), &str> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.47s [INFO] running `Command { std: "docker" "inspect" "9d1e1ef60e5ee2218756726cfd2fea6ca1032b09b54841e0cd6f6e9c725a6cd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d1e1ef60e5ee2218756726cfd2fea6ca1032b09b54841e0cd6f6e9c725a6cd0", kill_on_drop: false }` [INFO] [stdout] 9d1e1ef60e5ee2218756726cfd2fea6ca1032b09b54841e0cd6f6e9c725a6cd0