[INFO] fetching crate kalosm-learning 0.4.0... [INFO] testing kalosm-learning-0.4.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate kalosm-learning 0.4.0 into /workspace/builds/worker-4-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-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate kalosm-learning 0.4.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ebff026c09e2691a5b80a3206c29a1a93dc0a66a2e1f49ab7f98a2d53877bffa [INFO] running `Command { std: "docker" "start" "-a" "ebff026c09e2691a5b80a3206c29a1a93dc0a66a2e1f49ab7f98a2d53877bffa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ebff026c09e2691a5b80a3206c29a1a93dc0a66a2e1f49ab7f98a2d53877bffa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebff026c09e2691a5b80a3206c29a1a93dc0a66a2e1f49ab7f98a2d53877bffa", kill_on_drop: false }` [INFO] [stdout] ebff026c09e2691a5b80a3206c29a1a93dc0a66a2e1f49ab7f98a2d53877bffa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 248f7d4b3d1efbbee8b5e0de425daef2faf6c2350646734dc9aec1b088298af2 [INFO] running `Command { std: "docker" "start" "-a" "248f7d4b3d1efbbee8b5e0de425daef2faf6c2350646734dc9aec1b088298af2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [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 writeable v0.5.5 [INFO] [stderr] Compiling reborrow v0.5.5 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling foldhash v0.1.4 [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 icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling serde_json v1.0.134 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling portable-atomic v1.10.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling rustls-pki-types v1.10.1 [INFO] [stderr] Compiling zip v1.1.4 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling indexmap v2.7.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 option-ext v0.2.0 [INFO] [stderr] Compiling thiserror v2.0.9 [INFO] [stderr] Compiling webpki-roots v0.26.7 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling console v0.15.10 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling memmap2 v0.9.5 [INFO] [stderr] Compiling indicatif v0.17.9 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling event-listener-strategy v0.5.3 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling kalosm-model-types v0.4.0 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [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 tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Compiling thiserror-impl v2.0.9 [INFO] [stderr] Compiling kalosm-parse-macro v0.4.0 [INFO] [stderr] Compiling kalosm-learning-macro v0.4.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling num_enum v0.7.3 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling kalosm-sample v0.4.0 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling bytemuck v1.21.0 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling dyn-stack v0.10.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling pulp v0.18.22 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling rand_distr v0.4.3 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling half v2.4.1 [INFO] [stderr] Compiling gemm-common v0.17.1 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling gemm-f32 v0.17.1 [INFO] [stderr] Compiling gemm-f64 v0.17.1 [INFO] [stderr] Compiling gemm-c64 v0.17.1 [INFO] [stderr] Compiling gemm-c32 v0.17.1 [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 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 ug v0.0.2 [INFO] [stderr] Compiling safetensors v0.4.5 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling ureq v2.12.1 [INFO] [stderr] Compiling candle-core v0.8.2 [INFO] [stderr] Compiling hf-hub v0.3.2 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [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 32s [INFO] running `Command { std: "docker" "inspect" "248f7d4b3d1efbbee8b5e0de425daef2faf6c2350646734dc9aec1b088298af2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "248f7d4b3d1efbbee8b5e0de425daef2faf6c2350646734dc9aec1b088298af2", kill_on_drop: false }` [INFO] [stdout] 248f7d4b3d1efbbee8b5e0de425daef2faf6c2350646734dc9aec1b088298af2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7908318cee208ce9a08f8cdd31a67243f118fd3045ec55d646fb2b2f81590a12 [INFO] running `Command { std: "docker" "start" "-a" "7908318cee208ce9a08f8cdd31a67243f118fd3045ec55d646fb2b2f81590a12", kill_on_drop: false }` [INFO] [stderr] Compiling kalosm-learning v0.4.0 (/opt/rustwide/workdir) [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] --> 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[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[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[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: E0432, E0433, E0752. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kalosm-learning` (example "classify") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0391]: cycle detected when computing type of `classifier::text_classifier::simplified::{opaque#0}` [INFO] [stdout] --> src/classifier/text_classifier.rs:293:1 [INFO] [stdout] | [INFO] [stdout] 293 | async fn simplified() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: ...which requires computing type of opaque `classifier::text_classifier::simplified::{opaque#0}`... [INFO] [stdout] --> src/classifier/text_classifier.rs:293:1 [INFO] [stdout] | [INFO] [stdout] 293 | async fn simplified() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires borrow-checking `classifier::text_classifier::simplified`... [INFO] [stdout] --> src/classifier/text_classifier.rs:293:1 [INFO] [stdout] | [INFO] [stdout] 293 | async fn simplified() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires promoting constants in MIR for `classifier::text_classifier::simplified`... [INFO] [stdout] --> src/classifier/text_classifier.rs:293:1 [INFO] [stdout] | [INFO] [stdout] 293 | async fn simplified() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires checking if `classifier::text_classifier::simplified` contains FFI-unwind calls... [INFO] [stdout] --> src/classifier/text_classifier.rs:293:1 [INFO] [stdout] | [INFO] [stdout] 293 | async fn simplified() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires building MIR for `classifier::text_classifier::simplified`... [INFO] [stdout] --> src/classifier/text_classifier.rs:293:1 [INFO] [stdout] | [INFO] [stdout] 293 | async fn simplified() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires match-checking `classifier::text_classifier::simplified`... [INFO] [stdout] --> src/classifier/text_classifier.rs:293:1 [INFO] [stdout] | [INFO] [stdout] 293 | async fn simplified() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...which requires type-checking `classifier::text_classifier::simplified`... [INFO] [stdout] --> src/classifier/text_classifier.rs:293:1 [INFO] [stdout] | [INFO] [stdout] 293 | async fn simplified() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: ...which requires checking effective visibilities... [INFO] [stdout] = note: ...which again requires computing type of `classifier::text_classifier::simplified::{opaque#0}`, completing the cycle [INFO] [stdout] note: cycle used when checking that `classifier::text_classifier::simplified::{opaque#0}` is well-formed [INFO] [stdout] --> src/classifier/text_classifier.rs:293:1 [INFO] [stdout] | [INFO] [stdout] 293 | async fn simplified() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information [INFO] [stdout] [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `model::Class` is not implemented for `MyClass` [INFO] [stdout] | [INFO] [stdout] = help: the trait `model::Class` is implemented for `u32` [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] [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `model::Class` is not implemented for `MyClass` [INFO] [stdout] | [INFO] [stdout] = help: the trait `model::Class` is implemented for `u32` [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] | ^^^^^^^^^^^^^^^^^^^^^ the trait `model::Class` is not implemented for `MyClass` [INFO] [stdout] | [INFO] [stdout] = help: the trait `model::Class` is implemented for `u32` [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] Some errors have detailed explanations: E0277, E0391, 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 9 previous errors [INFO] running `Command { std: "docker" "inspect" "7908318cee208ce9a08f8cdd31a67243f118fd3045ec55d646fb2b2f81590a12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7908318cee208ce9a08f8cdd31a67243f118fd3045ec55d646fb2b2f81590a12", kill_on_drop: false }` [INFO] [stdout] 7908318cee208ce9a08f8cdd31a67243f118fd3045ec55d646fb2b2f81590a12