[INFO] cloning repository https://github.com/NoahJinnn/browser-toy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NoahJinnn/browser-toy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoahJinnn%2Fbrowser-toy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoahJinnn%2Fbrowser-toy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d621f79bb6c9b36a966f80092838232daafd455e [INFO] checking NoahJinnn/browser-toy against master#83dcdb3a5dad0ed1e3e1fadc848d3f7727b41aa5 for pr-128425 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoahJinnn%2Fbrowser-toy" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NoahJinnn/browser-toy on toolchain 83dcdb3a5dad0ed1e3e1fadc848d3f7727b41aa5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+83dcdb3a5dad0ed1e3e1fadc848d3f7727b41aa5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NoahJinnn/browser-toy [INFO] finished tweaking git repo https://github.com/NoahJinnn/browser-toy [INFO] tweaked toml for git repo https://github.com/NoahJinnn/browser-toy written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/NoahJinnn/browser-toy 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" "+83dcdb3a5dad0ed1e3e1fadc848d3f7727b41aa5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking NoahJinnn/browser-toy against try#063c08dd8db6ff113bb809c130456f1781abe72c for pr-128425 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoahJinnn%2Fbrowser-toy" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NoahJinnn/browser-toy on toolchain 063c08dd8db6ff113bb809c130456f1781abe72c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+063c08dd8db6ff113bb809c130456f1781abe72c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NoahJinnn/browser-toy [INFO] finished tweaking git repo https://github.com/NoahJinnn/browser-toy [INFO] tweaked toml for git repo https://github.com/NoahJinnn/browser-toy written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/NoahJinnn/browser-toy 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" "+063c08dd8db6ff113bb809c130456f1781abe72c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking NoahJinnn/browser-toy against try#063c08dd8db6ff113bb809c130456f1781abe72c for pr-128425 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoahJinnn%2Fbrowser-toy" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/NoahJinnn/browser-toy on toolchain 063c08dd8db6ff113bb809c130456f1781abe72c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+063c08dd8db6ff113bb809c130456f1781abe72c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/NoahJinnn/browser-toy [INFO] finished tweaking git repo https://github.com/NoahJinnn/browser-toy [INFO] tweaked toml for git repo https://github.com/NoahJinnn/browser-toy written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/NoahJinnn/browser-toy 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" "+063c08dd8db6ff113bb809c130456f1781abe72c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+063c08dd8db6ff113bb809c130456f1781abe72c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4a33351e96e743eb15e05bf97af9187d9996c68c00e9175e1965ec7a870d6c4 [INFO] running `Command { std: "docker" "start" "-a" "a4a33351e96e743eb15e05bf97af9187d9996c68c00e9175e1965ec7a870d6c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4a33351e96e743eb15e05bf97af9187d9996c68c00e9175e1965ec7a870d6c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4a33351e96e743eb15e05bf97af9187d9996c68c00e9175e1965ec7a870d6c4", kill_on_drop: false }` [INFO] [stdout] a4a33351e96e743eb15e05bf97af9187d9996c68c00e9175e1965ec7a870d6c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+063c08dd8db6ff113bb809c130456f1781abe72c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b207d6b2db3e6809757fb9e38d4b1935b3c9942656b3db38d45ed083f0c0ab4f [INFO] running `Command { std: "docker" "start" "-a" "b207d6b2db3e6809757fb9e38d4b1935b3c9942656b3db38d45ed083f0c0ab4f", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling rayon-core v1.10.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking bitflags v0.9.1 [INFO] [stderr] Checking inflate v0.2.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking num_cpus v1.14.0 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking gif v0.9.2 [INFO] [stderr] Checking crossbeam-channel v0.5.6 [INFO] [stderr] Checking crossbeam-deque v0.8.2 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking rayon v1.6.0 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking png v0.8.0 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking image v0.14.0 [INFO] [stderr] Checking browser-toy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `crate::layout::AnonymousBlock`, `crate::layout::BlockNode`, `crate::layout::InlineNode`, `crate::layout::LayoutBox` [INFO] [stdout] --> src/painting.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::layout::{AnonymousBlock, BlockNode, InlineNode, LayoutBox, Rect}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ no `LayoutBox` in `layout` [INFO] [stdout] | | | | [INFO] [stdout] | | | no `InlineNode` in `layout` [INFO] [stdout] | | no `BlockNode` in `layout` [INFO] [stdout] | no `AnonymousBlock` in `layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::layout::AnonymousBlock`, `crate::layout::BlockNode`, `crate::layout::InlineNode`, `crate::layout::LayoutBox` [INFO] [stdout] --> src/painting.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::layout::{AnonymousBlock, BlockNode, InlineNode, LayoutBox, Rect}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ no `LayoutBox` in `layout` [INFO] [stdout] | | | | [INFO] [stdout] | | | no `InlineNode` in `layout` [INFO] [stdout] | | no `BlockNode` in `layout` [INFO] [stdout] | no `AnonymousBlock` in `layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeType` [INFO] [stdout] --> src/style.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | NodeType::Element(ref elem) => specified_values(elem, stylesheet), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `NodeType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 + use crate::dom::NodeType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeType` [INFO] [stdout] --> src/style.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | NodeType::Text(_) => HashMap::new() [INFO] [stdout] | ^^^^^^^^ use of undeclared type `NodeType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 + use crate::dom::NodeType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ElementData` in this scope [INFO] [stdout] --> src/style.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | fn specified_values(elem: &ElementData, stylesheet: &Stylesheet) -> PropertyMap { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: struct `crate::dom::ElementData` exists but is inaccessible [INFO] [stdout] --> src/dom.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct ElementData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Specificity` in this scope [INFO] [stdout] --> src/style.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | type MatchedRule<'a> = (Specificity, &'a Rule); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::Specificity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rule` in this scope [INFO] [stdout] --> src/style.rs:86:42 [INFO] [stdout] | [INFO] [stdout] 86 | type MatchedRule<'a> = (Specificity, &'a Rule); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::Rule; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ElementData` in this scope [INFO] [stdout] --> src/style.rs:89:30 [INFO] [stdout] | [INFO] [stdout] 89 | fn matching_rules<'a>(elem: &ElementData, stylesheet: &'a Stylesheet) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: struct `crate::dom::ElementData` exists but is inaccessible [INFO] [stdout] --> src/dom.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct ElementData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ElementData` in this scope [INFO] [stdout] --> src/style.rs:97:26 [INFO] [stdout] | [INFO] [stdout] 97 | fn match_rule<'a>(elem: &ElementData, rule: &'a Rule) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: struct `crate::dom::ElementData` exists but is inaccessible [INFO] [stdout] --> src/dom.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct ElementData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rule` in this scope [INFO] [stdout] --> src/style.rs:97:49 [INFO] [stdout] | [INFO] [stdout] 97 | fn match_rule<'a>(elem: &ElementData, rule: &'a Rule) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::Rule; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeType` [INFO] [stdout] --> src/style.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | NodeType::Element(ref elem) => specified_values(elem, stylesheet), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `NodeType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 + use crate::dom::NodeType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ElementData` in this scope [INFO] [stdout] --> src/style.rs:104:19 [INFO] [stdout] | [INFO] [stdout] 104 | fn matches(elem: &ElementData, selector: &Selector) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: struct `crate::dom::ElementData` exists but is inaccessible [INFO] [stdout] --> src/dom.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct ElementData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NodeType` [INFO] [stdout] --> src/style.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | NodeType::Text(_) => HashMap::new() [INFO] [stdout] | ^^^^^^^^ use of undeclared type `NodeType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 + use crate::dom::NodeType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ElementData` in this scope [INFO] [stdout] --> src/style.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | fn specified_values(elem: &ElementData, stylesheet: &Stylesheet) -> PropertyMap { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: struct `crate::dom::ElementData` exists but is inaccessible [INFO] [stdout] --> src/dom.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct ElementData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Selector` in this scope [INFO] [stdout] --> src/style.rs:104:43 [INFO] [stdout] | [INFO] [stdout] 104 | fn matches(elem: &ElementData, selector: &Selector) -> bool { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::Selector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Specificity` in this scope [INFO] [stdout] --> src/style.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | type MatchedRule<'a> = (Specificity, &'a Rule); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::Specificity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rule` in this scope [INFO] [stdout] --> src/style.rs:86:42 [INFO] [stdout] | [INFO] [stdout] 86 | type MatchedRule<'a> = (Specificity, &'a Rule); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::Rule; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Selector` [INFO] [stdout] --> src/style.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | Selector::Simple(ref simple_selector) => matches_simple_selector(elem, simple_selector) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Selector` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::Selector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ElementData` in this scope [INFO] [stdout] --> src/style.rs:89:30 [INFO] [stdout] | [INFO] [stdout] 89 | fn matching_rules<'a>(elem: &ElementData, stylesheet: &'a Stylesheet) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: struct `crate::dom::ElementData` exists but is inaccessible [INFO] [stdout] --> src/dom.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct ElementData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ElementData` in this scope [INFO] [stdout] --> src/style.rs:97:26 [INFO] [stdout] | [INFO] [stdout] 97 | fn match_rule<'a>(elem: &ElementData, rule: &'a Rule) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: struct `crate::dom::ElementData` exists but is inaccessible [INFO] [stdout] --> src/dom.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct ElementData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ElementData` in this scope [INFO] [stdout] --> src/style.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | fn matches_simple_selector(elem: &ElementData, selector: &SimpleSelector) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: struct `crate::dom::ElementData` exists but is inaccessible [INFO] [stdout] --> src/dom.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct ElementData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Rule` in this scope [INFO] [stdout] --> src/style.rs:97:49 [INFO] [stdout] | [INFO] [stdout] 97 | fn match_rule<'a>(elem: &ElementData, rule: &'a Rule) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::Rule; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ElementData` in this scope [INFO] [stdout] --> src/style.rs:104:19 [INFO] [stdout] | [INFO] [stdout] 104 | fn matches(elem: &ElementData, selector: &Selector) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: struct `crate::dom::ElementData` exists but is inaccessible [INFO] [stdout] --> src/dom.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct ElementData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SimpleSelector` in this scope [INFO] [stdout] --> src/style.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | fn matches_simple_selector(elem: &ElementData, selector: &SimpleSelector) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::SimpleSelector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Selector` in this scope [INFO] [stdout] --> src/style.rs:104:43 [INFO] [stdout] | [INFO] [stdout] 104 | fn matches(elem: &ElementData, selector: &Selector) -> bool { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::Selector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Selector` [INFO] [stdout] --> src/style.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | Selector::Simple(ref simple_selector) => matches_simple_selector(elem, simple_selector) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Selector` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::Selector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `layout_tree` in module `layout` [INFO] [stdout] --> src/main.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | let layout_root = layout::layout_tree(&style_root, viewport); [INFO] [stdout] | ^^^^^^^^^^^ not found in `layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ElementData` in this scope [INFO] [stdout] --> src/style.rs:110:35 [INFO] [stdout] | [INFO] [stdout] 110 | fn matches_simple_selector(elem: &ElementData, selector: &SimpleSelector) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: struct `crate::dom::ElementData` exists but is inaccessible [INFO] [stdout] --> src/dom.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | struct ElementData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SimpleSelector` in this scope [INFO] [stdout] --> src/style.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | fn matches_simple_selector(elem: &ElementData, selector: &SimpleSelector) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 + use crate::css::SimpleSelector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `layout_tree` in module `layout` [INFO] [stdout] --> src/main.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | let layout_root = layout::layout_tree(&style_root, viewport); [INFO] [stdout] | ^^^^^^^^^^^ not found in `layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `node_type` on type `&'a Node` [INFO] [stdout] --> src/style.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | specified_values: match root.node_type { [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `node_type` on type `&'a Node` [INFO] [stdout] --> src/style.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | specified_values: match root.node_type { [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `children` of struct `Node` is private [INFO] [stdout] --> src/style.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 64 | children: root.children.iter().map(|child| style_tree(child, stylesheet)).collect(), [INFO] [stdout] | ^^^^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0616]: field `children` of struct `Node` is private [INFO] [stdout] --> src/style.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 64 | children: root.children.iter().map(|child| style_tree(child, stylesheet)).collect(), [INFO] [stdout] | ^^^^^^^^ private field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0317]: `if` may be missing an `else` clause [INFO] [stdout] --> src/main.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | let ok = if png { [INFO] [stdout] | ______________^ [INFO] [stdout] 56 | | let canvas = painting::paint(&layout_root, viewport.content); [INFO] [stdout] 57 | | let (w, h) = (canvas.width as u32, canvas.height as u32); [INFO] [stdout] 58 | | let img = image::ImageBuffer::from_fn(w, h, move |x, y| { [INFO] [stdout] ... | [INFO] [stdout] 62 | | image::ImageRgba8(img).save(&mut file, image::PNG).is_ok() [INFO] [stdout] | | ---------------------------------------------------------- found here [INFO] [stdout] 63 | | }; [INFO] [stdout] | |_____^ expected `bool`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: `if` expressions without `else` evaluate to `()` [INFO] [stdout] = help: consider adding an `else` block that evaluates to the expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0317]: `if` may be missing an `else` clause [INFO] [stdout] --> src/main.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | let ok = if png { [INFO] [stdout] | ______________^ [INFO] [stdout] 56 | | let canvas = painting::paint(&layout_root, viewport.content); [INFO] [stdout] 57 | | let (w, h) = (canvas.width as u32, canvas.height as u32); [INFO] [stdout] 58 | | let img = image::ImageBuffer::from_fn(w, h, move |x, y| { [INFO] [stdout] ... | [INFO] [stdout] 62 | | image::ImageRgba8(img).save(&mut file, image::PNG).is_ok() [INFO] [stdout] | | ---------------------------------------------------------- found here [INFO] [stdout] 63 | | }; [INFO] [stdout] | |_____^ expected `bool`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: `if` expressions without `else` evaluate to `()` [INFO] [stdout] = help: consider adding an `else` block that evaluates to the expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0317, E0412, E0425, E0432, E0433, E0609, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0317`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0317, E0412, E0425, E0432, E0433, E0609, E0616. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0317`. [INFO] [stdout] [INFO] [stderr] error: could not compile `browser-toy` (bin "browser-toy") due to 19 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `browser-toy` (bin "browser-toy" test) due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "b207d6b2db3e6809757fb9e38d4b1935b3c9942656b3db38d45ed083f0c0ab4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b207d6b2db3e6809757fb9e38d4b1935b3c9942656b3db38d45ed083f0c0ab4f", kill_on_drop: false }` [INFO] [stdout] b207d6b2db3e6809757fb9e38d4b1935b3c9942656b3db38d45ed083f0c0ab4f