[INFO] cloning repository https://github.com/jtlizzz/funcode
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jtlizzz/funcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjtlizzz%2Ffuncode", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjtlizzz%2Ffuncode'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9ff5b9cc871e3f97dfb39732a5d7d5e26bbbf8d5
[INFO] testing jtlizzz/funcode against 1.97.0-beta.6 for beta-1.98-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjtlizzz%2Ffuncode" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/jtlizzz/funcode
[INFO] finished tweaking git repo https://github.com/jtlizzz/funcode
[INFO] tweaked toml for git repo https://github.com/jtlizzz/funcode written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jtlizzz/funcode on toolchain 1.97.0-beta.6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/jtlizzz/funcode 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" "+1.97.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tokio-macros v2.7.0
[INFO] [stderr]   Downloaded instability v0.3.12
[INFO] [stderr]   Downloaded zerofrom v0.1.7
[INFO] [stderr]   Downloaded unicode-truncate v1.1.0
[INFO] [stderr]   Downloaded globset v0.4.18
[INFO] [stderr]   Downloaded cassowary v0.3.0
[INFO] [stderr]   Downloaded wasm-bindgen-shared v0.2.118
[INFO] [stderr]   Downloaded secrecy v0.10.3
[INFO] [stderr]   Downloaded wasm-bindgen-futures v0.4.68
[INFO] [stderr]   Downloaded wasm-bindgen-macro v0.2.118
[INFO] [stderr]   Downloaded derive_builder_macro v0.20.2
[INFO] [stderr]   Downloaded bitflags v2.11.1
[INFO] [stderr]   Downloaded reqwest-eventsource v0.6.0
[INFO] [stderr]   Downloaded async-openai-macros v0.1.1
[INFO] [stderr]   Downloaded yoke v0.8.2
[INFO] [stderr]   Downloaded derive_builder_core v0.20.2
[INFO] [stderr]   Downloaded ignore v0.4.25
[INFO] [stderr]   Downloaded backoff v0.4.0
[INFO] [stderr]   Downloaded derive_builder v0.20.2
[INFO] [stderr]   Downloaded compact_str v0.8.1
[INFO] [stderr]   Downloaded wasm-bindgen-macro-support v0.2.118
[INFO] [stderr]   Downloaded wasm-bindgen v0.2.118
[INFO] [stderr]   Downloaded wit-bindgen v0.57.1
[INFO] [stderr]   Downloaded js-sys v0.3.95
[INFO] [stderr]   Downloaded rustls-webpki v0.103.12
[INFO] [stderr]   Downloaded cc v1.2.60
[INFO] [stderr]   Downloaded rand v0.8.6
[INFO] [stderr]   Downloaded rand v0.9.4
[INFO] [stderr]   Downloaded crossterm v0.28.1
[INFO] [stderr]   Downloaded wasip2 v1.0.3+wasi-0.2.9
[INFO] [stderr]   Downloaded iri-string v0.7.12
[INFO] [stderr]   Downloaded unicode-width v0.2.0
[INFO] [stderr]   Downloaded hyper v1.9.0
[INFO] [stderr]   Downloaded async-openai v0.35.0
[INFO] [stderr]   Downloaded bstr v1.12.1
[INFO] [stderr]   Downloaded rustix v0.38.44
[INFO] [stderr]   Downloaded rustls v0.23.38
[INFO] [stderr]   Downloaded ratatui v0.29.0
[INFO] [stderr]   Downloaded web-sys v0.3.95
[INFO] [stderr]   Downloaded libc v0.2.185
[INFO] [stderr]   Downloaded tokio v1.52.1
[INFO] [stderr]   Downloaded linux-raw-sys v0.4.15
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629
[INFO] running `Command { std: "docker" "start" "4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling unicode-ident v1.0.24
[INFO] [stderr]    Compiling quote v1.0.45
[INFO] [stderr]    Compiling libc v0.2.185
[INFO] [stderr]    Compiling cfg-if v1.0.4
[INFO] [stderr]    Compiling futures-core v0.3.32
[INFO] [stderr]    Compiling memchr v2.8.0
[INFO] [stderr]    Compiling log v0.4.29
[INFO] [stderr]    Compiling pin-project-lite v0.2.17
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]    Compiling bytes v1.11.1
[INFO] [stderr]    Compiling itoa v1.0.18
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling futures-sink v0.3.32
[INFO] [stderr]    Compiling find-msvc-tools v0.1.9
[INFO] [stderr]    Compiling futures-channel v0.3.32
[INFO] [stderr]    Compiling futures-task v0.3.32
[INFO] [stderr]    Compiling cc v1.2.60
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]    Compiling futures-io v0.3.32
[INFO] [stderr]    Compiling writeable v0.6.3
[INFO] [stderr]    Compiling litemap v0.8.2
[INFO] [stderr]    Compiling zeroize v1.8.2
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling http v1.4.0
[INFO] [stderr]    Compiling zerocopy v0.8.48
[INFO] [stderr]    Compiling once_cell v1.21.4
[INFO] [stderr]    Compiling icu_properties_data v2.2.0
[INFO] [stderr]    Compiling icu_normalizer_data v2.2.0
[INFO] [stderr]    Compiling rustls-pki-types v1.14.0
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling percent-encoding v2.3.2
[INFO] [stderr]    Compiling bitflags v2.11.1
[INFO] [stderr]    Compiling errno v0.3.14
[INFO] [stderr]    Compiling mio v1.2.0
[INFO] [stderr]    Compiling signal-hook-registry v1.4.8
[INFO] [stderr]    Compiling socket2 v0.6.3
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling rustversion v1.0.22
[INFO] [stderr]    Compiling zmij v1.0.21
[INFO] [stderr]    Compiling fnv v1.0.7
[INFO] [stderr]    Compiling rustls v0.23.38
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling ryu v1.0.23
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling atomic-waker v1.1.2
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling unicase v2.9.0
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling sync_wrapper v1.0.2
[INFO] [stderr]    Compiling openssl-probe v0.2.1
[INFO] [stderr]    Compiling tower-layer v0.3.3
[INFO] [stderr]    Compiling ipnet v2.12.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling signal-hook v0.3.18
[INFO] [stderr]    Compiling rustls-native-certs v0.8.3
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling iri-string v0.7.12
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling rustix v0.38.44
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling rand_core v0.9.5
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling aho-corasick v1.1.4
[INFO] [stderr]    Compiling linux-raw-sys v0.4.15
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]    Compiling heck v0.5.0
[INFO] [stderr]    Compiling allocator-api2 v0.2.21
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling darling_core v0.20.11
[INFO] [stderr]    Compiling darling_core v0.23.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rustls-webpki v0.103.12
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]    Compiling regex-syntax v0.8.10
[INFO] [stderr]    Compiling instability v0.3.12
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling paste v1.0.15
[INFO] [stderr]    Compiling itertools v0.13.0
[INFO] [stderr]    Compiling zerofrom-derive v0.1.7
[INFO] [stderr]    Compiling yoke-derive v0.8.2
[INFO] [stderr]    Compiling zerovec-derive v0.11.3
[INFO] [stderr]    Compiling zerofrom v0.1.7
[INFO] [stderr]    Compiling tokio-macros v2.7.0
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling yoke v0.8.2
[INFO] [stderr]    Compiling futures-macro v0.3.32
[INFO] [stderr]    Compiling zerovec v0.11.6
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling tokio v1.52.1
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling zerotrie v0.2.4
[INFO] [stderr]    Compiling darling_macro v0.20.11
[INFO] [stderr]    Compiling darling v0.20.11
[INFO] [stderr]    Compiling futures-util v0.3.32
[INFO] [stderr]    Compiling derive_builder_core v0.20.2
[INFO] [stderr]    Compiling darling_macro v0.23.0
[INFO] [stderr]    Compiling tinystr v0.8.3
[INFO] [stderr]    Compiling potential_utf v0.1.5
[INFO] [stderr]    Compiling icu_collections v2.2.0
[INFO] [stderr]    Compiling icu_locale_core v2.2.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling derive_builder_macro v0.20.2
[INFO] [stderr]    Compiling darling v0.23.0
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling icu_provider v2.2.0
[INFO] [stderr]    Compiling icu_properties v2.2.0
[INFO] [stderr]    Compiling icu_normalizer v2.2.0
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling strum_macros v0.26.4
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling futures-executor v0.3.32
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling rand v0.8.6
[INFO] [stderr]    Compiling eventsource-stream v0.2.3
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling serde_derive_internals v0.29.1
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling signal-hook-mio v0.2.5
[INFO] [stderr]    Compiling castaway v0.2.4
[INFO] [stderr]    Compiling bstr v1.12.1
[INFO] [stderr]    Compiling instant v0.1.13
[INFO] [stderr]    Compiling schemars v0.8.22
[INFO] [stderr]    Compiling indoc v2.0.7
[INFO] [stderr]    Compiling futures-timer v3.0.3
[INFO] [stderr]    Compiling hyper v1.9.0
[INFO] [stderr]    Compiling tokio-rustls v0.26.4
[INFO] [stderr]    Compiling tower v0.5.3
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling unicode-width v0.1.14
[INFO] [stderr]    Compiling unicode-segmentation v1.13.2
[INFO] [stderr]    Compiling walkdir v2.5.0
[INFO] [stderr]    Compiling globset v0.4.18
[INFO] [stderr]    Compiling schemars_derive v0.8.22
[INFO] [stderr]    Compiling tower-http v0.6.8
[INFO] [stderr]    Compiling hyper-util v0.1.20
[INFO] [stderr]    Compiling unicode-truncate v1.1.0
[INFO] [stderr]    Compiling crossterm v0.28.1
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]    Compiling backoff v0.4.0
[INFO] [stderr]    Compiling compact_str v0.8.1
[INFO] [stderr]    Compiling crossbeam-deque v0.8.6
[INFO] [stderr]    Compiling strum v0.26.3
[INFO] [stderr]    Compiling rand v0.9.4
[INFO] [stderr]    Compiling secrecy v0.10.3
[INFO] [stderr]    Compiling futures v0.3.32
[INFO] [stderr]    Compiling lru v0.12.5
[INFO] [stderr]    Compiling derive_builder v0.20.2
[INFO] [stderr]    Compiling async-openai-macros v0.1.1
[INFO] [stderr]    Compiling unicode-width v0.2.0
[INFO] [stderr]    Compiling hyper-rustls v0.27.9
[INFO] [stderr]    Compiling cassowary v0.3.0
[INFO] [stderr]    Compiling dyn-clone v1.0.20
[INFO] [stderr]    Compiling reqwest v0.12.28
[INFO] [stderr]    Compiling ignore v0.4.25
[INFO] [stderr]    Compiling ratatui v0.29.0
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling dotenv v0.15.0
[INFO] [stderr]    Compiling reqwest-eventsource v0.6.0
[INFO] [stderr]    Compiling async-openai v0.35.0
[INFO] [stderr]    Compiling funcode v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: methods `session` and `submit` are never used
[INFO] [stdout]    --> src/agent.rs:153:8
[INFO] [stdout]     |
[INFO] [stdout] 146 | impl Agent {
[INFO] [stdout]     | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 153 |     fn session(&self) -> &Session {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 161 |     async fn submit(&mut self, op: Op) -> TurnOutcome {
[INFO] [stdout]     |              ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Shutdown` is never constructed
[INFO] [stdout]   --> src/agent.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 49 | pub enum Op {
[INFO] [stdout]    |          -- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 53 |     Shutdown,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `user_turn` is never used
[INFO] [stdout]   --> src/agent.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 56 | impl Op {
[INFO] [stdout]    | ------- associated function in this implementation
[INFO] [stdout] 57 |     /// Create a user turn operation without a return channel.
[INFO] [stdout] 58 |     pub fn user_turn(text: impl Into<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `shutdown` is never used
[INFO] [stdout]    --> src/agent.rs:124:18
[INFO] [stdout]     |
[INFO] [stdout]  95 | impl AgentHandle {
[INFO] [stdout]     | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 124 |     pub async fn shutdown(&self) -> Result<(), AgentHandleError> {
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `session` and `submit` are never used
[INFO] [stdout]    --> src/agent.rs:153:8
[INFO] [stdout]     |
[INFO] [stdout] 146 | impl Agent {
[INFO] [stdout]     | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 153 |     fn session(&self) -> &Session {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 161 |     async fn submit(&mut self, op: Op) -> TurnOutcome {
[INFO] [stdout]     |              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ApprovalRequired` is never constructed
[INFO] [stdout]   --> src/event.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub enum Event {
[INFO] [stdout]    |          ----- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 35 |     ApprovalRequired {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `FsError` is never used
[INFO] [stdout]   --> src/fs.rs:14:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub enum FsError {
[INFO] [stdout]    |          ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FileEntry` is never constructed
[INFO] [stdout]   --> src/fs.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub struct FileEntry {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FileSystem` is never constructed
[INFO] [stdout]   --> src/fs.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub struct FileSystem;
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `read_file`, `write_file`, `exists`, `list_dir`, and `create_dir_all` are never used
[INFO] [stdout]   --> src/fs.rs:48:18
[INFO] [stdout]    |
[INFO] [stdout] 46 | impl FileSystem {
[INFO] [stdout]    | --------------- associated functions in this implementation
[INFO] [stdout] 47 |     /// 读取文本文件的全部内容。
[INFO] [stdout] 48 |     pub async fn read_file(path: &Path) -> Result<String, FsError> {
[INFO] [stdout]    |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     pub async fn write_file(path: &Path, content: &str) -> Result<(), FsError> {
[INFO] [stdout]    |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 70 |     pub async fn exists(path: &Path) -> bool {
[INFO] [stdout]    |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub async fn list_dir(path: &Path) -> Result<Vec<FileEntry>, FsError> {
[INFO] [stdout]    |                  ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 91 |     pub async fn create_dir_all(path: &Path) -> Result<(), FsError> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `items`, `len`, `is_empty`, `total_tokens`, and `clear` are never used
[INFO] [stdout]    --> src/session.rs:78:12
[INFO] [stdout]     |
[INFO] [stdout]  55 | impl Session {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  78 |     pub fn items(&self) -> &[Item] {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  83 |     pub fn len(&self) -> usize {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  88 |     pub fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 127 |     pub fn total_tokens(&self) -> u32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 162 |     pub fn clear(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `cancel` is never read
[INFO] [stdout]   --> src/tools.rs:62:9
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub struct ToolContext {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 62 |     pub cancel: CancellationToken,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ToolContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get`, `contains`, `len`, `is_empty`, and `execute` are never used
[INFO] [stdout]    --> src/tools.rs:163:12
[INFO] [stdout]     |
[INFO] [stdout] 140 | impl ToolRegistry {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 163 |     pub fn get(&self, name: &str) -> Option<&dyn Tool> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 168 |     pub fn contains(&self, name: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 173 |     pub fn len(&self) -> usize {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 178 |     pub fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 191 |     pub async fn execute(
[INFO] [stdout]     |                  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `description` is never read
[INFO] [stdout]    --> src/tools.rs:513:9
[INFO] [stdout]     |
[INFO] [stdout] 510 | pub struct BashInput {
[INFO] [stdout]     |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 513 |     pub description: String,
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `BashInput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/tui.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 21 |     Resize(u16, u16),
[INFO] [stdout]    |     ------ ^^^  ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 21 -     Resize(u16, u16),
[INFO] [stdout] 21 +     Resize((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 47s
[INFO] running `Command { std: "docker" "inspect" "4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling funcode v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: methods `session` and `submit` are never used
[INFO] [stdout]    --> src/agent.rs:153:8
[INFO] [stdout]     |
[INFO] [stdout] 146 | impl Agent {
[INFO] [stdout]     | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 153 |     fn session(&self) -> &Session {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 161 |     async fn submit(&mut self, op: Op) -> TurnOutcome {
[INFO] [stdout]     |              ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Shutdown` is never constructed
[INFO] [stdout]   --> src/agent.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 49 | pub enum Op {
[INFO] [stdout]    |          -- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 53 |     Shutdown,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `user_turn` is never used
[INFO] [stdout]   --> src/agent.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 56 | impl Op {
[INFO] [stdout]    | ------- associated function in this implementation
[INFO] [stdout] 57 |     /// Create a user turn operation without a return channel.
[INFO] [stdout] 58 |     pub fn user_turn(text: impl Into<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `shutdown` is never used
[INFO] [stdout]    --> src/agent.rs:124:18
[INFO] [stdout]     |
[INFO] [stdout]  95 | impl AgentHandle {
[INFO] [stdout]     | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 124 |     pub async fn shutdown(&self) -> Result<(), AgentHandleError> {
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `session` and `submit` are never used
[INFO] [stdout]    --> src/agent.rs:153:8
[INFO] [stdout]     |
[INFO] [stdout] 146 | impl Agent {
[INFO] [stdout]     | ---------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 153 |     fn session(&self) -> &Session {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 161 |     async fn submit(&mut self, op: Op) -> TurnOutcome {
[INFO] [stdout]     |              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ApprovalRequired` is never constructed
[INFO] [stdout]   --> src/event.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub enum Event {
[INFO] [stdout]    |          ----- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 35 |     ApprovalRequired {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `FsError` is never used
[INFO] [stdout]   --> src/fs.rs:14:10
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub enum FsError {
[INFO] [stdout]    |          ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FileEntry` is never constructed
[INFO] [stdout]   --> src/fs.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub struct FileEntry {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FileSystem` is never constructed
[INFO] [stdout]   --> src/fs.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub struct FileSystem;
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `read_file`, `write_file`, `exists`, `list_dir`, and `create_dir_all` are never used
[INFO] [stdout]   --> src/fs.rs:48:18
[INFO] [stdout]    |
[INFO] [stdout] 46 | impl FileSystem {
[INFO] [stdout]    | --------------- associated functions in this implementation
[INFO] [stdout] 47 |     /// 读取文本文件的全部内容。
[INFO] [stdout] 48 |     pub async fn read_file(path: &Path) -> Result<String, FsError> {
[INFO] [stdout]    |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 62 |     pub async fn write_file(path: &Path, content: &str) -> Result<(), FsError> {
[INFO] [stdout]    |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 70 |     pub async fn exists(path: &Path) -> bool {
[INFO] [stdout]    |                  ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub async fn list_dir(path: &Path) -> Result<Vec<FileEntry>, FsError> {
[INFO] [stdout]    |                  ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 91 |     pub async fn create_dir_all(path: &Path) -> Result<(), FsError> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `items`, `len`, `is_empty`, `total_tokens`, and `clear` are never used
[INFO] [stdout]    --> src/session.rs:78:12
[INFO] [stdout]     |
[INFO] [stdout]  55 | impl Session {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  78 |     pub fn items(&self) -> &[Item] {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  83 |     pub fn len(&self) -> usize {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout]  88 |     pub fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 127 |     pub fn total_tokens(&self) -> u32 {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 162 |     pub fn clear(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `cancel` is never read
[INFO] [stdout]   --> src/tools.rs:62:9
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub struct ToolContext {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 62 |     pub cancel: CancellationToken,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ToolContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get`, `contains`, `len`, `is_empty`, and `execute` are never used
[INFO] [stdout]    --> src/tools.rs:163:12
[INFO] [stdout]     |
[INFO] [stdout] 140 | impl ToolRegistry {
[INFO] [stdout]     | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 163 |     pub fn get(&self, name: &str) -> Option<&dyn Tool> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 168 |     pub fn contains(&self, name: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 173 |     pub fn len(&self) -> usize {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 178 |     pub fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 191 |     pub async fn execute(
[INFO] [stdout]     |                  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `description` is never read
[INFO] [stdout]    --> src/tools.rs:513:9
[INFO] [stdout]     |
[INFO] [stdout] 510 | pub struct BashInput {
[INFO] [stdout]     |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 513 |     pub description: String,
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `BashInput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/tui.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 21 |     Resize(u16, u16),
[INFO] [stdout]    |     ------ ^^^  ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 21 -     Resize(u16, u16),
[INFO] [stdout] 21 +     Resize((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `message` is never read
[INFO] [stdout]    --> src/tools.rs:608:9
[INFO] [stdout]     |
[INFO] [stdout] 607 |     struct EchoInput {
[INFO] [stdout]     |            --------- field in this struct
[INFO] [stdout] 608 |         message: String,
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `EchoInput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `message` is never read
[INFO] [stdout]    --> src/tools.rs:818:13
[INFO] [stdout]     |
[INFO] [stdout] 817 |         struct Args {
[INFO] [stdout]     |                ---- field in this struct
[INFO] [stdout] 818 |             message: String,
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Args` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ApprovalRequired` is never constructed
[INFO] [stdout]   --> src/event.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub enum Event {
[INFO] [stdout]    |          ----- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 35 |     ApprovalRequired {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `path` and `len` are never read
[INFO] [stdout]   --> src/fs.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub struct FileEntry {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 34 |     pub path: PathBuf,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub len: u64,
[INFO] [stdout]    |         ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `FileEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `description` is never read
[INFO] [stdout]    --> src/tools.rs:513:9
[INFO] [stdout]     |
[INFO] [stdout] 510 | pub struct BashInput {
[INFO] [stdout]     |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 513 |     pub description: String,
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `BashInput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `message` is never read
[INFO] [stdout]    --> src/tools.rs:608:9
[INFO] [stdout]     |
[INFO] [stdout] 607 |     struct EchoInput {
[INFO] [stdout]     |            --------- field in this struct
[INFO] [stdout] 608 |         message: String,
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `EchoInput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `message` is never read
[INFO] [stdout]    --> src/tools.rs:818:13
[INFO] [stdout]     |
[INFO] [stdout] 817 |         struct Args {
[INFO] [stdout]     |                ---- field in this struct
[INFO] [stdout] 818 |             message: String,
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Args` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/tui.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 21 |     Resize(u16, u16),
[INFO] [stdout]    |     ------ ^^^  ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 21 -     Resize(u16, u16),
[INFO] [stdout] 21 +     Resize((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 17.42s
[INFO] running `Command { std: "docker" "inspect" "4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] warning: methods `session` and `submit` are never used
[INFO] [stderr]    --> src/agent.rs:153:8
[INFO] [stderr]     |
[INFO] [stderr] 146 | impl Agent {
[INFO] [stderr]     | ---------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 153 |     fn session(&self) -> &Session {
[INFO] [stderr]     |        ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 161 |     async fn submit(&mut self, op: Op) -> TurnOutcome {
[INFO] [stderr]     |              ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `message` is never read
[INFO] [stderr]    --> src/tools.rs:608:9
[INFO] [stderr]     |
[INFO] [stderr] 607 |     struct EchoInput {
[INFO] [stderr]     |            --------- field in this struct
[INFO] [stderr] 608 |         message: String,
[INFO] [stderr]     |         ^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `EchoInput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `message` is never read
[INFO] [stderr]    --> src/tools.rs:818:13
[INFO] [stderr]     |
[INFO] [stderr] 817 |         struct Args {
[INFO] [stderr]     |                ---- field in this struct
[INFO] [stderr] 818 |             message: String,
[INFO] [stderr]     |             ^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `Args` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: `funcode` (lib) generated 1 warning
[INFO] [stderr] warning: `funcode` (lib test) generated 2 warnings
[INFO] [stderr] warning: variant `Shutdown` is never constructed
[INFO] [stderr]   --> src/agent.rs:53:5
[INFO] [stderr]    |
[INFO] [stderr] 49 | pub enum Op {
[INFO] [stderr]    |          -- variant in this enum
[INFO] [stderr] ...
[INFO] [stderr] 53 |     Shutdown,
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `user_turn` is never used
[INFO] [stderr]   --> src/agent.rs:58:12
[INFO] [stderr]    |
[INFO] [stderr] 56 | impl Op {
[INFO] [stderr]    | ------- associated function in this implementation
[INFO] [stderr] 57 |     /// Create a user turn operation without a return channel.
[INFO] [stderr] 58 |     pub fn user_turn(text: impl Into<String>) -> Self {
[INFO] [stderr]    |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `shutdown` is never used
[INFO] [stderr]    --> src/agent.rs:124:18
[INFO] [stderr]     |
[INFO] [stderr]  95 | impl AgentHandle {
[INFO] [stderr]     | ---------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 124 |     pub async fn shutdown(&self) -> Result<(), AgentHandleError> {
[INFO] [stderr]     |                  ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `session` and `submit` are never used
[INFO] [stderr]    --> src/agent.rs:153:8
[INFO] [stderr]     |
[INFO] [stderr] 146 | impl Agent {
[INFO] [stderr]     | ---------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 153 |     fn session(&self) -> &Session {
[INFO] [stderr]     |        ^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 161 |     async fn submit(&mut self, op: Op) -> TurnOutcome {
[INFO] [stderr]     |              ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variant `ApprovalRequired` is never constructed
[INFO] [stderr]   --> src/event.rs:35:5
[INFO] [stderr]    |
[INFO] [stderr]  9 | pub enum Event {
[INFO] [stderr]    |          ----- variant in this enum
[INFO] [stderr] ...
[INFO] [stderr] 35 |     ApprovalRequired {
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: enum `FsError` is never used
[INFO] [stderr]   --> src/fs.rs:14:10
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub enum FsError {
[INFO] [stderr]    |          ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `FileEntry` is never constructed
[INFO] [stderr]   --> src/fs.rs:30:12
[INFO] [stderr]    |
[INFO] [stderr] 30 | pub struct FileEntry {
[INFO] [stderr]    |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `FileSystem` is never constructed
[INFO] [stderr]   --> src/fs.rs:44:12
[INFO] [stderr]    |
[INFO] [stderr] 44 | pub struct FileSystem;
[INFO] [stderr]    |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated functions `read_file`, `write_file`, `exists`, `list_dir`, and `create_dir_all` are never used
[INFO] [stderr]   --> src/fs.rs:48:18
[INFO] [stderr]    |
[INFO] [stderr] 46 | impl FileSystem {
[INFO] [stderr]    | --------------- associated functions in this implementation
[INFO] [stderr] 47 |     /// 读取文本文件的全部内容。
[INFO] [stderr] 48 |     pub async fn read_file(path: &Path) -> Result<String, FsError> {
[INFO] [stderr]    |                  ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 62 |     pub async fn write_file(path: &Path, content: &str) -> Result<(), FsError> {
[INFO] [stderr]    |                  ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 70 |     pub async fn exists(path: &Path) -> bool {
[INFO] [stderr]    |                  ^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 75 |     pub async fn list_dir(path: &Path) -> Result<Vec<FileEntry>, FsError> {
[INFO] [stderr]    |                  ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 91 |     pub async fn create_dir_all(path: &Path) -> Result<(), FsError> {
[INFO] [stderr]    |                  ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `items`, `len`, `is_empty`, `total_tokens`, and `clear` are never used
[INFO] [stderr]    --> src/session.rs:78:12
[INFO] [stderr]     |
[INFO] [stderr]  55 | impl Session {
[INFO] [stderr]     | ------------ methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr]  78 |     pub fn items(&self) -> &[Item] {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  83 |     pub fn len(&self) -> usize {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] ...
[INFO] [stderr]  88 |     pub fn is_empty(&self) -> bool {
[INFO] [stderr]     |            ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 127 |     pub fn total_tokens(&self) -> u32 {
[INFO] [stderr]     |            ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 162 |     pub fn clear(&mut self) {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `cancel` is never read
[INFO] [stderr]   --> src/tools.rs:62:9
[INFO] [stderr]    |
[INFO] [stderr] 61 | pub struct ToolContext {
[INFO] [stderr]    |            ----------- field in this struct
[INFO] [stderr] 62 |     pub cancel: CancellationToken,
[INFO] [stderr]    |         ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `ToolContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: methods `get`, `contains`, `len`, `is_empty`, and `execute` are never used
[INFO] [stderr]    --> src/tools.rs:163:12
[INFO] [stderr]     |
[INFO] [stderr] 140 | impl ToolRegistry {
[INFO] [stderr]     | ----------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 163 |     pub fn get(&self, name: &str) -> Option<&dyn Tool> {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 168 |     pub fn contains(&self, name: &str) -> bool {
[INFO] [stderr]     |            ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 173 |     pub fn len(&self) -> usize {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 178 |     pub fn is_empty(&self) -> bool {
[INFO] [stderr]     |            ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 191 |     pub async fn execute(
[INFO] [stderr]     |                  ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `description` is never read
[INFO] [stderr]    --> src/tools.rs:513:9
[INFO] [stderr]     |
[INFO] [stderr] 510 | pub struct BashInput {
[INFO] [stderr]     |            --------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 513 |     pub description: String,
[INFO] [stderr]     |         ^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `BashInput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: fields `0` and `1` are never read
[INFO] [stderr]   --> src/tui.rs:21:12
[INFO] [stderr]    |
[INFO] [stderr] 21 |     Resize(u16, u16),
[INFO] [stderr]    |     ------ ^^^  ^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     fields in this variant
[INFO] [stderr]    |
[INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stderr]    |
[INFO] [stderr] 21 -     Resize(u16, u16),
[INFO] [stderr] 21 +     Resize((), ()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: variant `ApprovalRequired` is never constructed
[INFO] [stderr]   --> src/event.rs:35:5
[INFO] [stderr]    |
[INFO] [stderr]  9 | pub enum Event {
[INFO] [stderr]    |          ----- variant in this enum
[INFO] [stderr] ...
[INFO] [stderr] 35 |     ApprovalRequired {
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: fields `path` and `len` are never read
[INFO] [stderr]   --> src/fs.rs:34:9
[INFO] [stderr]    |
[INFO] [stderr] 30 | pub struct FileEntry {
[INFO] [stderr]    |            --------- fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 34 |     pub path: PathBuf,
[INFO] [stderr]    |         ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 38 |     pub len: u64,
[INFO] [stderr]    |         ^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `FileEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: field `message` is never read
[INFO] [stderr]    --> src/tools.rs:608:9
[INFO] [stderr]     |
[INFO] [stderr] 607 |     struct EchoInput {
[INFO] [stderr]     |            --------- field in this struct
[INFO] [stderr] 608 |         message: String,
[INFO] [stderr]     |         ^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `EchoInput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: `funcode` (bin "funcode") generated 14 warnings
[INFO] [stderr] warning: `funcode` (bin "funcode" test) generated 6 warnings (3 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/funcode-1a68f75d8e94e187)
[INFO] [stdout] 
[INFO] [stdout] running 46 tests
[INFO] [stdout] test agent::tests::cancel_token_works ... ok
[INFO] [stdout] test agent::tests::agent_handle_user_turn_completes ... ok
[INFO] [stdout] test agent::tests::text_only_turn_completes ... ok
[INFO] [stdout] test agent::tests::max_turns_limits_loop ... ok
[INFO] [stdout] test agent::tests::tool_execution_and_result_pushed ... ok
[INFO] [stdout] test model::tests::build_request_with_tool_calls ... ok
[INFO] [stdout] test model::tests::create_items ... ok
[INFO] [stdout] test model::tests::create_tool_result ... ok
[INFO] [stdout] test model::tests::create_text_items ... ok
[INFO] [stdout] test model::tests::parse_response_with_text_and_tool_call ... ok
[INFO] [stdout] test model::tests::model_delegates_to_provider ... ok
[INFO] [stdout] test session::tests::build_request_does_not_mutate_session ... ok
[INFO] [stdout] test session::tests::build_request_empty_tools ... ok
[INFO] [stdout] test session::tests::build_request_includes_system_prompt ... ok
[INFO] [stdout] test session::tests::build_request_includes_tools ... ok
[INFO] [stdout] test session::tests::build_request_prepends_system_to_history ... ok
[INFO] [stdout] test session::tests::clear_resets_history_but_keeps_prompt ... ok
[INFO] [stdout] test session::tests::new_session_is_empty ... ok
[INFO] [stdout] test session::tests::push_and_read_items ... ok
[INFO] [stdout] test session::tests::record_usage_saturates ... ok
[INFO] [stdout] test session::tests::record_usage_with_total ... ok
[INFO] [stdout] test session::tests::record_usage_without_total_sums_components ... ok
[INFO] [stdout] test session::tests::simulate_agent_turn_with_tool_call ... ok
[INFO] [stdout] test session::tests::truncate_keeps_last_user_item ... ok
[INFO] [stdout] test session::tests::truncate_noop_when_within_budget ... ok
[INFO] [stdout] test session::tests::truncate_removes_oldest_items ... ok
[INFO] [stdout] test tools::tests::execute_existing_tool ... ok
[INFO] [stdout] test model::tests::response_stream_delegates_to_inner_stream ... ok
[INFO] [stdout] test tools::tests::execute_failing_tool_returns_error ... ok
[INFO] [stdout] test tools::tests::execute_passes_tool_context_to_tool ... ok
[INFO] [stdout] test tools::tests::execute_tool_with_invalid_arguments ... ok
[INFO] [stdout] test tools::tests::execute_unknown_tool_returns_error ... ok
[INFO] [stdout] test tools::tests::file_edit_tool_parameters ... ok
[INFO] [stdout] test tools::tests::file_read_tool_parameters ... ok
[INFO] [stdout] test tools::tests::parse_arguments_invalid_json ... ok
[INFO] [stdout] test tools::tests::file_write_tool_parameters ... ok
[INFO] [stdout] test tools::tests::parse_arguments_valid_json ... ok
[INFO] [stdout] test tools::tests::register_and_lookup_tool ... ok
[INFO] [stdout] test tools::tests::register_overwrites_same_name ... ok
[INFO] [stdout] test tools::tests::specs_collects_all_tool_definitions ... ok
[INFO] [stdout] test agent::tests::agent_handle_rejects_after_loop_closes ... ok
[INFO] [stdout] test agent::tests::bus_events_for_tool_execution ... ok
[INFO] [stdout] test agent::tests::eof_without_terminal_event_reports_protocol_error ... ok
[INFO] [stdout] test agent::tests::buffered_message_done_wins_over_late_cancel ... ok
[INFO] [stdout] test agent::tests::handle_interrupt_cancels_running_turn ... ok
[INFO] [stdout] test agent::tests::mid_stream_interrupt_skips_session_push ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 46 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.52s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 54 tests
[INFO] [stdout] test agent::tests::cancel_token_works ... ok
[INFO] [stdout] test agent::tests::agent_handle_user_turn_completes ... ok
[INFO] [stdout] test agent::tests::text_only_turn_completes ... ok
[INFO] [stdout] test agent::tests::max_turns_limits_loop ... ok
[INFO] [stdout] test agent::tests::tool_execution_and_result_pushed ... ok
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/funcode-ba0203ee8b3259b7)
[INFO] [stdout] test fs::tests::create_dir_all_idempotent ... ok
[INFO] [stdout] test fs::tests::exists_check ... ok
[INFO] [stdout] test fs::tests::list_dir_returns_entries ... ok
[INFO] [stdout] test fs::tests::read_nonexistent_file_returns_not_found ... ok
[INFO] [stdout] test fs::tests::read_write_text_file ... ok
[INFO] [stdout] test fs::tests::write_creates_parent_dirs ... ok
[INFO] [stdout] test fs::tests::write_overwrites_existing ... ok
[INFO] [stdout] test model::tests::build_request_with_tool_calls ... ok
[INFO] [stdout] test model::tests::create_items ... ok
[INFO] [stdout] test fs::tests::read_directory_returns_not_a_file ... ok
[INFO] [stdout] test model::tests::create_text_items ... ok
[INFO] [stdout] test model::tests::create_tool_result ... ok
[INFO] [stdout] test model::tests::parse_response_with_text_and_tool_call ... ok
[INFO] [stdout] test model::tests::model_delegates_to_provider ... ok
[INFO] [stdout] test session::tests::build_request_does_not_mutate_session ... ok
[INFO] [stdout] test session::tests::build_request_empty_tools ... ok
[INFO] [stdout] test session::tests::build_request_includes_system_prompt ... ok
[INFO] [stdout] test model::tests::response_stream_delegates_to_inner_stream ... ok
[INFO] [stdout] test session::tests::build_request_prepends_system_to_history ... ok
[INFO] [stdout] test session::tests::build_request_includes_tools ... ok
[INFO] [stdout] test session::tests::clear_resets_history_but_keeps_prompt ... ok
[INFO] [stdout] test session::tests::new_session_is_empty ... ok
[INFO] [stdout] test session::tests::push_and_read_items ... ok
[INFO] [stdout] test session::tests::record_usage_saturates ... ok
[INFO] [stdout] test session::tests::record_usage_with_total ... ok
[INFO] [stdout] test session::tests::record_usage_without_total_sums_components ... ok
[INFO] [stdout] test session::tests::simulate_agent_turn_with_tool_call ... ok
[INFO] [stdout] test session::tests::truncate_keeps_last_user_item ... ok
[INFO] [stdout] test session::tests::truncate_noop_when_within_budget ... ok
[INFO] [stdout] test session::tests::truncate_removes_oldest_items ... ok
[INFO] [stdout] test tools::tests::execute_existing_tool ... ok
[INFO] [stdout] test tools::tests::execute_failing_tool_returns_error ... ok
[INFO] [stdout] test tools::tests::execute_passes_tool_context_to_tool ... ok
[INFO] [stdout] test tools::tests::execute_unknown_tool_returns_error ... ok
[INFO] [stdout] test tools::tests::execute_tool_with_invalid_arguments ... ok
[INFO] [stdout] test tools::tests::file_edit_tool_parameters ... ok
[INFO] [stdout] test tools::tests::file_read_tool_parameters ... ok
[INFO] [stdout] test tools::tests::file_write_tool_parameters ... ok
[INFO] [stdout] test tools::tests::parse_arguments_invalid_json ... ok
[INFO] [stdout] test tools::tests::parse_arguments_valid_json ... ok
[INFO] [stdout] test tools::tests::register_and_lookup_tool ... ok
[INFO] [stdout] test tools::tests::register_overwrites_same_name ... ok
[INFO] [stdout] test tools::tests::specs_collects_all_tool_definitions ... ok
[INFO] [stdout] test agent::tests::agent_handle_rejects_after_loop_closes ... ok
[INFO] [stdout] test agent::tests::handle_interrupt_cancels_running_turn ... ok
[INFO] [stdout] test agent::tests::mid_stream_interrupt_skips_session_push ... ok
[INFO] [stdout] test agent::tests::bus_events_for_tool_execution ... ok
[INFO] [stdout] test agent::tests::buffered_message_done_wins_over_late_cancel ... ok
[INFO] [stdout] test agent::tests::eof_without_terminal_event_reports_protocol_error ... ok
[INFO] [stderr]      Running tests/integration_openai.rs (/opt/rustwide/target/debug/deps/integration_openai-742e321a8f85103a)
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 54 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.52s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test test_openai_real_flow ... ignored
[INFO] [stdout] test test_openai_tool_use ... ignored
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests funcode
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test src/agent.rs - agent::Agent::run_turn (line 258) ... ignored
[INFO] [stdout] test src/session.rs - session::Session::estimate_tokens (line 172) ... ignored
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] all doctests ran in 0.28s; merged doctests compilation took 0.28s
[INFO] running `Command { std: "docker" "inspect" "4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629", kill_on_drop: false }`
[INFO] [stdout] 4748820daf5485894d68bfdb6d96c07ffff21a4eae2002ca8a50887d18d9f629
