[INFO] fetching crate api_xai 0.3.0...
[INFO] checking api_xai-0.3.0 against try#012cd62c9add58ab3910e44c137d87db3ab70f61 for pr-155915
[INFO] extracting crate api_xai 0.3.0 into /workspace/builds/worker-5-tc2/source
[INFO] started tweaking crates.io crate api_xai 0.3.0
[INFO] removed 0 missing examples
[INFO] removed 0 missing tests
[INFO] finished tweaking crates.io crate api_xai 0.3.0
[INFO] tweaked toml for crates.io crate api_xai 0.3.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate api_xai 0.3.0 on toolchain 012cd62c9add58ab3910e44c137d87db3ab70f61
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate api_xai 0.3.0 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 49b984210e17ecc97f5291cb19a3b093b0ddc7c25efbd9aaeca7e2505b00c19b
[INFO] running `Command { std: "docker" "start" "-a" "49b984210e17ecc97f5291cb19a3b093b0ddc7c25efbd9aaeca7e2505b00c19b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "49b984210e17ecc97f5291cb19a3b093b0ddc7c25efbd9aaeca7e2505b00c19b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "49b984210e17ecc97f5291cb19a3b093b0ddc7c25efbd9aaeca7e2505b00c19b", kill_on_drop: false }`
[INFO] [stdout] 49b984210e17ecc97f5291cb19a3b093b0ddc7c25efbd9aaeca7e2505b00c19b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+012cd62c9add58ab3910e44c137d87db3ab70f61" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] aae724b69365b3ac71a3b7a895d1d0c4a147695e5681c727d947dd4600321508
[INFO] running `Command { std: "docker" "start" "-a" "aae724b69365b3ac71a3b7a895d1d0c4a147695e5681c727d947dd4600321508", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.177
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling itertools v0.11.0
[INFO] [stderr]    Compiling find-msvc-tools v0.1.5
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling const_format_proc_macros v0.2.34
[INFO] [stderr]     Checking http v1.4.0
[INFO] [stderr]    Compiling icu_properties_data v2.1.1
[INFO] [stderr]     Checking rustls-pki-types v1.13.1
[INFO] [stderr]    Compiling cc v1.2.48
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling const_format v0.2.35
[INFO] [stderr]    Compiling collection_tools v0.32.0
[INFO] [stderr]    Compiling clone_dyn_types v0.42.0
[INFO] [stderr]    Compiling component_model_types v0.18.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]    Compiling interval_adapter v0.38.0
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]    Compiling collection_tools v0.34.0
[INFO] [stderr]    Compiling rustls v0.23.35
[INFO] [stderr]    Compiling component_model_types v0.20.0
[INFO] [stderr]     Checking mio v1.1.0
[INFO] [stderr]     Checking socket2 v0.6.1
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]    Compiling derive_tools v0.55.0
[INFO] [stderr]     Checking indexmap v2.12.1
[INFO] [stderr]     Checking regex-automata v0.4.13
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]     Checking tokio v1.48.0
[INFO] [stderr]    Compiling iter_tools v0.42.0
[INFO] [stderr]    Compiling macro_tools v0.75.0
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking icu_properties v2.1.1
[INFO] [stderr]     Checking icu_normalizer v2.1.1
[INFO] [stderr]     Checking tracing-core v0.1.35
[INFO] [stderr]    Compiling derive_more-impl v1.0.0
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling clone_dyn_types v0.43.0
[INFO] [stderr]    Compiling camino v1.2.1
[INFO] [stderr]     Checking toml_datetime v0.6.11
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking serde_spanned v0.6.9
[INFO] [stderr]    Compiling iter_tools v0.43.0
[INFO] [stderr]    Compiling derive_tools_meta v0.54.0
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]    Compiling derive_more v1.0.0
[INFO] [stderr]    Compiling protobuf v2.28.0
[INFO] [stderr]     Checking bit-vec v0.6.3
[INFO] [stderr]    Compiling interval_adapter v0.39.0
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]    Compiling macro_tools v0.77.0
[INFO] [stderr]     Checking toml_edit v0.22.27
[INFO] [stderr]     Checking regex v1.12.2
[INFO] [stderr]     Checking bit-set v0.5.3
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking cargo-platform v0.1.9
[INFO] [stderr]     Checking semver v1.0.27
[INFO] [stderr]     Checking tracing v0.1.37
[INFO] [stderr]    Compiling former_types v2.33.0
[INFO] [stderr]     Checking webpki-roots v1.0.4
[INFO] [stderr]     Checking iri-string v0.7.9
[INFO] [stderr]    Compiling prometheus v0.13.4
[INFO] [stderr]     Checking serde_yaml v0.9.34+deprecated
[INFO] [stderr]     Checking cargo_metadata v0.18.1
[INFO] [stderr]    Compiling former_meta v2.37.0
[INFO] [stderr]     Checking nom v7.1.3
[INFO] [stderr]     Checking hyper v1.8.1
[INFO] [stderr]     Checking rustls-webpki v0.103.8
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking toml v0.8.23
[INFO] [stderr]     Checking tokio-util v0.7.17
[INFO] [stderr]     Checking hyper-util v0.1.18
[INFO] [stderr]     Checking fancy-regex v0.12.0
[INFO] [stderr]     Checking tower-http v0.6.7
[INFO] [stderr]    Compiling mod_interface_meta v0.50.0
[INFO] [stderr]     Checking url v2.5.7
[INFO] [stderr]     Checking bstr v1.12.1
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]     Checking log v0.4.28
[INFO] [stderr]     Checking tiktoken-rs v0.5.9
[INFO] [stderr]     Checking eventsource-stream v0.2.3
[INFO] [stderr]     Checking workspace_tools v0.10.0
[INFO] [stderr]     Checking mod_interface v0.52.0
[INFO] [stderr]     Checking error_tools v0.35.0
[INFO] [stderr]     Checking secrecy v0.10.3
[INFO] [stderr]     Checking former v2.39.0
[INFO] [stderr]     Checking tokio-rustls v0.26.4
[INFO] [stderr]     Checking hyper-rustls v0.27.7
[INFO] [stderr]     Checking reqwest v0.12.24
[INFO] [stderr]     Checking api_xai v0.3.0 (/opt/rustwide/workdir)
[INFO] [stdout] note: no errors encountered even though delayed bugs were created
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] note: those delayed bugs will now be shown as internal compiler errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: internal compiler error: `Res::Err` but no error emitted
[INFO] [stdout]    --> src/sync_api.rs:403:5
[INFO] [stdout]     |
[INFO] [stdout] 403 |     crate::count_tokens( text, model )
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] note: delayed at /rustc-dev/012cd62c9add58ab3910e44c137d87db3ab70f61/compiler/rustc_hir_typeck/src/expr.rs:588:32
[INFO] [stdout]          0: <rustc_errors::DiagCtxtInner>::emit_diagnostic
[INFO] [stdout]          1: <rustc_errors::DiagCtxtHandle>::emit_diagnostic
[INFO] [stdout]          2: <rustc_span::ErrorGuaranteed as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
[INFO] [stdout]          3: <rustc_errors::DiagCtxtHandle>::span_delayed_bug::<rustc_span::span_encoding::Span, &str>
[INFO] [stdout]          4: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
[INFO] [stdout]          5: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_call
[INFO] [stdout]          6: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
[INFO] [stdout]          7: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_block
[INFO] [stdout]          8: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
[INFO] [stdout]          9: rustc_hir_typeck::check::check_fn
[INFO] [stdout]         10: rustc_hir_typeck::typeck_with_inspect::{closure#0}
[INFO] [stdout]         11: rustc_query_impl::query_impl::typeck_root::invoke_provider_fn::__rust_begin_short_backtrace
[INFO] [stdout]         12: rustc_query_impl::execution::try_execute_query::<rustc_data_structures::vec_cache::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_middle::dep_graph::graph::DepNodeIndex>, false>
[INFO] [stdout]         13: rustc_query_impl::query_impl::typeck_root::execute_query_non_incr::__rust_end_short_backtrace
[INFO] [stdout]         14: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_hir_analysis::check_crate::{closure#1}>::{closure#0}
[INFO] [stdout]         15: rustc_hir_analysis::check_crate
[INFO] [stdout]         16: rustc_interface::passes::analysis
[INFO] [stdout]         17: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
[INFO] [stdout]         18: rustc_query_impl::query_impl::analysis::execute_query_non_incr::__rust_end_short_backtrace
[INFO] [stdout]         19: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
[INFO] [stdout]         20: std::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
[INFO] [stdout]         21: <std::thread::lifecycle::spawn_unchecked<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]         22: <std::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]         23: <unknown>
[INFO] [stdout]         24: clone
[INFO] [stdout]       
[INFO] [stdout]    --> src/sync_api.rs:403:5
[INFO] [stdout]     |
[INFO] [stdout] 403 |     crate::count_tokens( text, model )
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: internal compiler error[E0618]: expected function, found `{type error}`
[INFO] [stdout]    --> src/sync_api.rs:403:5
[INFO] [stdout]     |
[INFO] [stdout] 403 |     crate::count_tokens( text, model )
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^---------------
[INFO] [stdout]     |     |
[INFO] [stdout]     |     call expression requires function
[INFO] [stdout]     |
[INFO] [stdout] note: delayed at /rustc-dev/012cd62c9add58ab3910e44c137d87db3ab70f61/compiler/rustc_hir_typeck/src/callee.rs:743:34
[INFO] [stdout]          0: <rustc_errors::DiagCtxtInner>::emit_diagnostic
[INFO] [stdout]          1: <rustc_errors::DiagCtxtHandle>::emit_diagnostic
[INFO] [stdout]          2: <rustc_span::ErrorGuaranteed as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
[INFO] [stdout]          3: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_call
[INFO] [stdout]          4: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
[INFO] [stdout]          5: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_block
[INFO] [stdout]          6: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
[INFO] [stdout]          7: rustc_hir_typeck::check::check_fn
[INFO] [stdout]          8: rustc_hir_typeck::typeck_with_inspect::{closure#0}
[INFO] [stdout]          9: rustc_query_impl::query_impl::typeck_root::invoke_provider_fn::__rust_begin_short_backtrace
[INFO] [stdout]         10: rustc_query_impl::execution::try_execute_query::<rustc_data_structures::vec_cache::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_middle::dep_graph::graph::DepNodeIndex>, false>
[INFO] [stdout]         11: rustc_query_impl::query_impl::typeck_root::execute_query_non_incr::__rust_end_short_backtrace
[INFO] [stdout]         12: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_hir_analysis::check_crate::{closure#1}>::{closure#0}
[INFO] [stdout]         13: rustc_hir_analysis::check_crate
[INFO] [stdout]         14: rustc_interface::passes::analysis
[INFO] [stdout]         15: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
[INFO] [stdout]         16: rustc_query_impl::query_impl::analysis::execute_query_non_incr::__rust_end_short_backtrace
[INFO] [stdout]         17: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
[INFO] [stdout]         18: std::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
[INFO] [stdout]         19: <std::thread::lifecycle::spawn_unchecked<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]         20: <std::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]         21: <unknown>
[INFO] [stdout]         22: clone
[INFO] [stdout]       
[INFO] [stdout]    --> src/sync_api.rs:403:5
[INFO] [stdout]     |
[INFO] [stdout] 403 |     crate::count_tokens( text, model )
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
[INFO] [stderr] 
[INFO] [stderr] note: please make sure that you have updated to the latest nightly
[INFO] [stderr] 
[INFO] [stderr] warning: the ICE couldn't be written to `/opt/rustwide/workdir/rustc-ice-2026-05-10T02_15_06-1076.txt`: Read-only file system (os error 30)
[INFO] [stderr] 
[INFO] [stderr] note: rustc 1.97.0-nightly (012cd62c9 2026-05-02) running on x86_64-unknown-linux-gnu
[INFO] [stderr] 
[INFO] [stderr] note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2
[INFO] [stderr] 
[INFO] [stderr] note: some of the compiler flags provided by cargo are hidden
[INFO] [stderr] 
[INFO] [stderr] query stack during panic:
[INFO] [stderr] end of query stack
[INFO] [stderr] error: could not compile `api_xai` (lib)
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/012cd62c9add58ab3910e44c137d87db3ab70f61/bin/rustc --crate-name api_xai --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --warn=rust_2018_idioms '--warn=clippy::pedantic' --warn=future_incompatible '--allow=clippy::wildcard_imports' --deny=unsafe-code '--deny=clippy::undocumented_unsafe_blocks' '--warn=clippy::std_instead_of_core' '--allow=clippy::std_instead_of_alloc' '--allow=clippy::single_call_fn' '--allow=clippy::question_mark_used' '--allow=clippy::pub_use' '--allow=clippy::module_name_repetitions' '--allow=clippy::mod_module_files' '--warn=clippy::missing_inline_in_public_items' '--allow=clippy::missing_docs_in_private_items' --warn=missing_docs --warn=missing_debug_implementations '--allow=clippy::items_after_statements' '--allow=clippy::inline_always' '--allow=clippy::implicit_return' '--warn=clippy::doc_include_without_cfg' '--allow=clippy::cast_precision_loss' '--allow=clippy::arbitrary_source_item_ordering' '--allow=clippy::absolute_paths' --cfg 'feature="batch_operations"' --cfg 'feature="caching"' --cfg 'feature="circuit_breaker"' --cfg 'feature="count_tokens"' --cfg 'feature="curl_diagnostics"' --cfg 'feature="default"' --cfg 'feature="enabled"' --cfg 'feature="enhanced_tools"' --cfg 'feature="failover"' --cfg 'feature="full"' --cfg 'feature="health_checks"' --cfg 'feature="input_validation"' --cfg 'feature="integration"' --cfg 'feature="performance_metrics"' --cfg 'feature="rate_limiting"' --cfg 'feature="retry"' --cfg 'feature="streaming"' --cfg 'feature="structured_logging"' --cfg 'feature="sync_api"' --cfg 'feature="tool_calling"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("batch_operations", "caching", "circuit_breaker", "count_tokens", "curl_diagnostics", "default", "enabled", "enhanced_tools", "failover", "full", "health_checks", "input_validation", "integration", "performance_metrics", "rate_limiting", "retry", "streaming", "structured_logging", "sync_api", "tool_calling"))' -C metadata=7d6780e44ef5760e -C extra-filename=-29732fd36544c125 --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern bytes=/opt/rustwide/target/debug/deps/libbytes-40d7b0824e7801b3.rmeta --extern error_tools=/opt/rustwide/target/debug/deps/liberror_tools-6ef0d2f973794f53.rmeta --extern eventsource_stream=/opt/rustwide/target/debug/deps/libeventsource_stream-28e5c362225ddbbe.rmeta --extern former=/opt/rustwide/target/debug/deps/libformer-55d6622083b53602.rmeta --extern futures_core=/opt/rustwide/target/debug/deps/libfutures_core-c825ae5183b465a3.rmeta --extern futures_util=/opt/rustwide/target/debug/deps/libfutures_util-874ca74bde323da0.rmeta --extern lru=/opt/rustwide/target/debug/deps/liblru-f994916073c4f8dc.rmeta --extern mod_interface=/opt/rustwide/target/debug/deps/libmod_interface-87b023555a0e47d1.rmeta --extern prometheus=/opt/rustwide/target/debug/deps/libprometheus-a022595ec66a7a34.rmeta --extern reqwest=/opt/rustwide/target/debug/deps/libreqwest-a5b133bec8dd55f5.rmeta --extern secrecy=/opt/rustwide/target/debug/deps/libsecrecy-2455ebfb969d60b5.rmeta --extern serde=/opt/rustwide/target/debug/deps/libserde-c03fa5e4355e3dc8.rmeta --extern serde_json=/opt/rustwide/target/debug/deps/libserde_json-6000551d59143ad7.rmeta --extern tiktoken_rs=/opt/rustwide/target/debug/deps/libtiktoken_rs-3b31598663e9829d.rmeta --extern tokio=/opt/rustwide/target/debug/deps/libtokio-916e14b5dea23f68.rmeta --extern tracing=/opt/rustwide/target/debug/deps/libtracing-16b484e70c867888.rmeta --extern url=/opt/rustwide/target/debug/deps/liburl-824a1c599ba8793f.rmeta --extern workspace_tools=/opt/rustwide/target/debug/deps/libworkspace_tools-351d33d1d61e189d.rmeta --cap-lints=forbid -L native=/opt/rustwide/target/debug/build/ring-31909e1010ec65c9/out` (exit status: 101)
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] note: no errors encountered even though delayed bugs were created
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] note: those delayed bugs will now be shown as internal compiler errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: internal compiler error: `Res::Err` but no error emitted
[INFO] [stdout]    --> src/sync_api.rs:403:5
[INFO] [stdout]     |
[INFO] [stdout] 403 |     crate::count_tokens( text, model )
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] note: delayed at /rustc-dev/012cd62c9add58ab3910e44c137d87db3ab70f61/compiler/rustc_hir_typeck/src/expr.rs:588:32
[INFO] [stdout]          0: <rustc_errors::DiagCtxtInner>::emit_diagnostic
[INFO] [stdout]          1: <rustc_errors::DiagCtxtHandle>::emit_diagnostic
[INFO] [stdout]          2: <rustc_span::ErrorGuaranteed as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
[INFO] [stdout]          3: <rustc_errors::DiagCtxtHandle>::span_delayed_bug::<rustc_span::span_encoding::Span, &str>
[INFO] [stdout]          4: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
[INFO] [stdout]          5: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_call
[INFO] [stdout]          6: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
[INFO] [stdout]          7: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_block
[INFO] [stdout]          8: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
[INFO] [stdout]          9: rustc_hir_typeck::check::check_fn
[INFO] [stdout]         10: rustc_hir_typeck::typeck_with_inspect::{closure#0}
[INFO] [stdout]         11: rustc_query_impl::query_impl::typeck_root::invoke_provider_fn::__rust_begin_short_backtrace
[INFO] [stdout]         12: rustc_query_impl::execution::try_execute_query::<rustc_data_structures::vec_cache::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_middle::dep_graph::graph::DepNodeIndex>, false>
[INFO] [stdout]         13: rustc_query_impl::query_impl::typeck_root::execute_query_non_incr::__rust_end_short_backtrace
[INFO] [stdout]         14: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_hir_analysis::check_crate::{closure#1}>::{closure#0}
[INFO] [stdout]         15: rustc_hir_analysis::check_crate
[INFO] [stdout]         16: rustc_interface::passes::analysis
[INFO] [stdout]         17: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
[INFO] [stdout]         18: rustc_query_impl::query_impl::analysis::execute_query_non_incr::__rust_end_short_backtrace
[INFO] [stdout]         19: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
[INFO] [stdout]         20: std::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
[INFO] [stdout]         21: <std::thread::lifecycle::spawn_unchecked<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]         22: <std::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]         23: <unknown>
[INFO] [stdout]         24: clone
[INFO] [stdout]       
[INFO] [stdout]    --> src/sync_api.rs:403:5
[INFO] [stdout]     |
[INFO] [stdout] 403 |     crate::count_tokens( text, model )
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
[INFO] [stdout] error: internal compiler error[E0618]: expected function, found `{type error}`
[INFO] [stdout]    --> src/sync_api.rs:403:5
[INFO] [stdout]     |
[INFO] [stdout] 403 |     crate::count_tokens( text, model )
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^---------------
[INFO] [stdout]     |     |
[INFO] [stdout]     |     call expression requires function
[INFO] [stdout]     |
[INFO] [stdout] note: delayed at /rustc-dev/012cd62c9add58ab3910e44c137d87db3ab70f61/compiler/rustc_hir_typeck/src/callee.rs:743:34
[INFO] [stdout]          0: <rustc_errors::DiagCtxtInner>::emit_diagnostic
[INFO] [stdout]          1: <rustc_errors::DiagCtxtHandle>::emit_diagnostic
[INFO] [stdout]          2: <rustc_span::ErrorGuaranteed as rustc_errors::diagnostic::EmissionGuarantee>::emit_producing_guarantee
[INFO] [stdout]          3: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_call
[INFO] [stdout]          4: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
[INFO] [stdout]          5: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_block
[INFO] [stdout]          6: <rustc_hir_typeck::fn_ctxt::FnCtxt>::check_expr_with_expectation_and_args
[INFO] [stdout]          7: rustc_hir_typeck::check::check_fn
[INFO] [stdout]          8: rustc_hir_typeck::typeck_with_inspect::{closure#0}
[INFO] [stdout]          9: rustc_query_impl::query_impl::typeck_root::invoke_provider_fn::__rust_begin_short_backtrace
[INFO] [stdout]         10: rustc_query_impl::execution::try_execute_query::<rustc_data_structures::vec_cache::VecCache<rustc_span::def_id::LocalDefId, rustc_middle::query::erase::ErasedData<[u8; 8]>, rustc_middle::dep_graph::graph::DepNodeIndex>, false>
[INFO] [stdout]         11: rustc_query_impl::query_impl::typeck_root::execute_query_non_incr::__rust_end_short_backtrace
[INFO] [stdout]         12: <rustc_middle::ty::context::TyCtxt>::par_hir_body_owners::<rustc_hir_analysis::check_crate::{closure#1}>::{closure#0}
[INFO] [stdout]         13: rustc_hir_analysis::check_crate
[INFO] [stdout]         14: rustc_interface::passes::analysis
[INFO] [stdout]         15: rustc_query_impl::execution::try_execute_query::<rustc_middle::query::caches::SingleCache<rustc_middle::query::erase::ErasedData<[u8; 0]>>, false>
[INFO] [stdout]         16: rustc_query_impl::query_impl::analysis::execute_query_non_incr::__rust_end_short_backtrace
[INFO] [stdout]         17: rustc_interface::interface::run_compiler::<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}
[INFO] [stdout]         18: std::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
[INFO] [stdout]         19: <std::thread::lifecycle::spawn_unchecked<rustc_interface::util::run_in_thread_with_globals<rustc_interface::util::run_in_thread_pool_with_globals<rustc_interface::interface::run_compiler<(), rustc_driver_impl::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]         20: <std::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]         21: <unknown>
[INFO] [stdout]         22: clone
[INFO] [stdout]       
[INFO] [stdout]    --> src/sync_api.rs:403:5
[INFO] [stdout]     |
[INFO] [stdout] 403 |     crate::count_tokens( text, model )
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] 
[INFO] [stderr] note: please make sure that you have updated to the latest nightly
[INFO] [stderr] 
[INFO] [stderr] warning: the ICE couldn't be written to `/opt/rustwide/workdir/rustc-ice-2026-05-10T02_15_06-1077.txt`: Read-only file system (os error 30)
[INFO] [stderr] 
[INFO] [stderr] note: rustc 1.97.0-nightly (012cd62c9 2026-05-02) running on x86_64-unknown-linux-gnu
[INFO] [stderr] 
[INFO] [stderr] note: compiler flags: -C embed-bitcode=no -C debuginfo=2
[INFO] [stderr] 
[INFO] [stderr] note: some of the compiler flags provided by cargo are hidden
[INFO] [stderr] 
[INFO] [stderr] query stack during panic:
[INFO] [stderr] end of query stack
[INFO] [stderr] error: could not compile `api_xai` (lib test)
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/012cd62c9add58ab3910e44c137d87db3ab70f61/bin/rustc --crate-name api_xai --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --warn=rust_2018_idioms '--warn=clippy::pedantic' --warn=future_incompatible '--allow=clippy::wildcard_imports' --deny=unsafe-code '--deny=clippy::undocumented_unsafe_blocks' '--warn=clippy::std_instead_of_core' '--allow=clippy::std_instead_of_alloc' '--allow=clippy::single_call_fn' '--allow=clippy::question_mark_used' '--allow=clippy::pub_use' '--allow=clippy::module_name_repetitions' '--allow=clippy::mod_module_files' '--warn=clippy::missing_inline_in_public_items' '--allow=clippy::missing_docs_in_private_items' --warn=missing_docs --warn=missing_debug_implementations '--allow=clippy::items_after_statements' '--allow=clippy::inline_always' '--allow=clippy::implicit_return' '--warn=clippy::doc_include_without_cfg' '--allow=clippy::cast_precision_loss' '--allow=clippy::arbitrary_source_item_ordering' '--allow=clippy::absolute_paths' --test --cfg 'feature="batch_operations"' --cfg 'feature="caching"' --cfg 'feature="circuit_breaker"' --cfg 'feature="count_tokens"' --cfg 'feature="curl_diagnostics"' --cfg 'feature="default"' --cfg 'feature="enabled"' --cfg 'feature="enhanced_tools"' --cfg 'feature="failover"' --cfg 'feature="full"' --cfg 'feature="health_checks"' --cfg 'feature="input_validation"' --cfg 'feature="integration"' --cfg 'feature="performance_metrics"' --cfg 'feature="rate_limiting"' --cfg 'feature="retry"' --cfg 'feature="streaming"' --cfg 'feature="structured_logging"' --cfg 'feature="sync_api"' --cfg 'feature="tool_calling"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("batch_operations", "caching", "circuit_breaker", "count_tokens", "curl_diagnostics", "default", "enabled", "enhanced_tools", "failover", "full", "health_checks", "input_validation", "integration", "performance_metrics", "rate_limiting", "retry", "streaming", "structured_logging", "sync_api", "tool_calling"))' -C metadata=b148bc8dd3d25de4 -C extra-filename=-d97e291f6db59f54 --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern bytes=/opt/rustwide/target/debug/deps/libbytes-40d7b0824e7801b3.rmeta --extern error_tools=/opt/rustwide/target/debug/deps/liberror_tools-6ef0d2f973794f53.rmeta --extern eventsource_stream=/opt/rustwide/target/debug/deps/libeventsource_stream-28e5c362225ddbbe.rmeta --extern former=/opt/rustwide/target/debug/deps/libformer-55d6622083b53602.rmeta --extern futures_core=/opt/rustwide/target/debug/deps/libfutures_core-c825ae5183b465a3.rmeta --extern futures_util=/opt/rustwide/target/debug/deps/libfutures_util-874ca74bde323da0.rmeta --extern lru=/opt/rustwide/target/debug/deps/liblru-f994916073c4f8dc.rmeta --extern mod_interface=/opt/rustwide/target/debug/deps/libmod_interface-87b023555a0e47d1.rmeta --extern prometheus=/opt/rustwide/target/debug/deps/libprometheus-a022595ec66a7a34.rmeta --extern reqwest=/opt/rustwide/target/debug/deps/libreqwest-a5b133bec8dd55f5.rmeta --extern secrecy=/opt/rustwide/target/debug/deps/libsecrecy-2455ebfb969d60b5.rmeta --extern serde=/opt/rustwide/target/debug/deps/libserde-c03fa5e4355e3dc8.rmeta --extern serde_json=/opt/rustwide/target/debug/deps/libserde_json-6000551d59143ad7.rmeta --extern tiktoken_rs=/opt/rustwide/target/debug/deps/libtiktoken_rs-3b31598663e9829d.rmeta --extern tokio=/opt/rustwide/target/debug/deps/libtokio-916e14b5dea23f68.rmeta --extern tracing=/opt/rustwide/target/debug/deps/libtracing-16b484e70c867888.rmeta --extern url=/opt/rustwide/target/debug/deps/liburl-824a1c599ba8793f.rmeta --extern workspace_tools=/opt/rustwide/target/debug/deps/libworkspace_tools-351d33d1d61e189d.rmeta --cap-lints=forbid -L native=/opt/rustwide/target/debug/build/ring-31909e1010ec65c9/out` (exit status: 101)
[INFO] running `Command { std: "docker" "inspect" "aae724b69365b3ac71a3b7a895d1d0c4a147695e5681c727d947dd4600321508", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aae724b69365b3ac71a3b7a895d1d0c4a147695e5681c727d947dd4600321508", kill_on_drop: false }`
[INFO] [stdout] aae724b69365b3ac71a3b7a895d1d0c4a147695e5681c727d947dd4600321508
