[INFO] fetching crate ratatui-kit 0.5.1... [INFO] testing ratatui-kit-0.5.1 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate ratatui-kit 0.5.1 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate ratatui-kit 0.5.1 [INFO] finished tweaking crates.io crate ratatui-kit 0.5.1 [INFO] tweaked toml for crates.io crate ratatui-kit 0.5.1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ratatui-kit 0.5.1 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ratatui-kit 0.5.1 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded generational-box v0.6.2 [INFO] [stderr] Downloaded debugit v0.1.2 [INFO] [stderr] Downloaded tui-textarea v0.7.0 [INFO] [stderr] Downloaded any_key v0.1.1 [INFO] [stderr] Downloaded ratatui-kit-macros v0.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88cd8913de671468551eae71eaea77b40cecd418d2e8425e04305cba89a282d8 [INFO] running `Command { std: "docker" "start" "-a" "88cd8913de671468551eae71eaea77b40cecd418d2e8425e04305cba89a282d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88cd8913de671468551eae71eaea77b40cecd418d2e8425e04305cba89a282d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88cd8913de671468551eae71eaea77b40cecd418d2e8425e04305cba89a282d8", kill_on_drop: false }` [INFO] [stdout] 88cd8913de671468551eae71eaea77b40cecd418d2e8425e04305cba89a282d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 98733c33ceafb5896ca2a15baf4baf6343f493056121c4bcc871c3890aff7c58 [INFO] running `Command { std: "docker" "start" "-a" "98733c33ceafb5896ca2a15baf4baf6343f493056121c4bcc871c3890aff7c58", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling mopa v0.2.2 [INFO] [stderr] Compiling compact_str v0.8.1 [INFO] [stderr] Compiling debugit v0.1.2 [INFO] [stderr] Compiling any_key v0.1.1 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling ratatui-kit-macros v0.5.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling generational-box v0.6.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling instability v0.3.7 [INFO] [stderr] Compiling ratatui v0.29.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling ratatui-kit v0.5.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.09s [INFO] running `Command { std: "docker" "inspect" "98733c33ceafb5896ca2a15baf4baf6343f493056121c4bcc871c3890aff7c58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98733c33ceafb5896ca2a15baf4baf6343f493056121c4bcc871c3890aff7c58", kill_on_drop: false }` [INFO] [stdout] 98733c33ceafb5896ca2a15baf4baf6343f493056121c4bcc871c3890aff7c58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02e24a9332948dbb22ca53ce66280e6acd3967064f63eaa1d99470914d9032d4 [INFO] running `Command { std: "docker" "start" "-a" "02e24a9332948dbb22ca53ce66280e6acd3967064f63eaa1d99470914d9032d4", kill_on_drop: false }` [INFO] [stderr] Compiling ratatui-kit v0.5.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.08s [INFO] running `Command { std: "docker" "inspect" "02e24a9332948dbb22ca53ce66280e6acd3967064f63eaa1d99470914d9032d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02e24a9332948dbb22ca53ce66280e6acd3967064f63eaa1d99470914d9032d4", kill_on_drop: false }` [INFO] [stdout] 02e24a9332948dbb22ca53ce66280e6acd3967064f63eaa1d99470914d9032d4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 097889a62e8114319a78a91161948f58fc25e0ed2d16fbc30baa2a17e683addb [INFO] running `Command { std: "docker" "start" "-a" "097889a62e8114319a78a91161948f58fc25e0ed2d16fbc30baa2a17e683addb", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/ratatui_kit-40dba7001336d715) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests ratatui_kit [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test src/components/fragment.rs - components::fragment (line 4) ... FAILED [INFO] [stdout] test src/components/scroll_view/mod.rs - components::scroll_view (line 15) ... FAILED [INFO] [stdout] test src/components/modal.rs - components::modal (line 4) ... FAILED [INFO] [stdout] test src/components/scroll_view/state.rs - components::scroll_view::state (line 6) ... FAILED [INFO] [stdout] test src/handler.rs - handler (line 10) ... FAILED [INFO] [stdout] test src/handler.rs - handler::DerefMut (line 10) ... FAILED [INFO] [stdout] test src/hooks/mod.rs - hooks::Hooks (line 137) ... FAILED [INFO] [stdout] test src/hooks/use_state.rs - hooks::use_state (line 13) ... FAILED [INFO] [stdout] test src/handler.rs - handler::Deref (line 10) ... FAILED [INFO] [stdout] test src/hooks/mod.rs - hooks (line 10) ... FAILED [INFO] [stdout] test src/component/mod.rs - component::Component (line 29) ... FAILED [INFO] [stdout] test src/components/context_provider.rs - components::context_provider (line 6) ... FAILED [INFO] [stdout] test src/components/scroll_view/mod.rs - components::scroll_view (line 6) ... FAILED [INFO] [stdout] test src/components/scroll_view/scrollbars.rs - components::scroll_view::scrollbars (line 4) ... FAILED [INFO] [stdout] test src/element/element_ext.rs - element::element_ext::ElementExt (line 28) ... FAILED [INFO] [stdout] test src/components/border.rs - components::border (line 6) ... FAILED [INFO] [stdout] test src/components/view.rs - components::view (line 6) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/components/fragment.rs - components::fragment (line 4) stdout ---- [INFO] [stdout] error: cannot find macro `element` in this scope [INFO] [stdout] --> src/components/fragment.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 3 | element!(Fragment { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::element; [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit_macros::element; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/components/scroll_view/mod.rs - components::scroll_view (line 15) stdout ---- [INFO] [stdout] error: cannot find macro `element` in this scope [INFO] [stdout] --> src/components/scroll_view/mod.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 9 | element!(ScrollView( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::element; [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit_macros::element; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `hooks` in this scope [INFO] [stdout] --> src/components/scroll_view/mod.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 3 | let scroll_state = hooks.use_state(ScrollViewState::default); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ScrollViewState` [INFO] [stdout] --> src/components/scroll_view/mod.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 3 | let scroll_state = hooks.use_state(ScrollViewState::default); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ScrollViewState` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::prelude::ScrollViewState; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `hooks` in this scope [INFO] [stdout] --> src/components/scroll_view/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 5 | hooks.use_local_events(move |event| { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/components/modal.rs - components::modal (line 4) stdout ---- [INFO] [stdout] error: cannot find macro `element` in this scope [INFO] [stdout] --> src/components/modal.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 3 | element!(Modal( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::element; [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit_macros::element; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/components/scroll_view/state.rs - components::scroll_view::state (line 6) stdout ---- [INFO] [stdout] error: cannot find macro `element` in this scope [INFO] [stdout] --> src/components/scroll_view/state.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 4 | element!(ScrollView(scroll_view_state: scroll_state.get()) { ... }) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::element; [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit_macros::element; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `hooks` in this scope [INFO] [stdout] --> src/components/scroll_view/state.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 3 | let scroll_state = hooks.use_state(ScrollViewState::default); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ScrollViewState` [INFO] [stdout] --> src/components/scroll_view/state.rs:7:36 [INFO] [stdout] | [INFO] [stdout] 3 | let scroll_state = hooks.use_state(ScrollViewState::default); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ScrollViewState` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::prelude::ScrollViewState; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/handler.rs - handler (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Handler` [INFO] [stdout] --> src/handler.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 3 | let mut handler = Handler::from(|val| println!("changed: {}", val)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Handler` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::Handler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/handler.rs - handler::DerefMut (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Handler` [INFO] [stdout] --> src/handler.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 3 | let mut handler = Handler::from(|val| println!("changed: {}", val)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Handler` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::Handler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/hooks/mod.rs - hooks::Hooks (line 137) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `hooks` in this scope [INFO] [stdout] --> src/hooks/mod.rs:138:17 [INFO] [stdout] | [INFO] [stdout] 3 | let mut state = hooks.use_state(|| 0); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `hooks` in this scope [INFO] [stdout] --> src/hooks/mod.rs:139:11 [INFO] [stdout] | [INFO] [stdout] 4 | let ctx = hooks.use_context::(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MyType` in this scope [INFO] [stdout] --> src/hooks/mod.rs:139:31 [INFO] [stdout] | [INFO] [stdout] 4 | let ctx = hooks.use_context::(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_hooks_mod_rs_137_0() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/hooks/use_state.rs - hooks::use_state (line 13) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/hooks/use_state.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 3 | let mut hooks = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 3 - let mut hooks = ...; [INFO] [stdout] 3 + let mut hooks = ..; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 3 - let mut hooks = ...; [INFO] [stdout] 3 + let mut hooks = ..=; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/hooks/use_state.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 3 | let mut hooks = ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 3 - let mut hooks = ...; [INFO] [stdout] 3 + let mut hooks = ..; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0586`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/handler.rs - handler::Deref (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Handler` [INFO] [stdout] --> src/handler.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 3 | let mut handler = Handler::from(|val| println!("changed: {}", val)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Handler` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::Handler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/hooks/mod.rs - hooks (line 10) stdout ---- [INFO] [stdout] error: expected identifier, found `...` [INFO] [stdout] --> src/hooks/mod.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MyHook { ... } [INFO] [stdout] | ------ ^^^ expected identifier [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/hooks/mod.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 5 | impl Hook for MyHook { ... } [INFO] [stdout] | - ^^^ - item list ends here [INFO] [stdout] | | | [INFO] [stdout] | | non-item starts here [INFO] [stdout] | item list starts here [INFO] [stdout] [INFO] [stdout] error[E0743]: C-variadic type `...` may not be nested inside another type [INFO] [stdout] --> src/hooks/mod.rs:17:39 [INFO] [stdout] | [INFO] [stdout] 9 | fn use_my_hook(&mut self, ...) -> ...; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0743]: C-variadic type `...` may not be nested inside another type [INFO] [stdout] --> src/hooks/mod.rs:20:39 [INFO] [stdout] | [INFO] [stdout] 12 | fn use_my_hook(&mut self, ...) -> ... { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `...` [INFO] [stdout] --> src/hooks/mod.rs:21:35 [INFO] [stdout] | [INFO] [stdout] 13 | self.use_hook(|| MyHook { ... }) [INFO] [stdout] | ------ ^^^ expected identifier [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] [INFO] [stdout] error: `...` is not supported for non-extern functions [INFO] [stdout] --> src/hooks/mod.rs:17:31 [INFO] [stdout] | [INFO] [stdout] 9 | fn use_my_hook(&mut self, ...) -> ...; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: only `extern "C"` and `extern "C-unwind"` functions may have a C variable argument list [INFO] [stdout] [INFO] [stdout] error: `...` is not supported for non-extern functions [INFO] [stdout] --> src/hooks/mod.rs:20:31 [INFO] [stdout] | [INFO] [stdout] 12 | fn use_my_hook(&mut self, ...) -> ... { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: only `extern "C"` and `extern "C-unwind"` functions may have a C variable argument list [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Hook` in this scope [INFO] [stdout] --> src/hooks/mod.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl Hook for MyHook { ... } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::Hook; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Hooks` in this scope [INFO] [stdout] --> src/hooks/mod.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 11 | impl UseMyHook for Hooks<'_, '_> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::Hooks; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0658]: C-variadic functions are unstable [INFO] [stdout] --> src/hooks/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 9 | fn use_my_hook(&mut self, ...) -> ...; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #44930 for more information [INFO] [stdout] = help: add `#![feature(c_variadic)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-09-24; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] error[E0658]: C-variadic functions are unstable [INFO] [stdout] --> src/hooks/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 12 | / fn use_my_hook(&mut self, ...) -> ... { [INFO] [stdout] 13 | | self.use_hook(|| MyHook { ... }) [INFO] [stdout] 14 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #44930 for more information [INFO] [stdout] = help: add `#![feature(c_variadic)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-09-24; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `private` [INFO] [stdout] --> src/hooks/mod.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait UseMyHook: private::Sealed { [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `private` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `private`, use `cargo add private` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433, E0658, E0743. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/component/mod.rs - component::Component (line 29) stdout ---- [INFO] [stdout] error[E0599]: no method named `render` found for struct `ratatui::prelude::Line<'a>` in the current scope [INFO] [stdout] --> src/component/mod.rs:56:68 [INFO] [stdout] | [INFO] [stdout] 30 | Line::styled(format!("Counter: {}", 42), Style::default()).render(area, buf); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-0.29.0/src/widgets.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | fn render(self, area: Rect, buf: &mut Buffer) [INFO] [stdout] | ------ the method is available for `ratatui::prelude::Line<'_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `red` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-0.29.0/src/style/stylize.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 226 | color!(red); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `color` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: trait `Widget` which provides `render` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui::prelude::Widget; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/components/context_provider.rs - components::context_provider (line 6) stdout ---- [INFO] [stdout] error: cannot find macro `element` in this scope [INFO] [stdout] --> src/components/context_provider.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 3 | element!(ContextProvider(value: Some(Context::owned(MyData { ... }))) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::element; [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit_macros::element; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/components/scroll_view/mod.rs - components::scroll_view (line 6) stdout ---- [INFO] [stdout] error: cannot find macro `element` in this scope [INFO] [stdout] --> src/components/scroll_view/mod.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 3 | element!(ScrollView( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::element; [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit_macros::element; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/components/scroll_view/scrollbars.rs - components::scroll_view::scrollbars (line 4) stdout ---- [INFO] [stdout] error: cannot find macro `element` in this scope [INFO] [stdout] --> src/components/scroll_view/scrollbars.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 3 | element!(ScrollView( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::element; [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit_macros::element; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/element/element_ext.rs - element::element_ext::ElementExt (line 28) stdout ---- [INFO] [stdout] error: cannot find macro `element` in this scope [INFO] [stdout] --> src/element/element_ext.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 3 | element!(MyComponent).fullscreen().await?; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::element; [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit_macros::element; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/element/element_ext.rs:29:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_element_element_ext_rs_28_0() { [INFO] [stdout] | -------------------------------------------------- this is not `async` [INFO] [stdout] 3 | element!(MyComponent).fullscreen().await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/components/border.rs - components::border (line 6) stdout ---- [INFO] [stdout] error: cannot find macro `element` in this scope [INFO] [stdout] --> src/components/border.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 3 | element!(Border( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::element; [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit_macros::element; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/components/view.rs - components::view (line 6) stdout ---- [INFO] [stdout] error: cannot find macro `element` in this scope [INFO] [stdout] --> src/components/view.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 3 | element!(View(flex_direction: Direction::Vertical, gap: 1) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these macros [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit::element; [INFO] [stdout] | [INFO] [stdout] 2 + use ratatui_kit_macros::element; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/component/mod.rs - component::Component (line 29) [INFO] [stdout] src/components/border.rs - components::border (line 6) [INFO] [stdout] src/components/context_provider.rs - components::context_provider (line 6) [INFO] [stdout] src/components/fragment.rs - components::fragment (line 4) [INFO] [stdout] src/components/modal.rs - components::modal (line 4) [INFO] [stdout] src/components/scroll_view/mod.rs - components::scroll_view (line 15) [INFO] [stdout] src/components/scroll_view/mod.rs - components::scroll_view (line 6) [INFO] [stdout] src/components/scroll_view/scrollbars.rs - components::scroll_view::scrollbars (line 4) [INFO] [stdout] src/components/scroll_view/state.rs - components::scroll_view::state (line 6) [INFO] [stdout] src/components/view.rs - components::view (line 6) [INFO] [stdout] src/element/element_ext.rs - element::element_ext::ElementExt (line 28) [INFO] [stdout] src/handler.rs - handler (line 10) [INFO] [stdout] src/handler.rs - handler::Deref (line 10) [INFO] [stdout] src/handler.rs - handler::DerefMut (line 10) [INFO] [stdout] src/hooks/mod.rs - hooks (line 10) [INFO] [stdout] src/hooks/mod.rs - hooks::Hooks (line 137) [INFO] [stdout] src/hooks/use_state.rs - hooks::use_state (line 13) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 17 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.66s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.85s; merged doctests compilation took 0.19s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "097889a62e8114319a78a91161948f58fc25e0ed2d16fbc30baa2a17e683addb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "097889a62e8114319a78a91161948f58fc25e0ed2d16fbc30baa2a17e683addb", kill_on_drop: false }` [INFO] [stdout] 097889a62e8114319a78a91161948f58fc25e0ed2d16fbc30baa2a17e683addb