[INFO] fetching crate too 0.2.0... [INFO] testing too-0.2.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate too 0.2.0 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate too 0.2.0 [INFO] finished tweaking crates.io crate too 0.2.0 [INFO] tweaked toml for crates.io crate too 0.2.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate too 0.2.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 70 packages to latest compatible versions [INFO] [stderr] Adding compact_str v0.8.1 (available: v0.9.0) [INFO] [stderr] Adding crossterm v0.28.1 (available: v0.29.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bd1b969e745abeb73208db0a2c7cd1c4a22b2e3d68cc97dd21dc2ab600b034ec [INFO] running `Command { std: "docker" "start" "-a" "bd1b969e745abeb73208db0a2c7cd1c4a22b2e3d68cc97dd21dc2ab600b034ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bd1b969e745abeb73208db0a2c7cd1c4a22b2e3d68cc97dd21dc2ab600b034ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd1b969e745abeb73208db0a2c7cd1c4a22b2e3d68cc97dd21dc2ab600b034ec", kill_on_drop: false }` [INFO] [stdout] bd1b969e745abeb73208db0a2c7cd1c4a22b2e3d68cc97dd21dc2ab600b034ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d6b91d0557e2d1d60f01615a4da68807ee541b21e820a6deb0bc1c04c7e4bee5 [INFO] running `Command { std: "docker" "start" "-a" "d6b91d0557e2d1d60f01615a4da68807ee541b21e820a6deb0bc1c04c7e4bee5", kill_on_drop: false }` [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling unicode-width v0.2.1 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling str_indices v0.4.4 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling castaway v0.2.4 [INFO] [stderr] Compiling compact_str v0.8.1 [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 too v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/renderer/rgba.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | let scale = |d| (d as f32 / 256.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - let scale = |d| (d as f32 / 256.0); [INFO] [stdout] 141 + let scale = |d| d as f32 / 256.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/views/slider.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn slider(value: &mut f32) -> Slider { [INFO] [stdout] | ^^^^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 85 | pub fn slider(value: &mut f32) -> Slider<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.33s [INFO] running `Command { std: "docker" "inspect" "d6b91d0557e2d1d60f01615a4da68807ee541b21e820a6deb0bc1c04c7e4bee5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6b91d0557e2d1d60f01615a4da68807ee541b21e820a6deb0bc1c04c7e4bee5", kill_on_drop: false }` [INFO] [stdout] d6b91d0557e2d1d60f01615a4da68807ee541b21e820a6deb0bc1c04c7e4bee5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14d9ccddb3834b4a660b4e0eb4adb205d259d31de2f6909a9ef16921e07aa985 [INFO] running `Command { std: "docker" "start" "-a" "14d9ccddb3834b4a660b4e0eb4adb205d259d31de2f6909a9ef16921e07aa985", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/renderer/rgba.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | let scale = |d| (d as f32 / 256.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - let scale = |d| (d as f32 / 256.0); [INFO] [stdout] 141 + let scale = |d| d as f32 / 256.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling too v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/views/slider.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn slider(value: &mut f32) -> Slider { [INFO] [stdout] | ^^^^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 85 | pub fn slider(value: &mut f32) -> Slider<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/renderer/rgba.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | let scale = |d| (d as f32 / 256.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - let scale = |d| (d as f32 / 256.0); [INFO] [stdout] 141 + let scale = |d| d as f32 / 256.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/views/slider.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn slider(value: &mut f32) -> Slider { [INFO] [stdout] | ^^^^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 85 | pub fn slider(value: &mut f32) -> Slider<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.02s [INFO] running `Command { std: "docker" "inspect" "14d9ccddb3834b4a660b4e0eb4adb205d259d31de2f6909a9ef16921e07aa985", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14d9ccddb3834b4a660b4e0eb4adb205d259d31de2f6909a9ef16921e07aa985", kill_on_drop: false }` [INFO] [stdout] 14d9ccddb3834b4a660b4e0eb4adb205d259d31de2f6909a9ef16921e07aa985 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4d89d471efa83a8570efedabfdd23030ff4b59fbfb3e347188a2c3cb91ca19c1 [INFO] running `Command { std: "docker" "start" "-a" "4d89d471efa83a8570efedabfdd23030ff4b59fbfb3e347188a2c3cb91ca19c1", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stderr] --> src/renderer/rgba.rs:141:25 [INFO] [stderr] | [INFO] [stderr] 141 | let scale = |d| (d as f32 / 256.0); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 141 - let scale = |d| (d as f32 / 256.0); [INFO] [stderr] 141 + let scale = |d| d as f32 / 256.0; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/views/slider.rs:85:22 [INFO] [stderr] | [INFO] [stderr] 85 | pub fn slider(value: &mut f32) -> Slider { [INFO] [stderr] | ^^^^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 85 | pub fn slider(value: &mut f32) -> Slider<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `too` (lib) generated 2 warnings (run `cargo fix --lib -p too` to apply 2 suggestions) [INFO] [stderr] warning: `too` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/too-ca2d185e6f1bb9d5) [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 too [INFO] [stderr] warning: unnecessary parentheses around closure body [INFO] [stderr] --> src/renderer/rgba.rs:141:25 [INFO] [stderr] | [INFO] [stderr] 141 | let scale = |d| (d as f32 / 256.0); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 141 - let scale = |d| (d as f32 / 256.0); [INFO] [stderr] 141 + let scale = |d| d as f32 / 256.0; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test src/lib.rs - (line 20) - compile ... ok [INFO] [stdout] test src/view/debug.rs - view::debug::render_tree (line 633) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 59) - compile ... ok [INFO] [stdout] test src/view/debug.rs - view::debug::render_tree (line 621) - compile ... FAILED [INFO] [stdout] test src/view/debug.rs - view::debug::pretty_tree (line 506) - compile ... FAILED [INFO] [stdout] test src/view/debug.rs - view::debug::compact_tree (line 588) - compile ... FAILED [INFO] [stdout] test src/view/builder.rs - view::builder::Builder (line 23) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 12) - compile ... ok [INFO] [stdout] test src/view/layout.rs - view::layout::Layout (line 23) - compile ... FAILED [INFO] [stdout] test src/view/style.rs - view::style::StyleKind (line 12) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 39) - compile ... FAILED [INFO] [stdout] test src/view/state.rs - view::state::State (line 32) - compile ... FAILED [INFO] [stdout] test src/view/style.rs - view::style::StyleKind (line 36) - compile ... FAILED [INFO] [stdout] test src/layout/linear.rs - layout::linear::LinearAllocator::allocate (line 31) ... ok [INFO] [stdout] test src/view/adhoc.rs - view::adhoc::Adhoc (line 12) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/view/debug.rs - view::debug::render_tree (line 633) stdout ---- [INFO] [stdout] error: missing `fn` or `struct` for function or struct definition [INFO] [stdout] --> src/view/debug.rs:634:1 [INFO] [stdout] | [INFO] [stdout] 1 | ViewId(3v1): Text { rect: { x: 35, y: 12, w: 11, h: 1 }, shape: TextShape { label: "hello world", fg: Set(rgb(255, 255, 255, 255)), bg: R... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if you meant to call a macro, try [INFO] [stdout] | [INFO] [stdout] 1 | ViewId!(3v1): Text { rect: { x: 35, y: 12, w: 11, h: 1 }, shape: TextShape { label: "hello world", fg: Set(rgb(255, 255, 255, 255)), bg: Reuse, attribute: None } } [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/view/debug.rs - view::debug::render_tree (line 621) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `render_tree` in module `too::view` [INFO] [stdout] --> src/view/debug.rs:623:12 [INFO] [stdout] | [INFO] [stdout] 5 | too::view::render_tree(|ui| { [INFO] [stdout] | ^^^^^^^^^^^ not found in `too::view` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::debug::render_tree; [INFO] [stdout] | [INFO] [stdout] help: if you import `render_tree`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - too::view::render_tree(|ui| { [INFO] [stdout] 5 + render_tree(|ui| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Align2` [INFO] [stdout] --> src/view/debug.rs:626:16 [INFO] [stdout] | [INFO] [stdout] 8 | ui.aligned(Align2::RIGHT_TOP, |ui| { [INFO] [stdout] | ^^^^^^ use of undeclared type `Align2` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::layout::Align2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fill` in this scope [INFO] [stdout] --> src/view/debug.rs:630:13 [INFO] [stdout] | [INFO] [stdout] 12 | ui.show(fill("#F0F", [10.0, 10.0])); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use too::views::fill; [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/view/debug.rs - view::debug::pretty_tree (line 506) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `pretty_tree` in module `too::view` [INFO] [stdout] --> src/view/debug.rs:508:12 [INFO] [stdout] | [INFO] [stdout] 5 | too::view::pretty_tree(|ui| { [INFO] [stdout] | ^^^^^^^^^^^ not found in `too::view` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::debug::pretty_tree; [INFO] [stdout] | [INFO] [stdout] help: if you import `pretty_tree`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - too::view::pretty_tree(|ui| { [INFO] [stdout] 5 + pretty_tree(|ui| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Align2` [INFO] [stdout] --> src/view/debug.rs:511:16 [INFO] [stdout] | [INFO] [stdout] 8 | ui.aligned(Align2::RIGHT_TOP, |ui| { [INFO] [stdout] | ^^^^^^ use of undeclared type `Align2` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::layout::Align2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fill` in this scope [INFO] [stdout] --> src/view/debug.rs:515:13 [INFO] [stdout] | [INFO] [stdout] 12 | ui.show(fill("#F0F", [10.0, 10.0])); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use too::views::fill; [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/view/debug.rs - view::debug::compact_tree (line 588) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `compact_tree` in module `too::view` [INFO] [stdout] --> src/view/debug.rs:590:12 [INFO] [stdout] | [INFO] [stdout] 5 | too::view::compact_tree(|ui| { [INFO] [stdout] | ^^^^^^^^^^^^ not found in `too::view` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::debug::compact_tree; [INFO] [stdout] | [INFO] [stdout] help: if you import `compact_tree`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - too::view::compact_tree(|ui| { [INFO] [stdout] 5 + compact_tree(|ui| { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Align2` [INFO] [stdout] --> src/view/debug.rs:593:16 [INFO] [stdout] | [INFO] [stdout] 8 | ui.aligned(Align2::RIGHT_TOP, |ui| { [INFO] [stdout] | ^^^^^^ use of undeclared type `Align2` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::layout::Align2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `fill` in this scope [INFO] [stdout] --> src/view/debug.rs:597:13 [INFO] [stdout] | [INFO] [stdout] 12 | ui.show(fill("#F0F", [10.0, 10.0])); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use too::views::fill; [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/view/builder.rs - view::builder::Builder (line 23) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `Builder` in this scope [INFO] [stdout] --> src/view/builder.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 7 | impl<'v> Builder<'v> for Foo { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Builder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `View` in this scope [INFO] [stdout] --> src/view/builder.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 11 | impl View for Foo { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::View; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ui` in this scope [INFO] [stdout] --> src/view/builder.rs:45:53 [INFO] [stdout] | [INFO] [stdout] 24 | fn update(&mut self, args: Self::Args<'_>, ui: &Ui) -> Self::Response { [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Ui; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/view/layout.rs - view::layout::Layout (line 23) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `layout` in this scope [INFO] [stdout] --> src/view/layout.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 3 | let current = layout.nodes.get_current(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Size` [INFO] [stdout] --> src/view/layout.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 4 | let mut size = Size::ZERO; [INFO] [stdout] | ^^^^ use of undeclared type `Size` [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 4 | let mut size = Sized::ZERO; [INFO] [stdout] | + [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::math::Size; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `layout` in this scope [INFO] [stdout] --> src/view/layout.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 6 | size = size.max(layout.compute(child, space)) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `space` in this scope [INFO] [stdout] --> src/view/layout.rs:27:43 [INFO] [stdout] | [INFO] [stdout] 6 | size = size.max(layout.compute(child, space)) [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/view/style.rs - view::style::StyleKind (line 12) stdout ---- [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/view/style.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 5 | fn class(mut self, Class) -> Self; [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] | [INFO] [stdout] help: if this is a parameter name, give it a type [INFO] [stdout] | [INFO] [stdout] 5 | fn class(mut self, Class: TypeName) -> Self; [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: if this is a type, explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 5 | fn class(mut self, _: Class) -> Self; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/view/style.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 6 | fn style(mut self, Style) -> Self; [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] | [INFO] [stdout] help: if this is a parameter name, give it a type [INFO] [stdout] | [INFO] [stdout] 6 | fn style(mut self, Style: TypeName) -> Self; [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: if this is a type, explicitly ignore the parameter name [INFO] [stdout] | [INFO] [stdout] 6 | fn style(mut self, _: Style) -> Self; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/view/style.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 5 | fn class(mut self, Class) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/view/style.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 5 | fn class(mut self, Class) -> Self; [INFO] [stdout] | ^^^^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error[E0642]: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/view/style.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 5 | fn class(mut self, Class) -> Self; [INFO] [stdout] | ^^^^^^^^ pattern not allowed in function without body [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/view/style.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 6 | fn style(mut self, Style) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/view/style.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 6 | fn style(mut self, Style) -> Self; [INFO] [stdout] | ^^^^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error[E0642]: patterns aren't allowed in functions without bodies [INFO] [stdout] --> src/view/style.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 6 | fn style(mut self, Style) -> Self; [INFO] [stdout] | ^^^^^^^^ pattern not allowed in function without body [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Palette` in this scope [INFO] [stdout] --> src/view/style.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 4 | type Class = fn(&Palette) -> Style; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Palette; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0411]: cannot find type `Self` in this scope [INFO] [stdout] --> src/view/style.rs:15:30 [INFO] [stdout] | [INFO] [stdout] 5 | fn class(mut self, Class) -> Self; [INFO] [stdout] | ----- ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] | | [INFO] [stdout] | `Self` not allowed in a function [INFO] [stdout] [INFO] [stdout] error[E0411]: cannot find type `Self` in this scope [INFO] [stdout] --> src/view/style.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 6 | fn style(mut self, Style) -> Self; [INFO] [stdout] | ----- ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] | | [INFO] [stdout] | `Self` not allowed in a function [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0411, E0412, E0642. [INFO] [stdout] For more information about an error, try `rustc --explain E0411`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 39) stdout ---- [INFO] [stdout] error: expected `;`, found `too` [INFO] [stdout] --> src/lib.rs:55:33 [INFO] [stdout] | [INFO] [stdout] 18 | let mut app = App::default() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 19 | too::run(|ui| app.view(ui)) [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `value` in this scope [INFO] [stdout] --> src/lib.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 13 | ui.slider(&mut value); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to use the available field [INFO] [stdout] | [INFO] [stdout] 13 | ui.slider(&mut self.value); [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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/view/state.rs - view::state::State (line 32) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `State` [INFO] [stdout] --> src/view/state.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 3 | let mut state = State::new(Palette::default(), Animations::default()); [INFO] [stdout] | ^^^^^ use of undeclared type `State` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::State; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Palette` [INFO] [stdout] --> src/view/state.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 3 | let mut state = State::new(Palette::default(), Animations::default()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Palette` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Palette; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Animations` [INFO] [stdout] --> src/view/state.rs:33:48 [INFO] [stdout] | [INFO] [stdout] 3 | let mut state = State::new(Palette::default(), Animations::default()); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `Animations` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::animation::Animations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `frame_time` in this scope [INFO] [stdout] --> src/view/state.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 11 | state.update(frame_time.dt()); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `some_rect` in this scope [INFO] [stdout] --> src/view/state.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 14 | state.build(some_rect, |ui|{ [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `my_rasterizer` in this scope [INFO] [stdout] --> src/view/state.rs:49:19 [INFO] [stdout] | [INFO] [stdout] 19 | state.render(&mut my_rasterizer); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_event` in this scope [INFO] [stdout] --> src/view/state.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 6 | if let Some(event) = read_event() { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `display_user_ui` in this scope [INFO] [stdout] --> src/view/state.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 15 | display_user_ui(ui); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 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/view/style.rs - view::style::StyleKind (line 36) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Rgba` in this scope [INFO] [stdout] --> src/view/style.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 5 | background: Rgba, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::renderer::Rgba; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Palette` in this scope [INFO] [stdout] --> src/view/style.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 11 | fn default(palette: &Palette, axis: Axis) -> Self { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Palette; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Axis` in this scope [INFO] [stdout] --> src/view/style.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 11 | fn default(palette: &Palette, axis: Axis) -> Self { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::layout::Axis; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Palette` in this scope [INFO] [stdout] --> src/view/style.rs:54:26 [INFO] [stdout] | [INFO] [stdout] 20 | fn hash_at(palette: &Palette, axis: Axis) -> Self { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Palette; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Axis` in this scope [INFO] [stdout] --> src/view/style.rs:54:41 [INFO] [stdout] | [INFO] [stdout] 20 | fn hash_at(palette: &Palette, axis: Axis) -> Self { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::layout::Axis; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Palette` in this scope [INFO] [stdout] --> src/view/style.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 30 | type MyClass = fn(&Palette, Axis) -> MyStyle; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Palette; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Axis` in this scope [INFO] [stdout] --> src/view/style.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 30 | type MyClass = fn(&Palette, Axis) -> MyStyle; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::layout::Axis; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StyleKind` [INFO] [stdout] --> src/view/style.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 34 | class: StyleKind::Deferred(MyStyle::default), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StyleKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StyleKind` in this scope [INFO] [stdout] --> src/view/style.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 40 | class: StyleKind, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StyleKind` [INFO] [stdout] --> src/view/style.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 45 | self.class = StyleKind::Deferred(class); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StyleKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StyleKind` [INFO] [stdout] --> src/view/style.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 50 | self.class = StyleKind::Direct(style); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StyleKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Builder` in this scope [INFO] [stdout] --> src/view/style.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 55 | impl<'v> Builder<'v> for MyBuilder { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Builder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StyleKind` in this scope [INFO] [stdout] --> src/view/style.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 61 | class: StyleKind, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `View` in this scope [INFO] [stdout] --> src/view/style.rs:98:6 [INFO] [stdout] | [INFO] [stdout] 64 | impl View for MyView { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::View; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Render` in this scope [INFO] [stdout] --> src/view/style.rs:106:36 [INFO] [stdout] | [INFO] [stdout] 72 | fn draw(&mut self, mut render: Render) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Render; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StyleKind` [INFO] [stdout] --> src/view/style.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 76 | StyleKind::Deferred(style) => (style)(render.palette, Axis::Horizontal), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StyleKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Axis` [INFO] [stdout] --> src/view/style.rs:110:67 [INFO] [stdout] | [INFO] [stdout] 76 | StyleKind::Deferred(style) => (style)(render.palette, Axis::Horizontal), [INFO] [stdout] | ^^^^ use of undeclared type `Axis` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::layout::Axis; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StyleKind` [INFO] [stdout] --> src/view/style.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 77 | StyleKind::Direct(style) => style, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StyleKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pixel` [INFO] [stdout] --> src/view/style.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 80 | render.fill_with(Pixel::new(style.fill).bg(style.background)); [INFO] [stdout] | ^^^^^ use of undeclared type `Pixel` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::renderer::Pixel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ui` in this scope [INFO] [stdout] --> src/view/style.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 86 | ui.show(builder().class(MyStyle::hash_at)); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ui` in this scope [INFO] [stdout] --> src/view/style.rs:122:1 [INFO] [stdout] | [INFO] [stdout] 88 | ui.show(builder().style(MyStyle { [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Rgba` [INFO] [stdout] --> src/view/style.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 89 | background: Rgba::hex("#123"), [INFO] [stdout] | ^^^^ use of undeclared type `Rgba` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::renderer::Rgba; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ui` in this scope [INFO] [stdout] --> src/view/style.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 90 | ..MyStyle::hash_at(&ui.palette(), Axis::Horizontal) [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Axis` [INFO] [stdout] --> src/view/style.rs:124:39 [INFO] [stdout] | [INFO] [stdout] 90 | ..MyStyle::hash_at(&ui.palette(), Axis::Horizontal) [INFO] [stdout] | ^^^^ use of undeclared type `Axis` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::layout::Axis; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 24 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/view/adhoc.rs - view::adhoc::Adhoc (line 12) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Attribute` in this scope [INFO] [stdout] --> src/view/adhoc.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 6 | attribute: Option, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use crossterm::style::Attribute; [INFO] [stdout] | [INFO] [stdout] 2 + use too::renderer::Attribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Palette` in this scope [INFO] [stdout] --> src/view/adhoc.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 10 | fn default(_palette: &Palette) -> Self { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Palette; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Palette` in this scope [INFO] [stdout] --> src/view/adhoc.rs:24:26 [INFO] [stdout] | [INFO] [stdout] 14 | fn italic(_palette: &Palette) -> Self { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Palette; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Attribute` [INFO] [stdout] --> src/view/adhoc.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 16 | attribute: Some(Attribute::ITALIC), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Attribute` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use crossterm::style::Attribute; [INFO] [stdout] | [INFO] [stdout] 2 + use too::renderer::Attribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Palette` in this scope [INFO] [stdout] --> src/view/adhoc.rs:31:33 [INFO] [stdout] | [INFO] [stdout] 21 | type ButtonWithLabelClass = fn(&Palette) -> ButtonWithLabelStyle; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Palette; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StyleKind` in this scope [INFO] [stdout] --> src/view/adhoc.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 27 | class: StyleKind, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StyleKind` [INFO] [stdout] --> src/view/adhoc.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 32 | self.class = StyleKind::Deferred(class); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StyleKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StyleKind` [INFO] [stdout] --> src/view/adhoc.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 37 | self.class = StyleKind::Direct(style); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StyleKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Adhoc` in this scope [INFO] [stdout] --> src/view/adhoc.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 42 | impl<'v> Adhoc<'v> for ButtonWithLabel<'v> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Adhoc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Response` in this scope [INFO] [stdout] --> src/view/adhoc.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 43 | type Output = Response; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Response; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ButtonResponse` in this scope [INFO] [stdout] --> src/view/adhoc.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 43 | type Output = Response; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::views::ButtonResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ui` in this scope [INFO] [stdout] --> src/view/adhoc.rs:55:24 [INFO] [stdout] | [INFO] [stdout] 45 | fn show(self, ui: &Ui) -> Self::Output { [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::Ui; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StyleKind` [INFO] [stdout] --> src/view/adhoc.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 47 | StyleKind::Deferred(style) => (style)(&ui.palette()), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StyleKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StyleKind` [INFO] [stdout] --> src/view/adhoc.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 48 | StyleKind::Direct(style) => style, [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StyleKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Attribute` [INFO] [stdout] --> src/view/adhoc.rs:61:46 [INFO] [stdout] | [INFO] [stdout] 51 | let attr = style.attribute.unwrap_or(Attribute::RESET); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Attribute` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use crossterm::style::Attribute; [INFO] [stdout] | [INFO] [stdout] 2 + use too::renderer::Attribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `label` in this scope [INFO] [stdout] --> src/view/adhoc.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 56 | ui.show(label(self.label).attribute(attr)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to use the available field [INFO] [stdout] | [INFO] [stdout] 56 | ui.show(self.label(self.label).attribute(attr)); [INFO] [stdout] | +++++ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use too::views::label; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StyleKind` [INFO] [stdout] --> src/view/adhoc.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 68 | class: StyleKind::Deferred(ButtonWithLabelStyle::default), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StyleKind` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use too::view::StyleKind; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ui` in this scope [INFO] [stdout] --> src/view/adhoc.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 73 | ui.adhoc(button_with_label("hello", "world").class(ButtonWithLabelStyle::italic)); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> src/view/adhoc.rs:55:31 [INFO] [stdout] | [INFO] [stdout] 45 | fn show(self, ui: &Ui) -> Self::Output { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use fully-qualified syntax [INFO] [stdout] | [INFO] [stdout] 45 - fn show(self, ui: &Ui) -> Self::Output { [INFO] [stdout] 45 + fn show(self, ui: &Ui) -> as BitOr>::Output { [INFO] [stdout] | [INFO] [stdout] 45 - fn show(self, ui: &Ui) -> Self::Output { [INFO] [stdout] 45 + fn show(self, ui: &Ui) -> as IntoFuture>::Output { [INFO] [stdout] | [INFO] [stdout] 45 - fn show(self, ui: &Ui) -> Self::Output { [INFO] [stdout] 45 + fn show(self, ui: &Ui) -> as too::view::Adhoc>::Output { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0223, E0405, E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0223`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 39) [INFO] [stdout] src/view/adhoc.rs - view::adhoc::Adhoc (line 12) [INFO] [stdout] src/view/builder.rs - view::builder::Builder (line 23) [INFO] [stdout] src/view/debug.rs - view::debug::compact_tree (line 588) [INFO] [stdout] src/view/debug.rs - view::debug::pretty_tree (line 506) [INFO] [stdout] src/view/debug.rs - view::debug::render_tree (line 621) [INFO] [stdout] src/view/debug.rs - view::debug::render_tree (line 633) [INFO] [stdout] src/view/layout.rs - view::layout::Layout (line 23) [INFO] [stdout] src/view/state.rs - view::state::State (line 32) [INFO] [stdout] src/view/style.rs - view::style::StyleKind (line 12) [INFO] [stdout] src/view/style.rs - view::style::StyleKind (line 36) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 11 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.52s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "4d89d471efa83a8570efedabfdd23030ff4b59fbfb3e347188a2c3cb91ca19c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d89d471efa83a8570efedabfdd23030ff4b59fbfb3e347188a2c3cb91ca19c1", kill_on_drop: false }` [INFO] [stdout] 4d89d471efa83a8570efedabfdd23030ff4b59fbfb3e347188a2c3cb91ca19c1