[INFO] fetching crate kalosm-learning 0.4.0... [INFO] testing kalosm-learning-0.4.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate kalosm-learning 0.4.0 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate kalosm-learning 0.4.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate kalosm-learning 0.4.0 [INFO] tweaked toml for crates.io crate kalosm-learning 0.4.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate kalosm-learning 0.4.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate kalosm-learning 0.4.0 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0827c3f8b272ce24606a54c97460e58bf5f4278a63f897b33a9511ce9400d0ce [INFO] running `Command { std: "docker" "start" "-a" "0827c3f8b272ce24606a54c97460e58bf5f4278a63f897b33a9511ce9400d0ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0827c3f8b272ce24606a54c97460e58bf5f4278a63f897b33a9511ce9400d0ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0827c3f8b272ce24606a54c97460e58bf5f4278a63f897b33a9511ce9400d0ce", kill_on_drop: false }` [INFO] [stdout] 0827c3f8b272ce24606a54c97460e58bf5f4278a63f897b33a9511ce9400d0ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 67f71240e46d5f042398ae2063b6e25d6c1b378f866195e3d158818f25c2a21d [INFO] running `Command { std: "docker" "start" "-a" "67f71240e46d5f042398ae2063b6e25d6c1b378f866195e3d158818f25c2a21d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling pin-project-lite v0.2.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cc v1.2.5 [INFO] [stderr] Compiling serde v1.0.216 [INFO] [stderr] Compiling foldhash v0.1.4 [INFO] [stderr] Compiling reborrow v0.5.5 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling raw-cpuid v10.7.0 [INFO] [stderr] Compiling seq-macro v0.3.5 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling serde_json v1.0.134 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling portable-atomic v1.10.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling rustls-pki-types v1.10.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling console v0.15.10 [INFO] [stderr] Compiling zip v1.1.4 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling rustls v0.23.20 [INFO] [stderr] Compiling miniz_oxide v0.8.2 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling thiserror v2.0.9 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling indicatif v0.17.9 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling webpki-roots v0.26.7 [INFO] [stderr] Compiling memmap2 v0.9.5 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling kalosm-model-types v0.4.0 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling event-listener-strategy v0.5.3 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling bytemuck_derive v1.8.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling serde_derive v1.0.216 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Compiling thiserror-impl v2.0.9 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling kalosm-parse-macro v0.4.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling num_enum v0.7.3 [INFO] [stderr] Compiling kalosm-learning-macro v0.4.0 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling bytemuck v1.21.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling dyn-stack v0.10.0 [INFO] [stderr] Compiling kalosm-sample v0.4.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling pulp v0.18.22 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling rand_distr v0.4.3 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling half v2.4.1 [INFO] [stderr] Compiling gemm-common v0.17.1 [INFO] [stderr] Compiling h2 v0.3.26 [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 icu_provider v1.5.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling gemm-f16 v0.17.1 [INFO] [stderr] Compiling gemm v0.17.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling kalosm-language-model v0.4.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling safetensors v0.4.5 [INFO] [stderr] Compiling ug v0.0.2 [INFO] [stderr] Compiling candle-core v0.8.2 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling ureq v2.12.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling hf-hub v0.3.2 [INFO] [stderr] Compiling candle-nn v0.8.2 [INFO] [stderr] Compiling kalosm-common v0.4.0 [INFO] [stderr] Compiling kalosm-learning v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "67f71240e46d5f042398ae2063b6e25d6c1b378f866195e3d158818f25c2a21d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67f71240e46d5f042398ae2063b6e25d6c1b378f866195e3d158818f25c2a21d", kill_on_drop: false }` [INFO] [stdout] 67f71240e46d5f042398ae2063b6e25d6c1b378f866195e3d158818f25c2a21d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d66101f060b04543b0ce71f7670bee90e09134747709b6c04cd4c74fa558bfd7 [INFO] running `Command { std: "docker" "start" "-a" "d66101f060b04543b0ce71f7670bee90e09134747709b6c04cd4c74fa558bfd7", kill_on_drop: false }` [INFO] [stderr] Compiling kalosm-learning v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `rbert` [INFO] [stdout] --> src/classifier/text_classifier.rs:295:9 [INFO] [stdout] | [INFO] [stdout] 295 | use rbert::{Bert, BertSource}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `rbert` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rbert`, use `cargo add rbert` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rbert` [INFO] [stdout] --> examples/classify.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rbert::Bert; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `rbert` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rbert`, use `cargo add rbert` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/classifier/text_classifier.rs:292:3 [INFO] [stdout] | [INFO] [stdout] 292 | #[tokio::test] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> examples/classify.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 66 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/classify.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let bert = Bert::new().await?; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | let input = bert.embed(test).await?; [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `bert` an explicit type [INFO] [stdout] | [INFO] [stdout] 69 | let bert: /* Type */ = Bert::new().await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/classify.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let input = bert.embed(test).await?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 113 | let input = input.vector(); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `input` an explicit type [INFO] [stdout] | [INFO] [stdout] 112 | let input: /* Type */ = bert.embed(test).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> examples/classify.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | async fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MyClass: model::Class` is not satisfied [INFO] [stdout] --> src/classifier/text_classifier.rs:360:23 [INFO] [stdout] | [INFO] [stdout] 360 | let mut dataset = TextClassifierDatasetBuilder::::new(&bert); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `model::Class` is not implemented for `MyClass` [INFO] [stdout] --> src/classifier/text_classifier.rs:298:5 [INFO] [stdout] | [INFO] [stdout] 298 | enum MyClass { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: the trait `model::Class` is implemented for `u32` [INFO] [stdout] --> src/classifier/model.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | impl Class for u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `TextClassifierDatasetBuilder` [INFO] [stdout] --> src/classifier/text_classifier.rs:40:48 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct TextClassifierDatasetBuilder<'a, T: Class, E: Embedder> { [INFO] [stdout] | ^^^^^ required by this bound in `TextClassifierDatasetBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `kalosm-learning` (example "classify") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `TextClassifierDatasetBuilder<'_, MyClass, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/classifier/text_classifier.rs:360:67 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct TextClassifierDatasetBuilder<'a, T: Class, E: Embedder> { [INFO] [stdout] | ------------------------------------------------------------------ function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 298 | enum MyClass { [INFO] [stdout] | ------------ doesn't satisfy `MyClass: model::Class` [INFO] [stdout] ... [INFO] [stdout] 360 | let mut dataset = TextClassifierDatasetBuilder::::new(&bert); [INFO] [stdout] | ^^^ function or associated item cannot be called on `TextClassifierDatasetBuilder<'_, MyClass, _>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `MyClass: model::Class` was not satisfied [INFO] [stdout] --> src/classifier/text_classifier.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | impl<'a, T: Class, E: Embedder> TextClassifierDatasetBuilder<'a, T, E> { [INFO] [stdout] | ^^^^^ -------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `model::Class` must be implemented [INFO] [stdout] --> src/classifier/model.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait Class { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `new`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BackendDevice` [INFO] [stdout] candidate #2: `Optimizer` [INFO] [stdout] candidate #3: `UniformSampler` [INFO] [stdout] candidate #4: `ring::aead::BoundKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MyClass: model::Class` is not satisfied [INFO] [stdout] --> src/classifier/text_classifier.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 376 | classifier = TextClassifier::::new(Classifier::new( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `model::Class` is not implemented for `MyClass` [INFO] [stdout] --> src/classifier/text_classifier.rs:298:5 [INFO] [stdout] | [INFO] [stdout] 298 | enum MyClass { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: the trait `model::Class` is implemented for `u32` [INFO] [stdout] --> src/classifier/model.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | impl Class for u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `TextClassifier` [INFO] [stdout] --> src/classifier/text_classifier.rs:242:30 [INFO] [stdout] | [INFO] [stdout] 242 | pub struct TextClassifier { [INFO] [stdout] | ^^^^^ required by this bound in `TextClassifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `TextClassifier`, but its trait bounds were not satisfied [INFO] [stdout] --> src/classifier/text_classifier.rs:376:49 [INFO] [stdout] | [INFO] [stdout] 242 | pub struct TextClassifier { [INFO] [stdout] | ----------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 298 | enum MyClass { [INFO] [stdout] | ------------ doesn't satisfy `MyClass: model::Class` [INFO] [stdout] ... [INFO] [stdout] 376 | classifier = TextClassifier::::new(Classifier::new( [INFO] [stdout] | ^^^ function or associated item cannot be called on `TextClassifier` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `MyClass: model::Class` was not satisfied [INFO] [stdout] --> src/classifier/text_classifier.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | impl TextClassifier { [INFO] [stdout] | ^^^^^ ----------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `model::Class` must be implemented [INFO] [stdout] --> src/classifier/model.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait Class { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `new`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `BackendDevice` [INFO] [stdout] candidate #2: `Optimizer` [INFO] [stdout] candidate #3: `UniformSampler` [INFO] [stdout] candidate #4: `ring::aead::BoundKey` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MyClass: model::Class` is not satisfied [INFO] [stdout] --> src/classifier/text_classifier.rs:391:22 [INFO] [stdout] | [INFO] [stdout] 391 | let classifier = Classifier::::load("classifier.safetensors", &dev, config)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `model::Class` is not implemented for `MyClass` [INFO] [stdout] --> src/classifier/text_classifier.rs:298:5 [INFO] [stdout] | [INFO] [stdout] 298 | enum MyClass { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: the trait `model::Class` is implemented for `u32` [INFO] [stdout] --> src/classifier/model.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | impl Class for u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `model::Classifier` [INFO] [stdout] --> src/classifier/model.rs:232:26 [INFO] [stdout] | [INFO] [stdout] 232 | pub struct Classifier { [INFO] [stdout] | ^^^^^ required by this bound in `Classifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `load` exists for struct `model::Classifier`, but its trait bounds were not satisfied [INFO] [stdout] --> src/classifier/text_classifier.rs:391:45 [INFO] [stdout] | [INFO] [stdout] 298 | enum MyClass { [INFO] [stdout] | ------------ doesn't satisfy `MyClass: model::Class` [INFO] [stdout] ... [INFO] [stdout] 391 | let classifier = Classifier::::load("classifier.safetensors", &dev, config)?; [INFO] [stdout] | ^^^^ function or associated item cannot be called on `model::Classifier` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/classifier/model.rs:232:1 [INFO] [stdout] | [INFO] [stdout] 232 | pub struct Classifier { [INFO] [stdout] | ------------------------------- function or associated item `load` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `MyClass: model::Class` was not satisfied [INFO] [stdout] --> src/classifier/model.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | impl Classifier { [INFO] [stdout] | ^^^^^ ------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `model::Class` must be implemented [INFO] [stdout] --> src/classifier/model.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait Class { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `load`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Load` [INFO] [stdout] candidate #2: `icu_provider::data_provider::DataProvider` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/classifier/text_classifier.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 303 | let bert = Bert::builder() [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 401 | let input = bert.embed(test).await?; [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `bert` an explicit type [INFO] [stdout] | [INFO] [stdout] 303 | let bert: /* Type */ = Bert::builder() [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/classifier/text_classifier.rs:401:13 [INFO] [stdout] | [INFO] [stdout] 401 | let input = bert.embed(test).await?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 402 | let class = classifier.run(input.vector())?; [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `input` an explicit type [INFO] [stdout] | [INFO] [stdout] 401 | let input: /* Type */ = bert.embed(test).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kalosm-learning` (lib test) due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "d66101f060b04543b0ce71f7670bee90e09134747709b6c04cd4c74fa558bfd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d66101f060b04543b0ce71f7670bee90e09134747709b6c04cd4c74fa558bfd7", kill_on_drop: false }` [INFO] [stdout] d66101f060b04543b0ce71f7670bee90e09134747709b6c04cd4c74fa558bfd7