[INFO] cloning repository https://github.com/consell/nanogpt-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/consell/nanogpt-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fconsell%2Fnanogpt-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fconsell%2Fnanogpt-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d77b17902fde0bebc80ec0c0568f73ff31ec9b6f [INFO] building consell/nanogpt-rust against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fconsell%2Fnanogpt-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/consell/nanogpt-rust [INFO] finished tweaking git repo https://github.com/consell/nanogpt-rust [INFO] tweaked toml for git repo https://github.com/consell/nanogpt-rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/consell/nanogpt-rust on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/consell/nanogpt-rust 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bytemuck_derive v1.10.1 [INFO] [stderr] Downloaded derive_arbitrary v1.4.2 [INFO] [stderr] Downloaded memmap2 v0.9.8 [INFO] [stderr] Downloaded gemm-f32 v0.18.2 [INFO] [stderr] Downloaded ug v0.4.0 [INFO] [stderr] Downloaded safetensors v0.4.5 [INFO] [stderr] Downloaded gemm-c32 v0.17.1 [INFO] [stderr] Downloaded gemm-c64 v0.17.1 [INFO] [stderr] Downloaded gemm-f64 v0.17.1 [INFO] [stderr] Downloaded dyn-stack v0.10.0 [INFO] [stderr] Downloaded rand_distr v0.5.1 [INFO] [stderr] Downloaded pulp v0.18.22 [INFO] [stderr] Downloaded sysctl v0.5.5 [INFO] [stderr] Downloaded gemm-f16 v0.17.1 [INFO] [stderr] Downloaded gemm-f64 v0.18.2 [INFO] [stderr] Downloaded raw-cpuid v11.5.0 [INFO] [stderr] Downloaded pulp v0.21.5 [INFO] [stderr] Downloaded gemm-common v0.17.1 [INFO] [stderr] Downloaded seq-macro v0.3.6 [INFO] [stderr] Downloaded gemm v0.18.2 [INFO] [stderr] Downloaded raw-cpuid v10.7.0 [INFO] [stderr] Downloaded gemm-f16 v0.18.2 [INFO] [stderr] Downloaded candle-core v0.9.1 [INFO] [stderr] Downloaded gemm-c32 v0.18.2 [INFO] [stderr] Downloaded zip v1.1.4 [INFO] [stderr] Downloaded candle-nn v0.9.1 [INFO] [stderr] Downloaded dyn-stack v0.13.0 [INFO] [stderr] Downloaded winapi-util v0.1.10 [INFO] [stderr] Downloaded gemm-common v0.18.2 [INFO] [stderr] Downloaded gemm-c64 v0.18.2 [INFO] [stderr] Downloaded gemm-f32 v0.17.1 [INFO] [stderr] Downloaded gemm v0.17.1 [INFO] [stderr] Downloaded reborrow v0.5.5 [INFO] [stderr] Downloaded sysctl v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f838d235668a95cea1e463baac1cba1a796e15b188b48cf8e20d8da4f161d978 [INFO] running `Command { std: "docker" "start" "-a" "f838d235668a95cea1e463baac1cba1a796e15b188b48cf8e20d8da4f161d978", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f838d235668a95cea1e463baac1cba1a796e15b188b48cf8e20d8da4f161d978", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f838d235668a95cea1e463baac1cba1a796e15b188b48cf8e20d8da4f161d978", kill_on_drop: false }` [INFO] [stdout] f838d235668a95cea1e463baac1cba1a796e15b188b48cf8e20d8da4f161d978 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f4d605c15528a81c90fbf6cd5249448f7859954fe7f8a155cea3d365ed8545d8 [INFO] running `Command { std: "docker" "start" "-a" "f4d605c15528a81c90fbf6cd5249448f7859954fe7f8a155cea3d365ed8545d8", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling reborrow v0.5.5 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling seq-macro v0.3.6 [INFO] [stderr] Compiling pulp v0.21.5 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling raw-cpuid v10.7.0 [INFO] [stderr] Compiling raw-cpuid v11.5.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling zip v1.1.4 [INFO] [stderr] Compiling memmap2 v0.9.8 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling rand_distr v0.5.1 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling bytemuck_derive v1.10.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling num_enum v0.7.4 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling dyn-stack v0.13.0 [INFO] [stderr] Compiling dyn-stack v0.10.0 [INFO] [stderr] Compiling pulp v0.18.22 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling gemm-common v0.17.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling gemm-f32 v0.17.1 [INFO] [stderr] Compiling gemm-c64 v0.17.1 [INFO] [stderr] Compiling gemm-c32 v0.17.1 [INFO] [stderr] Compiling gemm-f64 v0.17.1 [INFO] [stderr] Compiling gemm-common v0.18.2 [INFO] [stderr] Compiling gemm-f16 v0.17.1 [INFO] [stderr] Compiling gemm-f32 v0.18.2 [INFO] [stderr] Compiling gemm-f16 v0.18.2 [INFO] [stderr] Compiling gemm-c32 v0.18.2 [INFO] [stderr] Compiling gemm-f64 v0.18.2 [INFO] [stderr] Compiling gemm-c64 v0.18.2 [INFO] [stderr] Compiling gemm v0.17.1 [INFO] [stderr] Compiling gemm v0.18.2 [INFO] [stderr] Compiling safetensors v0.4.5 [INFO] [stderr] Compiling ug v0.4.0 [INFO] [stderr] Compiling candle-core v0.9.1 [INFO] [stderr] Compiling candle-nn v0.9.1 [INFO] [stderr] Compiling nanogpt-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::tokenizer::Tokenizer` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::tokenizer::Tokenizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: type alias takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/bigram.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | ) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^ ---------------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 1 generic parameter: `T` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/candle-core-0.9.1/src/error.rs:239:10 [INFO] [stdout] | [INFO] [stdout] 239 | pub type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 21 | fn main() -> Result<(), std::io::Error> { [INFO] [stdout] | -------------------------- expected `Result<(), std::io::Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 24 | run(&contents) [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `std::io::Error`, found `candle_core::Error` [INFO] [stdout] | [INFO] [stdout] = note: `candle_core::Error` and `std::io::Error` have similar names, but are actually distinct types [INFO] [stdout] note: `candle_core::Error` is defined in crate `candle_core` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/candle-core-0.9.1/src/error.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum Error { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: `std::io::Error` is defined in crate `std` [INFO] [stdout] --> /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/io/error.rs:65:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_size` [INFO] [stdout] --> src/bigram.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | let (_, time_size) = xs.shape().dims2()?; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_embedding` [INFO] [stdout] --> src/bigram.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let token_embedding = self.token_embedding_table.forward(xs)?; // (B, T, C) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_embedding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_size` [INFO] [stdout] --> src/bigram.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let batch_size: usize = 32; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_size` [INFO] [stdout] --> src/bigram.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let block_size: usize = 8; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_iters` [INFO] [stdout] --> src/bigram.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let max_iters: usize = 3000; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_iters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eval_interval` [INFO] [stdout] --> src/bigram.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let eval_interval: usize = 300; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eval_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `learning_rate` [INFO] [stdout] --> src/bigram.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let learning_rate = 1e-2; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_learning_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eval_iters` [INFO] [stdout] --> src/bigram.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let eval_iters: usize = 200; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_eval_iters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_embdeddings` [INFO] [stdout] --> src/bigram.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let num_embdeddings: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_embdeddings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `train_data` [INFO] [stdout] --> src/bigram.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let train_data = &data[0..train_size]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_train_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val_data` [INFO] [stdout] --> src/bigram.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let val_data = &data[train_size..]; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_val_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nanogpt-rust` (bin "nanogpt-rust") due to 2 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f4d605c15528a81c90fbf6cd5249448f7859954fe7f8a155cea3d365ed8545d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4d605c15528a81c90fbf6cd5249448f7859954fe7f8a155cea3d365ed8545d8", kill_on_drop: false }` [INFO] [stdout] f4d605c15528a81c90fbf6cd5249448f7859954fe7f8a155cea3d365ed8545d8