[INFO] cloning repository https://github.com/adibhauzan/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/adibhauzan/belajar-rust-dasar" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadibhauzan%2Fbelajar-rust-dasar", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadibhauzan%2Fbelajar-rust-dasar'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 218ce597dea7bf706fb6e63fd15db3b9c3b1285e [INFO] checking adibhauzan/belajar-rust-dasar/218ce597dea7bf706fb6e63fd15db3b9c3b1285e against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadibhauzan%2Fbelajar-rust-dasar" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/adibhauzan/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/adibhauzan/belajar-rust-dasar [INFO] finished tweaking git repo https://github.com/adibhauzan/belajar-rust-dasar [INFO] tweaked toml for git repo https://github.com/adibhauzan/belajar-rust-dasar written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/adibhauzan/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-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ddc973f6f86db056b9e2f5f5dea6815319af9d7a539364ef9c174cb089f72b02 [INFO] running `Command { std: "docker" "start" "-a" "ddc973f6f86db056b9e2f5f5dea6815319af9d7a539364ef9c174cb089f72b02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ddc973f6f86db056b9e2f5f5dea6815319af9d7a539364ef9c174cb089f72b02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddc973f6f86db056b9e2f5f5dea6815319af9d7a539364ef9c174cb089f72b02", kill_on_drop: false }` [INFO] [stdout] ddc973f6f86db056b9e2f5f5dea6815319af9d7a539364ef9c174cb089f72b02 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c2a7ff559caa160d0a764ccfc9b0f07a6bd169308bce57cde96af29177adebf [INFO] running `Command { std: "docker" "start" "-a" "1c2a7ff559caa160d0a764ccfc9b0f07a6bd169308bce57cde96af29177adebf", 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 cfg-if v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling cc v1.1.10 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking flate2 v1.0.31 [INFO] [stderr] Checking libloading v0.8.5 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v5.0.0 [INFO] [stderr] Compiling pathfinder_simd v0.5.4 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Checking plotters-backend v0.3.6 [INFO] [stderr] Compiling cstr v0.2.12 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking bytemuck v1.16.3 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling font-kit v0.13.2 [INFO] [stderr] Checking gif v0.12.0 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking pathfinder_geometry v0.5.1 [INFO] [stderr] Compiling freetype-sys v0.20.1 [INFO] [stderr] Checking float-ord v0.3.2 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking plotters-svg v0.3.6 [INFO] [stderr] Checking ttf-parser v0.20.0 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking plotters-bitmap v0.3.6 [INFO] [stderr] Checking plotters v0.3.6 [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/second.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (4 fixes) [INFO] [stdout] warning: function `unit` is never used [INFO] [stdout] --> src/main.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn unit(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_a` is never used [INFO] [stdout] --> src/main.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn function_a(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function_b` is never used [INFO] [stdout] --> src/main.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 247 | fn function_b() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_good_bye` is never used [INFO] [stdout] --> src/main.rs:466:4 [INFO] [stdout] | [INFO] [stdout] 466 | fn say_good_bye(first_name : String, middle_name : String, last_name : String){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_loop_1` is never used [INFO] [stdout] --> src/main.rs:486:4 [INFO] [stdout] | [INFO] [stdout] 486 | fn factorial_loop_1(n: i32)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_loop_recursive` is never used [INFO] [stdout] --> src/main.rs:506:4 [INFO] [stdout] | [INFO] [stdout] 506 | fn factorial_loop_recursive(n: i32)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_print_text` is never used [INFO] [stdout] --> src/main.rs:514:4 [INFO] [stdout] | [INFO] [stdout] 514 | fn test_print_text(value: String, times: i32){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `full_name` is never used [INFO] [stdout] --> src/main.rs:572:4 [INFO] [stdout] | [INFO] [stdout] 572 | fn full_name(first_name: &String, middle_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:590:4 [INFO] [stdout] | [INFO] [stdout] 590 | 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:615:8 [INFO] [stdout] | [INFO] [stdout] 615 | struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Human` is never used [INFO] [stdout] --> src/main.rs:622:7 [INFO] [stdout] | [INFO] [stdout] 622 | trait Human { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_person` is never used [INFO] [stdout] --> src/main.rs:633:4 [INFO] [stdout] | [INFO] [stdout] 633 | fn print_person(person: &Person){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Nothing` is never constructed [INFO] [stdout] --> src/main.rs:664:8 [INFO] [stdout] | [INFO] [stdout] 664 | struct Nothing; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `match_person`, and `say_hello` are never used [INFO] [stdout] --> src/main.rs:673:8 [INFO] [stdout] | [INFO] [stdout] 672 | impl Person{ [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 673 | fn new(first_name: String, middle_name: String, last_name: String, age: u8) -> Person { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 682 | fn match_person(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 689 | fn say_hello(&self, name: &str){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GeoPoint` is never constructed [INFO] [stdout] --> src/main.rs:710:8 [INFO] [stdout] | [INFO] [stdout] 710 | struct GeoPoint(f64, f64); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `print`, and `match_geo_point` are never used [INFO] [stdout] --> src/main.rs:713:8 [INFO] [stdout] | [INFO] [stdout] 712 | impl GeoPoint { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 713 | fn new(lat: f64, long: f64) -> GeoPoint { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 717 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 721 | fn match_geo_point(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Level` is never used [INFO] [stdout] --> src/main.rs:743:6 [INFO] [stdout] | [INFO] [stdout] 743 | enum Level{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Payment` is never used [INFO] [stdout] --> src/main.rs:770:6 [INFO] [stdout] | [INFO] [stdout] 770 | enum Payment { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pay` is never used [INFO] [stdout] --> src/main.rs:777:8 [INFO] [stdout] | [INFO] [stdout] 776 | impl Payment{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 777 | 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:814:6 [INFO] [stdout] | [INFO] [stdout] 814 | type Age = u8; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `IdentityNumber` is never used [INFO] [stdout] --> src/main.rs:815:6 [INFO] [stdout] | [INFO] [stdout] 815 | type IdentityNumber = String; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Customer` is never constructed [INFO] [stdout] --> src/main.rs:817:8 [INFO] [stdout] | [INFO] [stdout] 817 | struct Customer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Kontol` is never used [INFO] [stdout] --> src/main.rs:823:7 [INFO] [stdout] | [INFO] [stdout] 823 | trait Kontol { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `introduce` are never used [INFO] [stdout] --> src/main.rs:828:8 [INFO] [stdout] | [INFO] [stdout] 827 | impl Customer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 828 | fn new(id: IdentityNumber, name: String, age: Age)-> Customer{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 836 | fn introduce(&self){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanSayGoodBye` is never used [INFO] [stdout] --> src/main.rs:866:7 [INFO] [stdout] | [INFO] [stdout] 866 | trait CanSayGoodBye { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanSayHello` is never used [INFO] [stdout] --> src/main.rs:871:7 [INFO] [stdout] | [INFO] [stdout] 871 | trait CanSayHello { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Orang` is never constructed [INFO] [stdout] --> src/main.rs:878:8 [INFO] [stdout] | [INFO] [stdout] 878 | struct Orang { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:885:12 [INFO] [stdout] | [INFO] [stdout] 884 | impl Orang { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 885 | pub fn new(first_name: String, middle_name: String, last_name: String)-> Orang{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `say_hello_trait` is never used [INFO] [stdout] --> src/main.rs:914:4 [INFO] [stdout] | [INFO] [stdout] 914 | 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:918:4 [INFO] [stdout] | [INFO] [stdout] 918 | 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:935:8 [INFO] [stdout] | [INFO] [stdout] 935 | struct SimplePerson { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:940:8 [INFO] [stdout] | [INFO] [stdout] 939 | impl SimplePerson{ [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 940 | fn new(name: String)->SimplePerson{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_simple_person` is never used [INFO] [stdout] --> src/main.rs:958:4 [INFO] [stdout] | [INFO] [stdout] 958 | fn new_simple_person(name: String) -> impl CanSayGoodBye { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CanSay` is never used [INFO] [stdout] --> src/main.rs:975:7 [INFO] [stdout] | [INFO] [stdout] 975 | trait CanSay: CanSayHello + CanSayGoodBye{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleMan` is never constructed [INFO] [stdout] --> src/main.rs:979:8 [INFO] [stdout] | [INFO] [stdout] 979 | struct SimpleMan { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:1008:8 [INFO] [stdout] | [INFO] [stdout] 1008 | struct Point{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_y` and `get_x` are never used [INFO] [stdout] --> src/main.rs:1015:8 [INFO] [stdout] | [INFO] [stdout] 1013 | impl Point { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 1014 | [INFO] [stdout] 1015 | fn get_y(&self)-> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1019 | fn get_x(&self)-> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Value` is never used [INFO] [stdout] --> src/main.rs:1034:6 [INFO] [stdout] | [INFO] [stdout] 1034 | enum Value{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HI` is never constructed [INFO] [stdout] --> src/main.rs:1053:8 [INFO] [stdout] | [INFO] [stdout] 1053 | struct HI{ [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min` is never used [INFO] [stdout] --> src/main.rs:1068:4 [INFO] [stdout] | [INFO] [stdout] 1068 | fn min(value1: T, value2: T)->T{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add` is never used [INFO] [stdout] --> src/main.rs:1119:4 [INFO] [stdout] | [INFO] [stdout] 1119 | fn add(value: Option)-> Option{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Category` is never constructed [INFO] [stdout] --> src/main.rs:1165:8 [INFO] [stdout] | [INFO] [stdout] 1165 | struct Category { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_with_filter` is never used [INFO] [stdout] --> src/main.rs:1201:4 [INFO] [stdout] | [INFO] [stdout] 1201 | 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:1206:4 [INFO] [stdout] | [INFO] [stdout] 1206 | fn to_uppercase(value: String)->String{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_database` is never used [INFO] [stdout] --> src/main.rs:1311:4 [INFO] [stdout] | [INFO] [stdout] 1311 | 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:1329:4 [INFO] [stdout] | [INFO] [stdout] 1329 | 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:1340:4 [INFO] [stdout] | [INFO] [stdout] 1340 | fn connect_email(email: Option) -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_application` is never used [INFO] [stdout] --> src/main.rs:1351:4 [INFO] [stdout] | [INFO] [stdout] 1351 | 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:1414:4 [INFO] [stdout] | [INFO] [stdout] 1414 | 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:1428:8 [INFO] [stdout] | [INFO] [stdout] 1428 | struct Student <'a, 'b>{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `longest_student_name` is never used [INFO] [stdout] --> src/main.rs:1434:8 [INFO] [stdout] | [INFO] [stdout] 1433 | impl <'a, 'b> Student<'a, 'b> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 1434 | fn longest_student_name(&self, student: &Student<'a, 'b>)-> &'a str{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_student_name` is never used [INFO] [stdout] --> src/main.rs:1443:4 [INFO] [stdout] | [INFO] [stdout] 1443 | 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: 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: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:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn say_hello(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/model.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `say_hello` are never used [INFO] [stdout] --> src/model.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | impl User{ [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(first_name: String, middle_name: String, last_name: String, email: String, age: u8)-> User{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | 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] warning: 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `User` [INFO] [stdout] --> src/main.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | let user: model::User = User::new(String::from("adib"), [INFO] [stdout] | ^^^^ use of undeclared type `User` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use crate::model::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `say_hello` in this scope [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | say_hello(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 6 + use crate::first::say_hello; [INFO] [stdout] | [INFO] [stdout] 6 + use crate::first::second::third::say_hello; [INFO] [stdout] | [INFO] [stdout] 6 + use crate::second::say_hello; [INFO] [stdout] | [INFO] [stdout] 6 + use crate::third::say_hello; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `say_hello` in this scope [INFO] [stdout] --> src/main.rs:461:9 [INFO] [stdout] | [INFO] [stdout] 461 | say_hello() [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 6 + use crate::first::say_hello; [INFO] [stdout] | [INFO] [stdout] 6 + use crate::first::second::third::say_hello; [INFO] [stdout] | [INFO] [stdout] 6 + use crate::second::say_hello; [INFO] [stdout] | [INFO] [stdout] 6 + use crate::third::say_hello; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `say_hello` in this scope [INFO] [stdout] --> src/main.rs:463:5 [INFO] [stdout] | [INFO] [stdout] 463 | say_hello() [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 6 + use crate::first::say_hello; [INFO] [stdout] | [INFO] [stdout] 6 + use crate::first::second::third::say_hello; [INFO] [stdout] | [INFO] [stdout] 6 + use crate::second::say_hello; [INFO] [stdout] | [INFO] [stdout] 6 + use crate::third::say_hello; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `VecDeque` in this scope [INFO] [stdout] --> src/main.rs:1240:20 [INFO] [stdout] | [INFO] [stdout] 1240 | let mut names: VecDeque = VecDeque::::new(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use std::collections::VecDeque; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VecDeque` [INFO] [stdout] --> src/main.rs:1240:39 [INFO] [stdout] | [INFO] [stdout] 1240 | let mut names: VecDeque = VecDeque::::new(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `VecDeque` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use std::collections::VecDeque; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/main.rs:1254:19 [INFO] [stdout] | [INFO] [stdout] 1254 | let mut maps: HashMap = HashMap::::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/main.rs:1254:45 [INFO] [stdout] | [INFO] [stdout] 1254 | let mut maps: HashMap = HashMap::::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BTreeMap` in this scope [INFO] [stdout] --> src/main.rs:1268:19 [INFO] [stdout] | [INFO] [stdout] 1268 | let mut maps: BTreeMap = BTreeMap::::new(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BTreeMap` [INFO] [stdout] --> src/main.rs:1268:46 [INFO] [stdout] | [INFO] [stdout] 1268 | let mut maps: BTreeMap = BTreeMap::::new(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BTreeMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use std::collections::BTreeMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `say_hello_first` in this scope [INFO] [stdout] --> src/second.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | say_hello_first(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `say_hello_second` in this scope [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | say_hello_second(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:925:9 [INFO] [stdout] | [INFO] [stdout] 925 | let mut adib = Orang::new(String::from("Adib"), String::from("Hauzan"), String::from("Sofyan")); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:966:9 [INFO] [stdout] | [INFO] [stdout] 966 | let mut adib = &SimplePerson{ [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1193:16 [INFO] [stdout] | [INFO] [stdout] 1193 | let sum = |mut value1: i32, mut value2: i32|{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1193:33 [INFO] [stdout] | [INFO] [stdout] 1193 | let sum = |mut value1: i32, mut value2: i32|{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [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 13 previous errors; 4 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "1c2a7ff559caa160d0a764ccfc9b0f07a6bd169308bce57cde96af29177adebf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c2a7ff559caa160d0a764ccfc9b0f07a6bd169308bce57cde96af29177adebf", kill_on_drop: false }` [INFO] [stdout] 1c2a7ff559caa160d0a764ccfc9b0f07a6bd169308bce57cde96af29177adebf