[INFO] fetching crate kalosm-learning 0.4.0... [INFO] checking kalosm-learning-0.4.0 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate kalosm-learning 0.4.0 into /workspace/builds/worker-0-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-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate kalosm-learning 0.4.0 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7321a98ee9e4b24179e308a00f50fdb5dc996a45c9f8d3c26ff5c83f43ed06d7 [INFO] running `Command { std: "docker" "start" "-a" "7321a98ee9e4b24179e308a00f50fdb5dc996a45c9f8d3c26ff5c83f43ed06d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7321a98ee9e4b24179e308a00f50fdb5dc996a45c9f8d3c26ff5c83f43ed06d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7321a98ee9e4b24179e308a00f50fdb5dc996a45c9f8d3c26ff5c83f43ed06d7", kill_on_drop: false }` [INFO] [stdout] 7321a98ee9e4b24179e308a00f50fdb5dc996a45c9f8d3c26ff5c83f43ed06d7 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 181a4f13d5730a58b5b685d872ac9e4de878a7b6387a7a5a12a62f7e1cd3893c [INFO] running `Command { std: "docker" "start" "-a" "181a4f13d5730a58b5b685d872ac9e4de878a7b6387a7a5a12a62f7e1cd3893c", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.5 [INFO] [stderr] Checking reborrow v0.5.5 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Compiling seq-macro v0.3.5 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling serde_json v1.0.134 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking tokio v1.42.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking console v0.15.10 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zip v1.1.4 [INFO] [stderr] Compiling rustls v0.23.20 [INFO] [stderr] Checking miniz_oxide v0.8.2 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling thiserror v2.0.9 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking indicatif v0.17.9 [INFO] [stderr] Checking webpki-roots v0.26.7 [INFO] [stderr] Checking event-listener v5.3.1 [INFO] [stderr] Checking memmap2 v0.9.5 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking event-listener-strategy v0.5.3 [INFO] [stderr] Checking flate2 v1.0.35 [INFO] [stderr] Checking async-lock v3.4.0 [INFO] [stderr] Checking kalosm-model-types v0.4.0 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Compiling synstructure v0.13.1 [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 displaydoc v0.2.5 [INFO] [stderr] Compiling bytemuck_derive v1.8.1 [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 thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures-macro v0.3.31 [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 kalosm-parse-macro v0.4.0 [INFO] [stderr] Compiling kalosm-learning-macro v0.4.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking num_enum v0.7.3 [INFO] [stderr] Checking kalosm-sample v0.4.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking bytemuck v1.21.0 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking dyn-stack v0.10.0 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking pulp v0.18.22 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking serde v1.0.216 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking kalosm-language-model v0.4.0 [INFO] [stderr] Checking gemm-common v0.17.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking gemm-f32 v0.17.1 [INFO] [stderr] Checking gemm-c32 v0.17.1 [INFO] [stderr] Checking gemm-c64 v0.17.1 [INFO] [stderr] Checking gemm-f64 v0.17.1 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking ug v0.0.2 [INFO] [stderr] Checking safetensors v0.4.5 [INFO] [stderr] Checking gemm-f16 v0.17.1 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking gemm v0.17.1 [INFO] [stderr] Checking candle-core v0.8.2 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking ureq v2.12.1 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking hf-hub v0.3.2 [INFO] [stderr] Checking candle-nn v0.8.2 [INFO] [stderr] Checking kalosm-common v0.4.0 [INFO] [stderr] Checking 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[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[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[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[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] 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] [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` (example "classify") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `kalosm-learning` (lib test) due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "181a4f13d5730a58b5b685d872ac9e4de878a7b6387a7a5a12a62f7e1cd3893c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "181a4f13d5730a58b5b685d872ac9e4de878a7b6387a7a5a12a62f7e1cd3893c", kill_on_drop: false }` [INFO] [stdout] 181a4f13d5730a58b5b685d872ac9e4de878a7b6387a7a5a12a62f7e1cd3893c