[INFO] cloning repository https://github.com/harrystb/hb_html [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/harrystb/hb_html" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharrystb%2Fhb_html", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharrystb%2Fhb_html'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 65d71eb542731b6b22494da010038d1aabb85416 [INFO] checking harrystb/hb_html against try#8de4b308b608cded0ebccf658a0fc719bce87d4e for pr-89056 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharrystb%2Fhb_html" "/workspace/builds/worker-72/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-72/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/harrystb/hb_html on toolchain 8de4b308b608cded0ebccf658a0fc719bce87d4e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8de4b308b608cded0ebccf658a0fc719bce87d4e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/harrystb/hb_html [INFO] finished tweaking git repo https://github.com/harrystb/hb_html [INFO] tweaked toml for git repo https://github.com/harrystb/hb_html written to /workspace/builds/worker-72/source/Cargo.toml [INFO] crate git repo https://github.com/harrystb/hb_html already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8de4b308b608cded0ebccf658a0fc719bce87d4e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+8de4b308b608cded0ebccf658a0fc719bce87d4e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2122157e66bc9d9eb294f550f0462abd1ffe9f15f680e82d8020e42a8033cb84 [INFO] running `Command { std: "docker" "start" "-a" "2122157e66bc9d9eb294f550f0462abd1ffe9f15f680e82d8020e42a8033cb84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2122157e66bc9d9eb294f550f0462abd1ffe9f15f680e82d8020e42a8033cb84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2122157e66bc9d9eb294f550f0462abd1ffe9f15f680e82d8020e42a8033cb84", kill_on_drop: false }` [INFO] [stdout] 2122157e66bc9d9eb294f550f0462abd1ffe9f15f680e82d8020e42a8033cb84 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-72/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" "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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+8de4b308b608cded0ebccf658a0fc719bce87d4e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f02f39a2b58ea9590f3ad6e447766ce262ffae5d57ba66020dc819765de23ee8 [INFO] running `Command { std: "docker" "start" "-a" "f02f39a2b58ea9590f3ad6e447766ce262ffae5d57ba66020dc819765de23ee8", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking hb_html v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/lib.rs:1109:39 [INFO] [stdout] | [INFO] [stdout] 1109 | fn matches<'a, T : Into<&'a str>>(selector: T) -> bool { todo!() } [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/lib.rs:1110:41 [INFO] [stdout] | [INFO] [stdout] 1110 | fn has_child<'a, T : Into<&'a str>>(selector: T) -> bool { todo!() } [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/lib.rs:1111:45 [INFO] [stdout] | [INFO] [stdout] 1111 | fn has_decendant<'a, T : Into<&'a str>>(selector: T) -> bool { todo!() } [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/lib.rs:1112:45 [INFO] [stdout] | [INFO] [stdout] 1112 | fn contains_text<'a, T : Into<&'a str>>(selector: T) -> bool { todo!() } [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/lib.rs:1113:51 [INFO] [stdout] | [INFO] [stdout] 1113 | fn child_contains_text<'a, T : Into<&'a str>>(selector: T) -> bool { todo!() } [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `selector` [INFO] [stdout] --> src/lib.rs:1114:55 [INFO] [stdout] | [INFO] [stdout] 1114 | fn decendant_contains_text<'a, T : Into<&'a str>>(selector: T) -> bool { todo!() } [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | let mut node_rc = Rc::new(RefCell::new(HtmlNode::new(tag_str))); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:741:79 [INFO] [stdout] | [INFO] [stdout] 716 | impl <'a> Iterator for HtmlNodeIterator <'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 741 | self.current_content_iter = Some(Box::new(n.borrow().iter())); [INFO] [stdout] | ^^^^^^^^^^------- - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary which is freed while still in use [INFO] [stdout] | argument requires that borrow lasts for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:802:67 [INFO] [stdout] | [INFO] [stdout] 777 | impl<'a> Iterator for HtmlDocIterator<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 802 | self.current_node_iter = Some(n.borrow().iter()); [INFO] [stdout] | ^^^^^^^^^^------- - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary which is freed while still in use [INFO] [stdout] | argument requires that borrow lasts for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:859:62 [INFO] [stdout] | [INFO] [stdout] 846 | impl<'a> Iterator for HtmlContentSliceIterator<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 859 | self.current_content_iter = Some(n.borrow().iter()); [INFO] [stdout] | ^^^^^^^^^^------- - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary which is freed while still in use [INFO] [stdout] | argument requires that borrow lasts for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:905:62 [INFO] [stdout] | [INFO] [stdout] 895 | impl<'a> Iterator for HtmlNodeSliceIterator<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 905 | self.current_content_iter = Some(n.borrow().iter()); [INFO] [stdout] | ^^^^^^^^^^------- - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary which is freed while still in use [INFO] [stdout] | argument requires that borrow lasts for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hb_html` due to 5 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:988:47 [INFO] [stdout] | [INFO] [stdout] 988 | ... HtmlContent::Node(HtmlNode {tag : "h1".to_owned(), id : None, class : Some(vec!["heading".to_owned()]), attributes : None, contents... [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:988:47 [INFO] [stdout] | [INFO] [stdout] 988 | ...de(HtmlNode {tag : "h1".to_owned(), id : None, class : Some(vec!["heading".to_owned()]), attributes : None, contents : Some(vec![HtmlContent::Text("A Sample HTML Document (Test File)".to_owned())])... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:990:47 [INFO] [stdout] | [INFO] [stdout] 990 | ... HtmlContent::Node(HtmlNode {tag : "p".to_owned(), id : None, class : None, attributes : None, contents : Some(vec![HtmlContent::Tex... [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:990:47 [INFO] [stdout] | [INFO] [stdout] 990 | ...de(HtmlNode {tag : "p".to_owned(), id : None, class : None, attributes : None, contents : Some(vec![HtmlContent::Text("A blank HTML document for testing purposes.".to_owned())])... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:993:51 [INFO] [stdout] | [INFO] [stdout] 993 | ... HtmlContent::Node(HtmlNode {tag:"a".to_owned(), id : None, class : None, attributes : Some(a1_attrs.clone()), contents : Some(vec![... [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:993:51 [INFO] [stdout] | [INFO] [stdout] 993 | ...de(HtmlNode {tag:"a".to_owned(), id : None, class : None, attributes : Some(a1_attrs.clone()), contents : Some(vec![HtmlContent::Text("Go back to the demo".to_owned())])... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:992:47 [INFO] [stdout] | [INFO] [stdout] 992 | ... HtmlContent::Node(HtmlNode {tag : "p".to_owned(), id : None, class : None, attributes : None, contents : Some(vec![ [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:992:47 [INFO] [stdout] | [INFO] [stdout] 992 | ... HtmlContent::Node(HtmlNode {tag : "p".to_owned(), id : None, class : None, attributes : None, contents : Some(vec![ [INFO] [stdout] | _________________________^ [INFO] [stdout] 993 | | ... HtmlContent::Node(HtmlNode {tag:"a".to_owned(), id : None, class : None, attributes : Some(a1_attrs.clone()), contents : Some(v... [INFO] [stdout] 994 | | ... ])}), [INFO] [stdout] | |_____________^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:981:39 [INFO] [stdout] | [INFO] [stdout] 981 | HtmlContent::Node(HtmlNode{ [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:981:39 [INFO] [stdout] | [INFO] [stdout] 981 | HtmlContent::Node(HtmlNode{ [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 982 | | tag : "body".to_owned(), [INFO] [stdout] 983 | | class : None, [INFO] [stdout] 984 | | id : None, [INFO] [stdout] ... | [INFO] [stdout] 996 | | ]), [INFO] [stdout] 997 | | }), [INFO] [stdout] | |_____________________^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:974:31 [INFO] [stdout] | [INFO] [stdout] 974 | HtmlContent::Node(HtmlNode{ [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:974:31 [INFO] [stdout] | [INFO] [stdout] 974 | HtmlContent::Node(HtmlNode{ [INFO] [stdout] | _______________________________^ [INFO] [stdout] 975 | | tag : "html".to_owned(), [INFO] [stdout] 976 | | class : None, [INFO] [stdout] 977 | | id : None, [INFO] [stdout] ... | [INFO] [stdout] 998 | | ]), [INFO] [stdout] 999 | | }) [INFO] [stdout] | |_____________^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/lib.rs:1005:40 [INFO] [stdout] | [INFO] [stdout] 1003 | let top_node = match &nodes[1] { [INFO] [stdout] | ________________________- [INFO] [stdout] 1004 | | HtmlContent::Node(n) => n, [INFO] [stdout] | | - this is found to be of type `&std::rc::Rc>` [INFO] [stdout] 1005 | | HtmlContent::Comment(_) => &error_node, [INFO] [stdout] | | ^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] 1006 | | HtmlContent::Text(_) => &error_node, [INFO] [stdout] 1007 | | }; [INFO] [stdout] | |_________- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected type `&std::rc::Rc>` [INFO] [stdout] found reference `&HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:1015:47 [INFO] [stdout] | [INFO] [stdout] 1015 | ... HtmlContent::Node(HtmlNode {tag : "h1".to_owned(), id : None, class : Some(vec!["heading".to_owned()]), attributes : None, contents... [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1015:47 [INFO] [stdout] | [INFO] [stdout] 1015 | ...de(HtmlNode {tag : "h1".to_owned(), id : None, class : Some(vec!["heading".to_owned()]), attributes : None, contents : Some(vec![HtmlContent::Text("A Sample HTML Document (Test File)".to_owned())])... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:1017:47 [INFO] [stdout] | [INFO] [stdout] 1017 | ... HtmlContent::Node(HtmlNode {tag : "p".to_owned(), id : None, class : None, attributes : None, contents : Some(vec![HtmlContent::Tex... [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1017:47 [INFO] [stdout] | [INFO] [stdout] 1017 | ...de(HtmlNode {tag : "p".to_owned(), id : None, class : None, attributes : None, contents : Some(vec![HtmlContent::Text("A blank HTML document for testing purposes.".to_owned())])... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:1020:51 [INFO] [stdout] | [INFO] [stdout] 1020 | ... HtmlContent::Node(HtmlNode {tag:"a".to_owned(), id : None, class : None, attributes : Some(a1_attrs.clone()), contents : Some(vec![... [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1020:51 [INFO] [stdout] | [INFO] [stdout] 1020 | ...de(HtmlNode {tag:"a".to_owned(), id : None, class : None, attributes : Some(a1_attrs.clone()), contents : Some(vec![HtmlContent::Text("Go back to the demo".to_owned())])... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:1019:47 [INFO] [stdout] | [INFO] [stdout] 1019 | ... HtmlContent::Node(HtmlNode {tag : "p".to_owned(), id : None, class : None, attributes : None, contents : Some(vec![ [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1019:47 [INFO] [stdout] | [INFO] [stdout] 1019 | ... HtmlContent::Node(HtmlNode {tag : "p".to_owned(), id : None, class : None, attributes : None, contents : Some(vec![ [INFO] [stdout] | _________________________^ [INFO] [stdout] 1020 | | ... HtmlContent::Node(HtmlNode {tag:"a".to_owned(), id : None, class : None, attributes : Some(a1_attrs.clone()), contents : Some(v... [INFO] [stdout] 1021 | | ... ])}), [INFO] [stdout] | |_____________^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:1008:25 [INFO] [stdout] | [INFO] [stdout] 1008 | let next_node = HtmlNode{ [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:1025:26 [INFO] [stdout] | [INFO] [stdout] 1025 | ... let third_node = HtmlNode {tag : "h1".to_owned(), id : None, class : Some(vec!["heading".to_owned()]), attributes : None, contents ... [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:1026:26 [INFO] [stdout] | [INFO] [stdout] 1026 | ... let forth_node = HtmlNode {tag : "p".to_owned(), id : None, class : None, attributes : None, contents : Some(vec![HtmlContent::Text... [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:1028:51 [INFO] [stdout] | [INFO] [stdout] 1028 | ... HtmlContent::Node(HtmlNode {tag:"a".to_owned(), id : None, class : None, attributes : Some(a1_attrs.clone()), contents : Some(vec![... [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1028:51 [INFO] [stdout] | [INFO] [stdout] 1028 | ...de(HtmlNode {tag:"a".to_owned(), id : None, class : None, attributes : Some(a1_attrs.clone()), contents : Some(vec![HtmlContent::Text("Go back to the demo".to_owned())])... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:1027:26 [INFO] [stdout] | [INFO] [stdout] 1027 | let fifth_node = HtmlNode {tag : "p".to_owned(), id : None, class : None, attributes : None, contents : Some(vec![ [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `parent` in initializer of `HtmlNode` [INFO] [stdout] --> src/lib.rs:1030:25 [INFO] [stdout] | [INFO] [stdout] 1030 | ... let last_node = HtmlNode {tag:"a".to_owned(), id : None, class : None, attributes : Some(a1_attrs.clone()), contents : Some(vec![Ht... [INFO] [stdout] | ^^^^^^^^ missing `parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1033:9 [INFO] [stdout] | [INFO] [stdout] 1033 | assert_eq!(doc_iter.next(), Some(&next_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1034:9 [INFO] [stdout] | [INFO] [stdout] 1034 | assert_eq!(doc_iter.next(), Some(&third_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1035:9 [INFO] [stdout] | [INFO] [stdout] 1035 | assert_eq!(doc_iter.next(), Some(&forth_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1036:9 [INFO] [stdout] | [INFO] [stdout] 1036 | assert_eq!(doc_iter.next(), Some(&fifth_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1037:9 [INFO] [stdout] | [INFO] [stdout] 1037 | assert_eq!(doc_iter.next(), Some(&last_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1041:31 [INFO] [stdout] | [INFO] [stdout] 1041 | HtmlContent::Node(third_node.clone()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1042:31 [INFO] [stdout] | [INFO] [stdout] 1042 | HtmlContent::Node(forth_node.clone()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1043:31 [INFO] [stdout] | [INFO] [stdout] 1043 | HtmlContent::Node(fifth_node.clone()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1047:9 [INFO] [stdout] | [INFO] [stdout] 1047 | assert_eq!(content_slice_iter.next(), Some(&third_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1048:9 [INFO] [stdout] | [INFO] [stdout] 1048 | assert_eq!(content_slice_iter.next(), Some(&forth_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1049:9 [INFO] [stdout] | [INFO] [stdout] 1049 | assert_eq!(content_slice_iter.next(), Some(&fifth_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1050:9 [INFO] [stdout] | [INFO] [stdout] 1050 | assert_eq!(content_slice_iter.next(), Some(&last_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `html_iter` found for slice `[HtmlNode]` in the current scope [INFO] [stdout] --> src/lib.rs:1059:48 [INFO] [stdout] | [INFO] [stdout] 1059 | let mut node_slice_iter = node_arr[..].html_iter(); [INFO] [stdout] | ^^^^^^^^^ method not found in `[HtmlNode]` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `html_iter`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `HtmlContentSliceIterCreator` [INFO] [stdout] candidate #2: `HtmlNodeSliceIterCreator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1067:31 [INFO] [stdout] | [INFO] [stdout] 1067 | HtmlContent::Node(third_node.clone()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1068:31 [INFO] [stdout] | [INFO] [stdout] 1068 | HtmlContent::Node(forth_node.clone()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1069:31 [INFO] [stdout] | [INFO] [stdout] 1069 | HtmlContent::Node(fifth_node.clone()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found struct `HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::rc::Rc>` [INFO] [stdout] found struct `HtmlNode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1073:9 [INFO] [stdout] | [INFO] [stdout] 1073 | assert_eq!(content_slice_iter.next(), Some(&third_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1074:9 [INFO] [stdout] | [INFO] [stdout] 1074 | assert_eq!(content_slice_iter.next(), Some(&forth_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1075:9 [INFO] [stdout] | [INFO] [stdout] 1075 | assert_eq!(content_slice_iter.next(), Some(&fifth_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:1076:9 [INFO] [stdout] | [INFO] [stdout] 1076 | assert_eq!(content_slice_iter.next(), Some(&last_node)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::rc::Rc`, found `&HtmlNode` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found enum `Option<&HtmlNode>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `html_iter` found for struct `Vec` in the current scope [INFO] [stdout] --> src/lib.rs:1085:44 [INFO] [stdout] | [INFO] [stdout] 1085 | let mut node_slice_iter = node_vec.html_iter(); [INFO] [stdout] | ^^^^^^^^^ method not found in `Vec` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `html_iter`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `HtmlContentSliceIterCreator` [INFO] [stdout] candidate #2: `HtmlNodeSliceIterCreator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 49 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f02f39a2b58ea9590f3ad6e447766ce262ffae5d57ba66020dc819765de23ee8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f02f39a2b58ea9590f3ad6e447766ce262ffae5d57ba66020dc819765de23ee8", kill_on_drop: false }` [INFO] [stdout] f02f39a2b58ea9590f3ad6e447766ce262ffae5d57ba66020dc819765de23ee8