[INFO] cloning repository https://github.com/VArtzy/rust-lang-concept [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/VArtzy/rust-lang-concept" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVArtzy%2Frust-lang-concept", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVArtzy%2Frust-lang-concept'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c8f51befd0834ab6747ebbbdbcc8c7d28cd5b583 [INFO] checking VArtzy/rust-lang-concept against try#409ef99a7d4dc96ae91f65d4b48413ed174514d6 for pr-137633 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVArtzy%2Frust-lang-concept" "/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/VArtzy/rust-lang-concept on toolchain 409ef99a7d4dc96ae91f65d4b48413ed174514d6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/VArtzy/rust-lang-concept [INFO] finished tweaking git repo https://github.com/VArtzy/rust-lang-concept [INFO] tweaked toml for git repo https://github.com/VArtzy/rust-lang-concept written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/VArtzy/rust-lang-concept 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" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c27496d7ed5f6e3e4a9430d0b5a5ee42224f6aca18690e467515d0f730fe0bed [INFO] running `Command { std: "docker" "start" "-a" "c27496d7ed5f6e3e4a9430d0b5a5ee42224f6aca18690e467515d0f730fe0bed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c27496d7ed5f6e3e4a9430d0b5a5ee42224f6aca18690e467515d0f730fe0bed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c27496d7ed5f6e3e4a9430d0b5a5ee42224f6aca18690e467515d0f730fe0bed", kill_on_drop: false }` [INFO] [stdout] c27496d7ed5f6e3e4a9430d0b5a5ee42224f6aca18690e467515d0f730fe0bed [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 21838d4778f1ac632761d1a815499507b774d09a1b0f349484e3fd8b40056d61 [INFO] running `Command { std: "docker" "start" "-a" "21838d4778f1ac632761d1a815499507b774d09a1b0f349484e3fd8b40056d61", kill_on_drop: false }` [INFO] [stderr] Checking belajar-rust-dasar v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BTreeMap`, `BTreeSet`, `HashMap`, `HashSet`, `LinkedList`, `VecDeque`, `borrow::BorrowMut`, `intrinsics::mir::Field`, and `iter::Product` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | ...::{borrow::BorrowMut, cell::RefCell, collections::{BTreeMap, BTreeSet, HashMap, HashSet, LinkedList, VecDeque}, fmt::Debug, intrinsics::mir::Field, iter::Product, o... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `first::say_hello` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use first::say_hello; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `second::say_hello as say_hello_second` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use second::say_hello as say_hello_second; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `model::User` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use model::User; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `hi` [INFO] [stdout] --> src/main.rs:1632:14 [INFO] [stdout] | [INFO] [stdout] 1632 | 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:1652:14 [INFO] [stdout] | [INFO] [stdout] 1652 | macro_rules! iterate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `custom_mir`: MIR is an implementation detail and extremely unstable [INFO] [stdout] --> src/main.rs:7:132 [INFO] [stdout] | [INFO] [stdout] 7 | ...t, HashMap, HashSet, LinkedList, VecDeque}, fmt::Debug, intrinsics::mir::Field, iter::Product, ops::{Add, Deref}, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(custom_mir)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-02-25; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `intrinsics::mir::Field` and `iter::Product` [INFO] [stdout] --> src/main.rs:7:132 [INFO] [stdout] | [INFO] [stdout] 7 | ...ap, HashSet, LinkedList, VecDeque}, fmt::Debug, intrinsics::mir::Field, iter::Product, ops::{Add, Deref}, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `custom_mir`: MIR is an implementation detail and extremely unstable [INFO] [stdout] --> src/main.rs:7:132 [INFO] [stdout] | [INFO] [stdout] 7 | ...t, HashMap, HashSet, LinkedList, VecDeque}, fmt::Debug, intrinsics::mir::Field, iter::Product, ops::{Add, Deref}, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(custom_mir)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-02-25; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] [INFO] [stderr] error: could not compile `belajar-rust-dasar` (bin "belajar-rust-dasar") due to 1 previous error; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find function `function_a` in this scope [INFO] [stdout] --> src/main.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 241 | function_a(); [INFO] [stdout] | ^^^^^^^^^^ help: a function with a similar name exists: `funtion_a` [INFO] [stdout] ... [INFO] [stdout] 245 | fn funtion_a() { [INFO] [stdout] | -------------- similarly named function `funtion_a` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `function_b` in this scope [INFO] [stdout] --> src/main.rs:242:5 [INFO] [stdout] | [INFO] [stdout] 242 | function_b(); [INFO] [stdout] | ^^^^^^^^^^ help: a function with a similar name exists: `funtion_b` [INFO] [stdout] ... [INFO] [stdout] 251 | fn funtion_b() { [INFO] [stdout] | -------------- similarly named function `funtion_b` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use std::{borrow::BorrowMut, cell::RefCell, collections::{BTreeMap, BTreeSet, HashMap, HashSet, LinkedList, VecDeque}, fmt::Debug, intrin... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/main.rs:401:12 [INFO] [stdout] | [INFO] [stdout] 401 | let mut index = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | let mut index = 0; [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: unused variable: `slice4` [INFO] [stdout] --> src/main.rs:573:8 [INFO] [stdout] | [INFO] [stdout] 573 | let slice4 = slice3; // data copy - reference are fixed size [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_slice4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:1398:12 [INFO] [stdout] | [INFO] [stdout] 1398 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `laptop` [INFO] [stdout] --> src/main.rs:1580:9 [INFO] [stdout] | [INFO] [stdout] 1580 | let laptop = Brand::Of("Laptop".to_string(), 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:1583:13 [INFO] [stdout] | [INFO] [stdout] 1583 | let smartphone = Brand::Of("Smartphone".to_string(), apple); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_smartphone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `apple` [INFO] [stdout] --> src/main.rs:1581:55 [INFO] [stdout] | [INFO] [stdout] 1578 | let apple = Rc::new(Brand::Of("Apple".to_string(), Rc::new(Brand::End))); [INFO] [stdout] | ----- move occurs because `apple` has type `Rc`, which does not implement the `Copy` trait [INFO] [stdout] 1579 | println!("Reference count : {}", Rc::strong_count(&apple)); [INFO] [stdout] 1580 | let laptop = Brand::Of("Laptop".to_string(), apple); [INFO] [stdout] | ----- value moved here [INFO] [stdout] 1581 | println!("Reference count : {}", Rc::strong_count(&apple)); [INFO] [stdout] | ^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] help: clone the value to increment its reference count [INFO] [stdout] | [INFO] [stdout] 1580 | let laptop = Brand::Of("Laptop".to_string(), apple.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `apple` [INFO] [stdout] --> src/main.rs:1584:59 [INFO] [stdout] | [INFO] [stdout] 1578 | let apple = Rc::new(Brand::Of("Apple".to_string(), Rc::new(Brand::End))); [INFO] [stdout] | ----- move occurs because `apple` has type `Rc`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 1583 | let smartphone = Brand::Of("Smartphone".to_string(), apple); [INFO] [stdout] | ----- value moved here [INFO] [stdout] 1584 | println!("Reference count : {}", Rc::strong_count(&apple)); [INFO] [stdout] | ^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] help: clone the value to increment its reference count [INFO] [stdout] | [INFO] [stdout] 1583 | let smartphone = Brand::Of("Smartphone".to_string(), apple.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0425, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `belajar-rust-dasar` (bin "belajar-rust-dasar" test) due to 5 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "21838d4778f1ac632761d1a815499507b774d09a1b0f349484e3fd8b40056d61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21838d4778f1ac632761d1a815499507b774d09a1b0f349484e3fd8b40056d61", kill_on_drop: false }` [INFO] [stdout] 21838d4778f1ac632761d1a815499507b774d09a1b0f349484e3fd8b40056d61