[INFO] cloning repository https://github.com/dpurbosakti/belajar-rust-dasar [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dpurbosakti/belajar-rust-dasar" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdpurbosakti%2Fbelajar-rust-dasar", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdpurbosakti%2Fbelajar-rust-dasar'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 12877f2cd4289d067fa4c94aa5ae47cef295baff [INFO] checking dpurbosakti/belajar-rust-dasar/12877f2cd4289d067fa4c94aa5ae47cef295baff against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdpurbosakti%2Fbelajar-rust-dasar" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dpurbosakti/belajar-rust-dasar on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dpurbosakti/belajar-rust-dasar [INFO] finished tweaking git repo https://github.com/dpurbosakti/belajar-rust-dasar [INFO] tweaked toml for git repo https://github.com/dpurbosakti/belajar-rust-dasar written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/dpurbosakti/belajar-rust-dasar 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b6ce4e037d787bcdbf6905091ddfea05bacf09b4716f1786b10550318022a00b [INFO] running `Command { std: "docker" "start" "-a" "b6ce4e037d787bcdbf6905091ddfea05bacf09b4716f1786b10550318022a00b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6ce4e037d787bcdbf6905091ddfea05bacf09b4716f1786b10550318022a00b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6ce4e037d787bcdbf6905091ddfea05bacf09b4716f1786b10550318022a00b", kill_on_drop: false }` [INFO] [stdout] b6ce4e037d787bcdbf6905091ddfea05bacf09b4716f1786b10550318022a00b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f92b59b9ee7e5db0d61cf77a20624d057396f1016d77813d5a92ac37b1ce7188 [INFO] running `Command { std: "docker" "start" "-a" "f92b59b9ee7e5db0d61cf77a20624d057396f1016d77813d5a92ac37b1ce7188", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking belajar-rust-dasar v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/main.rs (3 fixes) [INFO] [stdout] warning: method `say_hello` is never used [INFO] [stdout] --> src/main.rs:476:8 [INFO] [stdout] | [INFO] [stdout] 475 | impl Person{ [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 476 | fn say_hello(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Premium` and `Platinum` are never constructed [INFO] [stdout] --> src/main.rs:535:5 [INFO] [stdout] | [INFO] [stdout] 533 | enum Level{ [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 534 | Regular, [INFO] [stdout] 535 | Premium, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 536 | Platinum, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `tinggi` is never read [INFO] [stdout] --> src/main.rs:712:5 [INFO] [stdout] | [INFO] [stdout] 710 | struct Manusia { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 711 | name: String, [INFO] [stdout] 712 | tinggi: u16 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `good_bye_to` is never used [INFO] [stdout] --> src/main.rs:731:8 [INFO] [stdout] | [INFO] [stdout] 729 | trait CanSayGoodBye{ [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 730 | fn good_bye(&self) -> String; [INFO] [stdout] 731 | fn good_bye_to(&self, name: &str) -> String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanSay` is never used [INFO] [stdout] --> src/main.rs:833:7 [INFO] [stdout] | [INFO] [stdout] 833 | trait CanSay: CanSayHello + CanSayGoodBye { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NONE` is never constructed [INFO] [stdout] --> src/main.rs:860:5 [INFO] [stdout] | [INFO] [stdout] 859 | enum Value { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 860 | NONE, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PointPoint` is never constructed [INFO] [stdout] --> src/main.rs:936:8 [INFO] [stdout] | [INFO] [stdout] 936 | struct PointPoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `last_name`, `username`, `email`, and `age` are never read [INFO] [stdout] --> src/model.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct User{ [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2 | pub first_name: String, [INFO] [stdout] 3 | pub last_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 4 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 5 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | pub age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/main.rs (3 fixes) [INFO] [stdout] warning: function `function_a` is never used [INFO] [stdout] --> src/main.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn function_a(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_b` is never used [INFO] [stdout] --> src/main.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn function_b(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_loop` is never used [INFO] [stdout] --> src/main.rs:319:4 [INFO] [stdout] | [INFO] [stdout] 319 | 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:341:4 [INFO] [stdout] | [INFO] [stdout] 341 | fn print_text(value: String, times:u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_recursive` is never used [INFO] [stdout] --> src/main.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 356 | 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:370:4 [INFO] [stdout] | [INFO] [stdout] 370 | fn print_number(number: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hi` is never used [INFO] [stdout] --> src/main.rs:374:4 [INFO] [stdout] | [INFO] [stdout] 374 | fn hi(name: String) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `full_name` is never used [INFO] [stdout] --> src/main.rs:389:4 [INFO] [stdout] | [INFO] [stdout] 389 | fn full_name(first_name: String, last_name: String) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/main.rs:465:8 [INFO] [stdout] | [INFO] [stdout] 465 | struct Person{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say_hello` is never used [INFO] [stdout] --> src/main.rs:473:8 [INFO] [stdout] | [INFO] [stdout] 472 | impl Person{ [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 473 | fn say_hello(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_person` is never used [INFO] [stdout] --> src/main.rs:478:4 [INFO] [stdout] | [INFO] [stdout] 478 | fn print_person(person: &Person) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeoPoint` is never constructed [INFO] [stdout] --> src/main.rs:500:8 [INFO] [stdout] | [INFO] [stdout] 500 | struct GeoPoint(f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:503:8 [INFO] [stdout] | [INFO] [stdout] 502 | impl GeoPoint{ [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 503 | fn new(long:f64, lat:f64) -> GeoPoint { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Nothing` is never constructed [INFO] [stdout] --> src/main.rs:522:8 [INFO] [stdout] | [INFO] [stdout] 522 | struct Nothing; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Level` is never used [INFO] [stdout] --> src/main.rs:530:6 [INFO] [stdout] | [INFO] [stdout] 530 | enum Level{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Payment` is never used [INFO] [stdout] --> src/main.rs:553:6 [INFO] [stdout] | [INFO] [stdout] 553 | enum Payment{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pay` is never used [INFO] [stdout] --> src/main.rs:560:8 [INFO] [stdout] | [INFO] [stdout] 559 | impl Payment{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 560 | 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:688:6 [INFO] [stdout] | [INFO] [stdout] 688 | type Age = u8; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `IdentityNumber` is never used [INFO] [stdout] --> src/main.rs:689:6 [INFO] [stdout] | [INFO] [stdout] 689 | type IdentityNumber = String; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Customer` is never constructed [INFO] [stdout] --> src/main.rs:691:8 [INFO] [stdout] | [INFO] [stdout] 691 | struct Customer{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Manusia` is never constructed [INFO] [stdout] --> src/main.rs:707:8 [INFO] [stdout] | [INFO] [stdout] 707 | struct Manusia { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimplePerson` is never constructed [INFO] [stdout] --> src/main.rs:712:8 [INFO] [stdout] | [INFO] [stdout] 712 | struct SimplePerson { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanSayHello` is never used [INFO] [stdout] --> src/main.rs:716:7 [INFO] [stdout] | [INFO] [stdout] 716 | trait CanSayHello{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanSayGoodBye` is never used [INFO] [stdout] --> src/main.rs:726:7 [INFO] [stdout] | [INFO] [stdout] 726 | trait CanSayGoodBye{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello_trait` is never used [INFO] [stdout] --> src/main.rs:772:4 [INFO] [stdout] | [INFO] [stdout] 772 | fn say_hello_trait(person: &impl CanSayHello) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_and_goodbye` is never used [INFO] [stdout] --> src/main.rs:804:4 [INFO] [stdout] | [INFO] [stdout] 804 | fn hello_and_goodbye(value: &(impl CanSayHello + CanSayGoodBye)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_person` is never used [INFO] [stdout] --> src/main.rs:809:4 [INFO] [stdout] | [INFO] [stdout] 809 | 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:830:7 [INFO] [stdout] | [INFO] [stdout] 830 | trait CanSay: CanSayHello + CanSayGoodBye { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:837:8 [INFO] [stdout] | [INFO] [stdout] 837 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Value` is never used [INFO] [stdout] --> src/main.rs:856:6 [INFO] [stdout] | [INFO] [stdout] 856 | enum Value { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hi` is never constructed [INFO] [stdout] --> src/main.rs:875:8 [INFO] [stdout] | [INFO] [stdout] 875 | struct Hi { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min` is never used [INFO] [stdout] --> src/main.rs:889:4 [INFO] [stdout] | [INFO] [stdout] 889 | 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:907:8 [INFO] [stdout] | [INFO] [stdout] 906 | impl Point { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 907 | fn get_x(&self) -> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 910 | fn get_y(&self) -> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `GetValue` is never used [INFO] [stdout] --> src/main.rs:922:7 [INFO] [stdout] | [INFO] [stdout] 922 | trait GetValue { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PointPoint` is never constructed [INFO] [stdout] --> src/main.rs:933:8 [INFO] [stdout] | [INFO] [stdout] 933 | struct PointPoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `double` is never used [INFO] [stdout] --> src/main.rs:971:4 [INFO] [stdout] | [INFO] [stdout] 971 | fn double(value: Option) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> src/main.rs:1024:8 [INFO] [stdout] | [INFO] [stdout] 1024 | struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello` is never used [INFO] [stdout] --> src/first.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn say_hello() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello` is never used [INFO] [stdout] --> src/first.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | 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: 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] 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:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl User { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 10 | pub fn say_hello(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking belajar-rust-dasar v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0425]: cannot find function `say_hello` in this scope [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | say_hello(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use crate::first::say_hello; [INFO] [stdout] | [INFO] [stdout] 1 + use crate::first::second::third::say_hello; [INFO] [stdout] | [INFO] [stdout] 1 + use crate::second::say_hello; [INFO] [stdout] | [INFO] [stdout] 1 + use crate::third::say_hello; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/main.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | let user: User = User { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::model::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `User` in this scope [INFO] [stdout] --> src/main.rs:17:22 [INFO] [stdout] | [INFO] [stdout] 17 | let user: User = User { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::model::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_a` is never used [INFO] [stdout] --> src/main.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn function_a(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_b` is never used [INFO] [stdout] --> src/main.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn function_b(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_loop` is never used [INFO] [stdout] --> src/main.rs:319:4 [INFO] [stdout] | [INFO] [stdout] 319 | 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:341:4 [INFO] [stdout] | [INFO] [stdout] 341 | fn print_text(value: String, times:u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_recursive` is never used [INFO] [stdout] --> src/main.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 356 | 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:370:4 [INFO] [stdout] | [INFO] [stdout] 370 | fn print_number(number: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hi` is never used [INFO] [stdout] --> src/main.rs:374:4 [INFO] [stdout] | [INFO] [stdout] 374 | fn hi(name: String) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `full_name` is never used [INFO] [stdout] --> src/main.rs:389:4 [INFO] [stdout] | [INFO] [stdout] 389 | fn full_name(first_name: String, last_name: String) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/main.rs:465:8 [INFO] [stdout] | [INFO] [stdout] 465 | struct Person{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `say_hello` is never used [INFO] [stdout] --> src/main.rs:473:8 [INFO] [stdout] | [INFO] [stdout] 472 | impl Person{ [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 473 | fn say_hello(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_person` is never used [INFO] [stdout] --> src/main.rs:478:4 [INFO] [stdout] | [INFO] [stdout] 478 | fn print_person(person: &Person) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeoPoint` is never constructed [INFO] [stdout] --> src/main.rs:500:8 [INFO] [stdout] | [INFO] [stdout] 500 | struct GeoPoint(f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:503:8 [INFO] [stdout] | [INFO] [stdout] 502 | impl GeoPoint{ [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 503 | fn new(long:f64, lat:f64) -> GeoPoint { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Nothing` is never constructed [INFO] [stdout] --> src/main.rs:522:8 [INFO] [stdout] | [INFO] [stdout] 522 | struct Nothing; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Level` is never used [INFO] [stdout] --> src/main.rs:530:6 [INFO] [stdout] | [INFO] [stdout] 530 | enum Level{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Payment` is never used [INFO] [stdout] --> src/main.rs:553:6 [INFO] [stdout] | [INFO] [stdout] 553 | enum Payment{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pay` is never used [INFO] [stdout] --> src/main.rs:560:8 [INFO] [stdout] | [INFO] [stdout] 559 | impl Payment{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 560 | 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:688:6 [INFO] [stdout] | [INFO] [stdout] 688 | type Age = u8; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `IdentityNumber` is never used [INFO] [stdout] --> src/main.rs:689:6 [INFO] [stdout] | [INFO] [stdout] 689 | type IdentityNumber = String; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Customer` is never constructed [INFO] [stdout] --> src/main.rs:691:8 [INFO] [stdout] | [INFO] [stdout] 691 | struct Customer{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Manusia` is never constructed [INFO] [stdout] --> src/main.rs:707:8 [INFO] [stdout] | [INFO] [stdout] 707 | struct Manusia { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimplePerson` is never constructed [INFO] [stdout] --> src/main.rs:712:8 [INFO] [stdout] | [INFO] [stdout] 712 | struct SimplePerson { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanSayHello` is never used [INFO] [stdout] --> src/main.rs:716:7 [INFO] [stdout] | [INFO] [stdout] 716 | trait CanSayHello{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanSayGoodBye` is never used [INFO] [stdout] --> src/main.rs:726:7 [INFO] [stdout] | [INFO] [stdout] 726 | trait CanSayGoodBye{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello_trait` is never used [INFO] [stdout] --> src/main.rs:772:4 [INFO] [stdout] | [INFO] [stdout] 772 | fn say_hello_trait(person: &impl CanSayHello) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_and_goodbye` is never used [INFO] [stdout] --> src/main.rs:804:4 [INFO] [stdout] | [INFO] [stdout] 804 | fn hello_and_goodbye(value: &(impl CanSayHello + CanSayGoodBye)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_person` is never used [INFO] [stdout] --> src/main.rs:809:4 [INFO] [stdout] | [INFO] [stdout] 809 | 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:830:7 [INFO] [stdout] | [INFO] [stdout] 830 | trait CanSay: CanSayHello + CanSayGoodBye { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:837:8 [INFO] [stdout] | [INFO] [stdout] 837 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Value` is never used [INFO] [stdout] --> src/main.rs:856:6 [INFO] [stdout] | [INFO] [stdout] 856 | enum Value { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hi` is never constructed [INFO] [stdout] --> src/main.rs:875:8 [INFO] [stdout] | [INFO] [stdout] 875 | struct Hi { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min` is never used [INFO] [stdout] --> src/main.rs:889:4 [INFO] [stdout] | [INFO] [stdout] 889 | 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:907:8 [INFO] [stdout] | [INFO] [stdout] 906 | impl Point { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 907 | fn get_x(&self) -> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 910 | fn get_y(&self) -> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `GetValue` is never used [INFO] [stdout] --> src/main.rs:922:7 [INFO] [stdout] | [INFO] [stdout] 922 | trait GetValue { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PointPoint` is never constructed [INFO] [stdout] --> src/main.rs:933:8 [INFO] [stdout] | [INFO] [stdout] 933 | struct PointPoint { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `double` is never used [INFO] [stdout] --> src/main.rs:971:4 [INFO] [stdout] | [INFO] [stdout] 971 | fn double(value: Option) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> src/main.rs:1024:8 [INFO] [stdout] | [INFO] [stdout] 1024 | struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello` is never used [INFO] [stdout] --> src/first.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn say_hello() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello` is never used [INFO] [stdout] --> src/first.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | 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: 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] 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:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl User { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 10 | pub fn say_hello(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `say_hello_second` in this scope [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | say_hello_second(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `belajar-rust-dasar` (bin "belajar-rust-dasar" test) due to 5 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "f92b59b9ee7e5db0d61cf77a20624d057396f1016d77813d5a92ac37b1ce7188", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f92b59b9ee7e5db0d61cf77a20624d057396f1016d77813d5a92ac37b1ce7188", kill_on_drop: false }` [INFO] [stdout] f92b59b9ee7e5db0d61cf77a20624d057396f1016d77813d5a92ac37b1ce7188