[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] building lucasavila00/lmlogits against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucasavila00%2Flmlogits" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [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-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lucasavila00/lmlogits on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9c285020a5d3f1c6a9c5017896feb04fe65ac2e074daab3dcf1aa5d176231952 [INFO] running `Command { std: "docker" "start" "-a" "9c285020a5d3f1c6a9c5017896feb04fe65ac2e074daab3dcf1aa5d176231952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c285020a5d3f1c6a9c5017896feb04fe65ac2e074daab3dcf1aa5d176231952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c285020a5d3f1c6a9c5017896feb04fe65ac2e074daab3dcf1aa5d176231952", kill_on_drop: false }` [INFO] [stdout] 9c285020a5d3f1c6a9c5017896feb04fe65ac2e074daab3dcf1aa5d176231952 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dec787522f666d6eb440fea15625e7187bc65be3987e6a0206cfa6605554168d [INFO] running `Command { std: "docker" "start" "-a" "dec787522f666d6eb440fea15625e7187bc65be3987e6a0206cfa6605554168d", 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 target-lexicon v0.12.14 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling cc v1.0.94 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling vob v3.0.3 [INFO] [stderr] Compiling pyo3-build-config v0.20.3 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Compiling portable-atomic v1.6.0 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling onig_sys v69.8.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling esaxx-rs v0.1.10 [INFO] [stderr] Compiling pyo3-ffi v0.20.3 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling console v0.15.8 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling pyo3 v0.20.3 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling darling_core v0.20.8 [INFO] [stderr] Compiling pyo3-macros-backend v0.20.3 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Compiling macro_rules_attribute-proc_macro v0.2.0 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling macro_rules_attribute v0.2.0 [INFO] [stderr] Compiling indicatif v0.17.8 [INFO] [stderr] Compiling onig v6.4.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling monostate-impl v0.1.12 [INFO] [stderr] Compiling rayon-cond v0.3.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling darling_macro v0.20.8 [INFO] [stderr] Compiling unicode-normalization-alignments v0.1.12 [INFO] [stderr] Compiling pyo3-macros v0.20.3 [INFO] [stderr] Compiling darling v0.20.8 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling derive_builder_core v0.20.0 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling unindent v0.2.3 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling derive_builder_macro v0.20.0 [INFO] [stderr] Compiling derive_builder v0.20.0 [INFO] [stderr] Compiling packedvec v1.2.4 [INFO] [stderr] Compiling monostate v0.1.12 [INFO] [stderr] Compiling spm_precompiled v0.1.4 [INFO] [stderr] Compiling sparsevec v0.2.0 [INFO] [stderr] Compiling cfgrammar v0.13.4 [INFO] [stderr] Compiling tokenizers v0.19.1 [INFO] [stderr] Compiling lrtable v0.13.4 [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/aici/toktree.rs:380:26 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn node_children(&self, n: &TrieNode) -> NodeChildren { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 380 | pub fn node_children(&self, n: &TrieNode) -> NodeChildren<'_> { [INFO] [stdout] | ++++ [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: 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: 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: 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: 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: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 1m 44s [INFO] running `Command { std: "docker" "inspect" "dec787522f666d6eb440fea15625e7187bc65be3987e6a0206cfa6605554168d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dec787522f666d6eb440fea15625e7187bc65be3987e6a0206cfa6605554168d", kill_on_drop: false }` [INFO] [stdout] dec787522f666d6eb440fea15625e7187bc65be3987e6a0206cfa6605554168d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6e06734b63aa44071502ff37c5178d7cf6882d46f7d37b1ef8f8cb5604d52b9a [INFO] running `Command { std: "docker" "start" "-a" "6e06734b63aa44071502ff37c5178d7cf6882d46f7d37b1ef8f8cb5604d52b9a", kill_on_drop: false }` [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/aici/toktree.rs:380:26 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn node_children(&self, n: &TrieNode) -> NodeChildren { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 380 | pub fn node_children(&self, n: &TrieNode) -> NodeChildren<'_> { [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: 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.27s [INFO] running `Command { std: "docker" "inspect" "6e06734b63aa44071502ff37c5178d7cf6882d46f7d37b1ef8f8cb5604d52b9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e06734b63aa44071502ff37c5178d7cf6882d46f7d37b1ef8f8cb5604d52b9a", kill_on_drop: false }` [INFO] [stdout] 6e06734b63aa44071502ff37c5178d7cf6882d46f7d37b1ef8f8cb5604d52b9a