[INFO] cloning repository https://github.com/khairulharu/rust-error-etc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/khairulharu/rust-error-etc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhairulharu%2Frust-error-etc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhairulharu%2Frust-error-etc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d3c61294d703ed27281fd55317746fa02d1088e4 [INFO] checking khairulharu/rust-error-etc against master#19f42cb9bb65555e7d95dab7d17573ae6c5d634c for pr-139087 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhairulharu%2Frust-error-etc" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/khairulharu/rust-error-etc on toolchain 19f42cb9bb65555e7d95dab7d17573ae6c5d634c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+19f42cb9bb65555e7d95dab7d17573ae6c5d634c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/khairulharu/rust-error-etc [INFO] finished tweaking git repo https://github.com/khairulharu/rust-error-etc [INFO] tweaked toml for git repo https://github.com/khairulharu/rust-error-etc written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/khairulharu/rust-error-etc 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" "+19f42cb9bb65555e7d95dab7d17573ae6c5d634c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+19f42cb9bb65555e7d95dab7d17573ae6c5d634c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82ec89ff80237ce69a980e48dd97b2fdb1f9bbf21e4df6e14f6e69dff9f9e3cc [INFO] running `Command { std: "docker" "start" "-a" "82ec89ff80237ce69a980e48dd97b2fdb1f9bbf21e4df6e14f6e69dff9f9e3cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82ec89ff80237ce69a980e48dd97b2fdb1f9bbf21e4df6e14f6e69dff9f9e3cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82ec89ff80237ce69a980e48dd97b2fdb1f9bbf21e4df6e14f6e69dff9f9e3cc", kill_on_drop: false }` [INFO] [stdout] 82ec89ff80237ce69a980e48dd97b2fdb1f9bbf21e4df6e14f6e69dff9f9e3cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+19f42cb9bb65555e7d95dab7d17573ae6c5d634c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca664bab573194d07e75bfea6f052a4f15a57578f32bb5bee6f9dcd7ecb2732a [INFO] running `Command { std: "docker" "start" "-a" "ca664bab573194d07e75bfea6f052a4f15a57578f32bb5bee6f9dcd7ecb2732a", kill_on_drop: false }` [INFO] [stderr] Checking rust-error-etc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cell::RefMut` [INFO] [stdout] --> src/main.rs:403:5 [INFO] [stdout] | [INFO] [stdout] 403 | use std::cell::RefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `hi` [INFO] [stdout] --> src/main.rs:453:14 [INFO] [stdout] | [INFO] [stdout] 453 | macro_rules! hi { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `iterate` [INFO] [stdout] --> src/main.rs:471:14 [INFO] [stdout] | [INFO] [stdout] 471 | macro_rules! iterate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserRepository` is never constructed [INFO] [stdout] --> src/main.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct UserRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_user_repository` is never used [INFO] [stdout] --> src/main.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn new_user_repository(user_repository: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cache_connection` is never used [INFO] [stdout] --> src/main.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn cache_connection(host: Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `email_connection` is never used [INFO] [stdout] --> src/main.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn email_connection(host: Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_application` is never used [INFO] [stdout] --> src/main.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn connect_application(host: Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest` is never used [INFO] [stdout] --> src/main.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn longest<'a>(value1: &'a str, value2: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Student` is never constructed [INFO] [stdout] --> src/main.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | struct Student<'a, 'b> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `longest_last_name` is never used [INFO] [stdout] --> src/main.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 135 | impl<'a, 'b> Student<'a, 'b> { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] 136 | fn longest_last_name(&self, student: &Student<'a, 'b>) -> &'b str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_student_name` is never used [INFO] [stdout] --> src/main.rs:145:4 [INFO] [stdout] | [INFO] [stdout] 145 | fn longest_student_name<'a, 'b>(student1: &Student<'a, 'b>, student2: &Student<'a, 'b>) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Teacher` is never constructed [INFO] [stdout] --> src/main.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | struct Teacher<'a, ID> where ID : Ord { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_name` is never used [INFO] [stdout] --> src/main.rs:202:4 [INFO] [stdout] | [INFO] [stdout] 202 | fn compare_name<'a>(name1: &'a String, name2: &'a String) -> &'a String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hero` is never constructed [INFO] [stdout] --> src/main.rs:222:8 [INFO] [stdout] | [INFO] [stdout] 222 | struct Hero { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ProductCategory` is never used [INFO] [stdout] --> src/main.rs:249:6 [INFO] [stdout] | [INFO] [stdout] 249 | enum ProductCategory { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_category` is never used [INFO] [stdout] --> src/main.rs:254:4 [INFO] [stdout] | [INFO] [stdout] 254 | fn print_category(category: &ProductCategory) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyValue` is never constructed [INFO] [stdout] --> src/main.rs:290:8 [INFO] [stdout] | [INFO] [stdout] 290 | struct MyValue { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello_reference` is never used [INFO] [stdout] --> src/main.rs:312:4 [INFO] [stdout] | [INFO] [stdout] 312 | fn say_hello_reference(name: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Book` is never constructed [INFO] [stdout] --> src/main.rs:327:8 [INFO] [stdout] | [INFO] [stdout] 327 | struct Book { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Brand` is never used [INFO] [stdout] --> src/main.rs:349:6 [INFO] [stdout] | [INFO] [stdout] 349 | enum Brand { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_address` is never used [INFO] [stdout] --> src/main.rs:374:4 [INFO] [stdout] | [INFO] [stdout] 374 | fn change_address(address: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Seller` is never constructed [INFO] [stdout] --> src/main.rs:406:8 [INFO] [stdout] | [INFO] [stdout] 406 | struct Seller { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `VERSION` is never used [INFO] [stdout] --> src/main.rs:429:8 [INFO] [stdout] | [INFO] [stdout] 429 | static VERSION: &str = "80.80.88"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `COUNTER` is never used [INFO] [stdout] --> src/main.rs:438:12 [INFO] [stdout] | [INFO] [stdout] 438 | static mut COUNTER: i32 = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `increment` is never used [INFO] [stdout] --> src/main.rs:440:11 [INFO] [stdout] | [INFO] [stdout] 440 | unsafe fn increment() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:250:8 [INFO] [stdout] | [INFO] [stdout] 250 | Of(String, Box), [INFO] [stdout] | -- ^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ProductCategory` 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] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 250 - Of(String, Box), [INFO] [stdout] 250 + Of((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:350:8 [INFO] [stdout] | [INFO] [stdout] 350 | Of(String, Rc), [INFO] [stdout] | -- ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Brand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 350 - Of(String, Rc), [INFO] [stdout] 350 + Of((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `active` is never read [INFO] [stdout] --> src/main.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 406 | struct Seller { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 407 | name: RefCell, [INFO] [stdout] 408 | active: RefCell, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Seller` 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 is discouraged [INFO] [stdout] --> src/main.rs:449:24 [INFO] [stdout] | [INFO] [stdout] 449 | println!("{}", 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "ca664bab573194d07e75bfea6f052a4f15a57578f32bb5bee6f9dcd7ecb2732a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca664bab573194d07e75bfea6f052a4f15a57578f32bb5bee6f9dcd7ecb2732a", kill_on_drop: false }` [INFO] [stdout] ca664bab573194d07e75bfea6f052a4f15a57578f32bb5bee6f9dcd7ecb2732a