[INFO] cloning repository https://github.com/dihanto/rust_pzn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dihanto/rust_pzn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdihanto%2Frust_pzn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdihanto%2Frust_pzn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 11e29253df21f29b8bc9cc052e48fdcc02664d19 [INFO] checking dihanto/rust_pzn against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdihanto%2Frust_pzn" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dihanto/rust_pzn [INFO] finished tweaking git repo https://github.com/dihanto/rust_pzn [INFO] tweaked toml for git repo https://github.com/dihanto/rust_pzn written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dihanto/rust_pzn 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] crate git repo https://github.com/dihanto/rust_pzn 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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 940fe0898232990d12c0d9005be850d2aedae6b6ef6332d74b424e01f5a88949 [INFO] running `Command { std: "docker" "start" "-a" "940fe0898232990d12c0d9005be850d2aedae6b6ef6332d74b424e01f5a88949", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "940fe0898232990d12c0d9005be850d2aedae6b6ef6332d74b424e01f5a88949", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "940fe0898232990d12c0d9005be850d2aedae6b6ef6332d74b424e01f5a88949", kill_on_drop: false }` [INFO] [stdout] 940fe0898232990d12c0d9005be850d2aedae6b6ef6332d74b424e01f5a88949 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a2666b87ba666736dab6913cbc5116c35232de93400aab9b2c29b73aa51661be [INFO] running `Command { std: "docker" "start" "-a" "a2666b87ba666736dab6913cbc5116c35232de93400aab9b2c29b73aa51661be", kill_on_drop: false }` [INFO] [stderr] Checking rust_pzn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `first::say_hello` [INFO] [stdout] --> src/main.rs:780:5 [INFO] [stdout] | [INFO] [stdout] 780 | use first::say_hello; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `second::say_hello as say_hello_second` [INFO] [stdout] --> src/main.rs:781:5 [INFO] [stdout] | [INFO] [stdout] 781 | use second::say_hello as say_hello_second; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefMut` [INFO] [stdout] --> src/main.rs:983:26 [INFO] [stdout] | [INFO] [stdout] 983 | use std::cell::{RefCell, RefMut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BTreeMap`, `BTreeSet`, `HashMap`, `HashSet`, `LinkedList`, and `VecDeque` [INFO] [stdout] --> src/main.rs:985:24 [INFO] [stdout] | [INFO] [stdout] 985 | use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet, LinkedList, VecDeque}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `hi` [INFO] [stdout] --> src/main.rs:1615:14 [INFO] [stdout] | [INFO] [stdout] 1615 | 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:1633:14 [INFO] [stdout] | [INFO] [stdout] 1633 | macro_rules! iterate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unit` is never used [INFO] [stdout] --> src/main.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn unit(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAXIMUM` is never used [INFO] [stdout] --> src/main.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | const MAXIMUM : i32 = 100; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_a` is never used [INFO] [stdout] --> src/main.rs:163:4 [INFO] [stdout] | [INFO] [stdout] 163 | fn function_a(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_b` is never used [INFO] [stdout] --> src/main.rs:168:4 [INFO] [stdout] | [INFO] [stdout] 168 | fn function_b(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_helllo` is never used [INFO] [stdout] --> src/main.rs:348:4 [INFO] [stdout] | [INFO] [stdout] 348 | fn say_helllo(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_goodbye` is never used [INFO] [stdout] --> src/main.rs:359:4 [INFO] [stdout] | [INFO] [stdout] 359 | fn say_goodbye(first_name: &str, last_name: &str){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_loop` is never used [INFO] [stdout] --> src/main.rs:369:4 [INFO] [stdout] | [INFO] [stdout] 369 | fn factorial_loop (n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_text` is never used [INFO] [stdout] --> src/main.rs:388:4 [INFO] [stdout] | [INFO] [stdout] 388 | fn print_text(value: String, times: u32){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: macro expansion ignores `println` and any tokens following [INFO] [stdout] --> src/main.rs:1641:9 [INFO] [stdout] | [INFO] [stdout] 1641 | println!("{}", $item); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1649 | iterate!(1,2,4,5,5,6,7,8,9,10) [INFO] [stdout] | ------------------------------ caused by the macro expansion here [INFO] [stdout] | [INFO] [stdout] = note: the usage of `iterate!` is likely invalid in expression context [INFO] [stdout] help: you might be missing a semicolon here [INFO] [stdout] | [INFO] [stdout] 1649 | iterate!(1,2,4,5,5,6,7,8,9,10); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_recursive` is never used [INFO] [stdout] --> src/main.rs:403:4 [INFO] [stdout] | [INFO] [stdout] 403 | fn factorial_recursive(n: u32) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_number` is never used [INFO] [stdout] --> src/main.rs:417:4 [INFO] [stdout] | [INFO] [stdout] 417 | fn print_number (number: i32){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hi` is never used [INFO] [stdout] --> src/main.rs:421:4 [INFO] [stdout] | [INFO] [stdout] 421 | fn hi(name: String){ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `full_name` is never used [INFO] [stdout] --> src/main.rs:436:4 [INFO] [stdout] | [INFO] [stdout] 436 | fn full_name(first_name: &String, last_name: &String) -> String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_value` is never used [INFO] [stdout] --> src/main.rs:451:4 [INFO] [stdout] | [INFO] [stdout] 451 | fn change_value (value: &mut String ){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/main.rs:486:8 [INFO] [stdout] | [INFO] [stdout] 486 | struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_person` is never used [INFO] [stdout] --> src/main.rs:517:4 [INFO] [stdout] | [INFO] [stdout] 517 | fn print_person(person: &Person){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeoPoint` is never constructed [INFO] [stdout] --> src/main.rs:524:8 [INFO] [stdout] | [INFO] [stdout] 524 | struct GeoPoint(f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Nothing` is never constructed [INFO] [stdout] --> src/main.rs:533:8 [INFO] [stdout] | [INFO] [stdout] 533 | struct Nothing; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say_hello` is never used [INFO] [stdout] --> src/main.rs:541:8 [INFO] [stdout] | [INFO] [stdout] 540 | impl Person { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 541 | fn say_hello(&self, name: &str){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:559:8 [INFO] [stdout] | [INFO] [stdout] 558 | impl GeoPoint{ [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 559 | fn new(long: f64, lat: f64) -> GeoPoint{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Level` is never used [INFO] [stdout] --> src/main.rs:571:6 [INFO] [stdout] | [INFO] [stdout] 571 | enum Level { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Payment` is never used [INFO] [stdout] --> src/main.rs:595:6 [INFO] [stdout] | [INFO] [stdout] 595 | enum Payment{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pay` is never used [INFO] [stdout] --> src/main.rs:612:8 [INFO] [stdout] | [INFO] [stdout] 611 | impl Payment { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 612 | fn pay(&self, amount: u32){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Age` is never used [INFO] [stdout] --> src/main.rs:749:6 [INFO] [stdout] | [INFO] [stdout] 749 | type Age = u8; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `IdentityNumber` is never used [INFO] [stdout] --> src/main.rs:750:6 [INFO] [stdout] | [INFO] [stdout] 750 | type IdentityNumber = String; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Customer` is never constructed [INFO] [stdout] --> src/main.rs:752:8 [INFO] [stdout] | [INFO] [stdout] 752 | struct Customer{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanSayHello` is never used [INFO] [stdout] --> src/main.rs:789:7 [INFO] [stdout] | [INFO] [stdout] 789 | trait CanSayHello{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanSayGoodBye` is never used [INFO] [stdout] --> src/main.rs:797:7 [INFO] [stdout] | [INFO] [stdout] 797 | trait CanSayGoodBye{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello_trait` is never used [INFO] [stdout] --> src/main.rs:822:4 [INFO] [stdout] | [INFO] [stdout] 822 | fn say_hello_trait(value: &impl CanSayHello){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_and_goodbye` is never used [INFO] [stdout] --> src/main.rs:825:4 [INFO] [stdout] | [INFO] [stdout] 825 | fn hello_and_goodbye(value: &(impl CanSayHello + CanSayGoodBye)){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimplePerson` is never constructed [INFO] [stdout] --> src/main.rs:853:8 [INFO] [stdout] | [INFO] [stdout] 853 | struct SimplePerson { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_person` is never used [INFO] [stdout] --> src/main.rs:866:4 [INFO] [stdout] | [INFO] [stdout] 866 | fn create_person (name: String) -> impl CanSayGoodBye{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanSay` is never used [INFO] [stdout] --> src/main.rs:876:7 [INFO] [stdout] | [INFO] [stdout] 876 | trait CanSay : CanSayHello + CanSayGoodBye{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:884:8 [INFO] [stdout] | [INFO] [stdout] 884 | struct Point{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Value` is never used [INFO] [stdout] --> src/main.rs:902:6 [INFO] [stdout] | [INFO] [stdout] 902 | enum Value{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hi` is never constructed [INFO] [stdout] --> src/main.rs:920:8 [INFO] [stdout] | [INFO] [stdout] 920 | struct Hi where T: CanSayGoodBye{ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min` is never used [INFO] [stdout] --> src/main.rs:935:4 [INFO] [stdout] | [INFO] [stdout] 935 | fn min(value1: T, value2: T) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_x` and `get_y` are never used [INFO] [stdout] --> src/main.rs:950:8 [INFO] [stdout] | [INFO] [stdout] 949 | impl Point{ [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 950 | fn get_x(&self) -> &T{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 953 | fn get_y(&self) -> &T{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `GetValue` is never used [INFO] [stdout] --> src/main.rs:968:7 [INFO] [stdout] | [INFO] [stdout] 968 | trait GetValue where T: PartialOrd{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Apple` is never constructed [INFO] [stdout] --> src/main.rs:978:8 [INFO] [stdout] | [INFO] [stdout] 978 | struct Apple{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `double` is never used [INFO] [stdout] --> src/main.rs:1008:4 [INFO] [stdout] | [INFO] [stdout] 1008 | fn double(x: Option) -> Option{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> src/main.rs:1062:8 [INFO] [stdout] | [INFO] [stdout] 1062 | struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_with_filter` is never used [INFO] [stdout] --> src/main.rs:1099:4 [INFO] [stdout] | [INFO] [stdout] 1099 | fn print_with_filter(value: String, filter: fn(String) -> String){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_uppercase` is never used [INFO] [stdout] --> src/main.rs:1112:4 [INFO] [stdout] | [INFO] [stdout] 1112 | fn to_uppercase(value: String) -> String{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/main.rs:1121:8 [INFO] [stdout] | [INFO] [stdout] 1121 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `increment` is never used [INFO] [stdout] --> src/main.rs:1126:8 [INFO] [stdout] | [INFO] [stdout] 1125 | impl Counter{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 1126 | fn increment(&mut self){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_database` is never used [INFO] [stdout] --> src/main.rs:1288:4 [INFO] [stdout] | [INFO] [stdout] 1288 | fn connect_database(host: Option){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_cache` is never used [INFO] [stdout] --> src/main.rs:1305:4 [INFO] [stdout] | [INFO] [stdout] 1305 | fn connect_cache(host: Option) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_email` is never used [INFO] [stdout] --> src/main.rs:1327:4 [INFO] [stdout] | [INFO] [stdout] 1327 | fn connect_email(host: Option) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_application` is never used [INFO] [stdout] --> src/main.rs:1334:4 [INFO] [stdout] | [INFO] [stdout] 1334 | 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:1361:4 [INFO] [stdout] | [INFO] [stdout] 1361 | 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:1388:8 [INFO] [stdout] | [INFO] [stdout] 1388 | struct Student<'a>{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_student_name` is never used [INFO] [stdout] --> src/main.rs:1392:4 [INFO] [stdout] | [INFO] [stdout] 1392 | fn longest_student_name<'a>(student1: &Student<'a>, student2: &Student<'a>) -> &'a str{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `longest_name` is never used [INFO] [stdout] --> src/main.rs:1415:8 [INFO] [stdout] | [INFO] [stdout] 1414 | impl<'a> Student<'a>{ [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 1415 | fn longest_name(&self, student: &Student<'a>) -> &'a str{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Teacher` is never constructed [INFO] [stdout] --> src/main.rs:1424:8 [INFO] [stdout] | [INFO] [stdout] 1424 | struct Teacher<'a, ID> where ID: Ord{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Company` is never constructed [INFO] [stdout] --> src/main.rs:1441:8 [INFO] [stdout] | [INFO] [stdout] 1441 | struct Company{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display_number` is never used [INFO] [stdout] --> src/main.rs:1474:4 [INFO] [stdout] | [INFO] [stdout] 1474 | fn display_number(value: i32){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display_number_reference` is never used [INFO] [stdout] --> src/main.rs:1477:4 [INFO] [stdout] | [INFO] [stdout] 1477 | fn display_number_reference(value: &i32){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ProductCategory` is never used [INFO] [stdout] --> src/main.rs:1482:6 [INFO] [stdout] | [INFO] [stdout] 1482 | enum ProductCategory{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyValue` is never constructed [INFO] [stdout] --> src/main.rs:1507:8 [INFO] [stdout] | [INFO] [stdout] 1507 | struct MyValue{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello_reference` is never used [INFO] [stdout] --> src/main.rs:1525:4 [INFO] [stdout] | [INFO] [stdout] 1525 | 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:1537:8 [INFO] [stdout] | [INFO] [stdout] 1537 | struct Book{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Brand` is never used [INFO] [stdout] --> src/main.rs:1553:6 [INFO] [stdout] | [INFO] [stdout] 1553 | enum Brand{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Seller` is never constructed [INFO] [stdout] --> src/main.rs:1575:8 [INFO] [stdout] | [INFO] [stdout] 1575 | struct Seller{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `APPLICATION` is never used [INFO] [stdout] --> src/main.rs:1594:8 [INFO] [stdout] | [INFO] [stdout] 1594 | static APPLICATION: &str = "My Application"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `COUNTER` is never used [INFO] [stdout] --> src/main.rs:1601:12 [INFO] [stdout] | [INFO] [stdout] 1601 | static mut COUNTER: i32 = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `increment` is never used [INFO] [stdout] --> src/main.rs:1602:11 [INFO] [stdout] | [INFO] [stdout] 1602 | unsafe fn increment(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello` is never used [INFO] [stdout] --> src/first.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn say_hello(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello` is never used [INFO] [stdout] --> src/first.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn say_hello(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello` is never used [INFO] [stdout] --> src/second.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn say_hello(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/model.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct User{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say_hello` is never used [INFO] [stdout] --> src/model.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl User { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 9 | pub fn say_hello (&self, name: &str){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello` is never used [INFO] [stdout] --> src/third.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn say_hello(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/main.rs:1641:30 [INFO] [stdout] | [INFO] [stdout] 1641 | println!("{}", $item); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 1649 | iterate!(1,2,4,5,5,6,7,8,9,10) [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `iterate` [INFO] [stdout] = note: `#[deny(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this error originates in the macro `iterate` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:1354:13 [INFO] [stdout] | [INFO] [stdout] 1354 | let x: i32 = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `laptop` [INFO] [stdout] --> src/main.rs:1565:9 [INFO] [stdout] | [INFO] [stdout] 1565 | let laptop = Brand::Of("Laptop".to_string(), Rc::clone(&apple)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_laptop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `smartphone` [INFO] [stdout] --> src/main.rs:1568:13 [INFO] [stdout] | [INFO] [stdout] 1568 | let smartphone = Brand::Of("Smartphone".to_string(), Rc::clone(&apple)); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_smartphone` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_pzn` (bin "rust_pzn" test) due to 3 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a2666b87ba666736dab6913cbc5116c35232de93400aab9b2c29b73aa51661be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2666b87ba666736dab6913cbc5116c35232de93400aab9b2c29b73aa51661be", kill_on_drop: false }` [INFO] [stdout] a2666b87ba666736dab6913cbc5116c35232de93400aab9b2c29b73aa51661be