[INFO] cloning repository https://github.com/lucasavila00/lmlogits [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucasavila00/lmlogits" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasavila00%2Flmlogits", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasavila00%2Flmlogits'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4d8b9736d3dbfa47610b189b43c6f9a0c6287ed4 [INFO] checking lucasavila00/lmlogits against try#2277c63fa464d237b17b68d3b87f9fbb89e58a3e for pr-133570-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasavila00%2Flmlogits" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lucasavila00/lmlogits on toolchain 2277c63fa464d237b17b68d3b87f9fbb89e58a3e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lucasavila00/lmlogits [INFO] finished tweaking git repo https://github.com/lucasavila00/lmlogits [INFO] tweaked toml for git repo https://github.com/lucasavila00/lmlogits written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/lucasavila00/lmlogits 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" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "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-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1edd740d3cd5f97f86e3166e8c91022203b114b2c9c9104864b17b4ff5322dad [INFO] running `Command { std: "docker" "start" "-a" "1edd740d3cd5f97f86e3166e8c91022203b114b2c9c9104864b17b4ff5322dad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1edd740d3cd5f97f86e3166e8c91022203b114b2c9c9104864b17b4ff5322dad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1edd740d3cd5f97f86e3166e8c91022203b114b2c9c9104864b17b4ff5322dad", kill_on_drop: false }` [INFO] [stdout] 1edd740d3cd5f97f86e3166e8c91022203b114b2c9c9104864b17b4ff5322dad [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+2277c63fa464d237b17b68d3b87f9fbb89e58a3e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 160cc1c3dc2d417a8ea591d6695a3b2081d114d89c35e60b06c6d515770a96d2 [INFO] running `Command { std: "docker" "start" "-a" "160cc1c3dc2d417a8ea591d6695a3b2081d114d89c35e60b06c6d515770a96d2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling target-lexicon v0.12.14 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Compiling cc v1.0.94 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking either v1.11.0 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling portable-atomic v1.6.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Compiling pyo3-build-config v0.20.3 [INFO] [stderr] Compiling vob v3.0.3 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling macro_rules_attribute-proc_macro v0.2.0 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Checking indicatif v0.17.8 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling onig_sys v69.8.1 [INFO] [stderr] Compiling esaxx-rs v0.1.10 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking macro_rules_attribute v0.2.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking unicode-normalization-alignments v0.1.12 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Checking unicode_categories v0.1.1 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Compiling pyo3-ffi v0.20.3 [INFO] [stderr] Compiling pyo3 v0.20.3 [INFO] [stderr] Checking rayon-cond v0.3.0 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Compiling darling_core v0.20.8 [INFO] [stderr] Compiling pyo3-macros-backend v0.20.3 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Compiling monostate-impl v0.1.12 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Checking onig v6.4.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling darling_macro v0.20.8 [INFO] [stderr] Compiling pyo3-macros v0.20.3 [INFO] [stderr] Compiling darling v0.20.8 [INFO] [stderr] Compiling derive_builder_core v0.20.0 [INFO] [stderr] Compiling derive_builder_macro v0.20.0 [INFO] [stderr] Checking derive_builder v0.20.0 [INFO] [stderr] Checking packedvec v1.2.4 [INFO] [stderr] Checking monostate v0.1.12 [INFO] [stderr] Checking spm_precompiled v0.1.4 [INFO] [stderr] Checking sparsevec v0.2.0 [INFO] [stderr] Checking cfgrammar v0.13.4 [INFO] [stderr] Checking lrtable v0.13.4 [INFO] [stderr] Checking tokenizers v0.19.1 [INFO] [stderr] Checking lmlogits v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `to_hex_string` is never used [INFO] [stdout] --> src/aici/bytes.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn to_hex_string(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/aici/recognizer.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl> StackRecognizer { [INFO] [stdout] | --------------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `alloc`, `num_set`, `negated`, `as_ptr`, and `set` are never used [INFO] [stdout] --> src/aici/svob.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl SimpleVob { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn alloc(size: usize) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn num_set(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn negated(&self, size: usize) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub unsafe fn as_ptr(&self) -> *const u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn set(&mut self, tok: TokenId, val: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Unknown`, `Padding`, `Separator`, and `BeginningOfSentence` are never constructed [INFO] [stdout] --> src/aici/toktree.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum SpecialToken { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 13 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | Padding, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | Separator, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | BeginningOfSentence, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SpecialToken` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `byte_allowed` is never used [INFO] [stdout] --> src/aici/toktree.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait Recognizer { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 32 | fn byte_allowed(&mut self, byte: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/aici/toktree.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl TokTrie { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn info(&self) -> &TokRxInfo { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn token_set_dbg(&self, ts: &SimpleVob) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | pub fn alloc_logits(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn tokens_dbg(&self, toks: &[u32]) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub fn token_dbg(&self, idx: u32) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn token_str(&self, idx: u32) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | pub fn decode(&self, tokens: &[TokenId]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn decode_str(&self, tokens: &[TokenId]) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | pub fn has_extensions(&self, bytes: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | pub fn max_token_len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | pub fn append_tokens(&self, r: &mut impl Recognizer, ts: &[TokenId]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 16 | impl TokTrie { [INFO] [stdout] | ------- [INFO] [stdout] | | [INFO] [stdout] | `TokTrie` is not local [INFO] [stdout] | `TokTrie` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 31 | impl RegexRecognizer { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | `RegexRecognizer` is not local [INFO] [stdout] | `RegexRecognizer` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 57 | impl YaccRecognizer { [INFO] [stdout] | -------------- [INFO] [stdout] | | [INFO] [stdout] | `YaccRecognizer` is not local [INFO] [stdout] | `YaccRecognizer` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_hex_string` is never used [INFO] [stdout] --> src/aici/bytes.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn to_hex_string(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/aici/recognizer.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl> StackRecognizer { [INFO] [stdout] | --------------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `alloc`, `num_set`, `negated`, `as_ptr`, and `set` are never used [INFO] [stdout] --> src/aici/svob.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl SimpleVob { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn alloc(size: usize) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn num_set(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn negated(&self, size: usize) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub unsafe fn as_ptr(&self) -> *const u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn set(&mut self, tok: TokenId, val: bool) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Unknown`, `Padding`, `Separator`, and `BeginningOfSentence` are never constructed [INFO] [stdout] --> src/aici/toktree.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum SpecialToken { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 13 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | Padding, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | Separator, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | BeginningOfSentence, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SpecialToken` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `byte_allowed` is never used [INFO] [stdout] --> src/aici/toktree.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub trait Recognizer { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 32 | fn byte_allowed(&mut self, byte: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/aici/toktree.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl TokTrie { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn info(&self) -> &TokRxInfo { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn token_set_dbg(&self, ts: &SimpleVob) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | pub fn alloc_logits(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 214 | pub fn tokens_dbg(&self, toks: &[u32]) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub fn token_dbg(&self, idx: u32) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn token_str(&self, idx: u32) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 270 | pub fn decode(&self, tokens: &[TokenId]) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn decode_str(&self, tokens: &[TokenId]) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | pub fn has_extensions(&self, bytes: &[u8]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | pub fn max_token_len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | pub fn append_tokens(&self, r: &mut impl Recognizer, ts: &[TokenId]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 16 | impl TokTrie { [INFO] [stdout] | ------- [INFO] [stdout] | | [INFO] [stdout] | `TokTrie` is not local [INFO] [stdout] | `TokTrie` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 31 | impl RegexRecognizer { [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | `RegexRecognizer` is not local [INFO] [stdout] | `RegexRecognizer` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/lib.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | #[pymethods] [INFO] [stdout] | -^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `PyClassImplCollector` is not local [INFO] [stdout] | `PyClassNewTextSignature` is not local [INFO] [stdout] | move the `impl` block outside of this function `trampoline` and up 4 bodies [INFO] [stdout] 57 | impl YaccRecognizer { [INFO] [stdout] | -------------- [INFO] [stdout] | | [INFO] [stdout] | `YaccRecognizer` is not local [INFO] [stdout] | `YaccRecognizer` is not local [INFO] [stdout] | [INFO] [stdout] = note: the attribute macro `pymethods` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the attribute macro `pymethods` may come from an old version of the `pyo3_macros` crate, try updating your dependency with `cargo update -p pyo3_macros` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.48s [INFO] running `Command { std: "docker" "inspect" "160cc1c3dc2d417a8ea591d6695a3b2081d114d89c35e60b06c6d515770a96d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "160cc1c3dc2d417a8ea591d6695a3b2081d114d89c35e60b06c6d515770a96d2", kill_on_drop: false }` [INFO] [stdout] 160cc1c3dc2d417a8ea591d6695a3b2081d114d89c35e60b06c6d515770a96d2