[INFO] cloning repository https://github.com/shahuwang/Rustparse [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shahuwang/Rustparse" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshahuwang%2FRustparse", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshahuwang%2FRustparse'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bb31d897e59dd4d4e70c3edb04f20e68c04cb846 [INFO] checking shahuwang/Rustparse against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshahuwang%2FRustparse" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shahuwang/Rustparse on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shahuwang/Rustparse [INFO] finished tweaking git repo https://github.com/shahuwang/Rustparse [INFO] tweaked toml for git repo https://github.com/shahuwang/Rustparse written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/shahuwang/Rustparse 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lazy_static v0.1.15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a9e795bad1d4f22e272c596c932389101bbbd79206f6c48b5ae42df7402be1ea [INFO] running `Command { std: "docker" "start" "-a" "a9e795bad1d4f22e272c596c932389101bbbd79206f6c48b5ae42df7402be1ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a9e795bad1d4f22e272c596c932389101bbbd79206f6c48b5ae42df7402be1ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9e795bad1d4f22e272c596c932389101bbbd79206f6c48b5ae42df7402be1ea", kill_on_drop: false }` [INFO] [stdout] a9e795bad1d4f22e272c596c932389101bbbd79206f6c48b5ae42df7402be1ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cabd1fa1d19202633cec1c82e5d231fee70b54b21f9dd1081a3b46688a137e1 [INFO] running `Command { std: "docker" "start" "-a" "6cabd1fa1d19202633cec1c82e5d231fee70b54b21f9dd1081a3b46688a137e1", kill_on_drop: false }` [INFO] [stderr] Checking lazy_static v0.1.15 [INFO] [stderr] Checking parse v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the size for values of type `(dyn node::Node + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/parse/node.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | fn match_node U>(node: &NodeType, f:F) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `((dyn node::Node + 'static),)`, the trait `Sized` is not implemented for `(dyn node::Node + 'static)`, which is required by `((dyn node::Node + 'static),): Sized` [INFO] [stdout] = note: required because it appears within the type `((dyn node::Node + 'static),)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Fn` [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/ops/function.rs:76:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn node::Node + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/parse/node.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | fn match_node U>(node: &NodeType, f:F) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `((dyn node::Node + 'static),)`, the trait `Sized` is not implemented for `(dyn node::Node + 'static)`, which is required by `((dyn node::Node + 'static),): Sized` [INFO] [stdout] = note: required because it appears within the type `((dyn node::Node + 'static),)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Fn` [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/ops/function.rs:76:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn node::Node + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/parse/node.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 42 | &NodeType::EnumList(ref n) => Some(f(n)), [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `((dyn node::Node + 'static),)`, the trait `Sized` is not implemented for `(dyn node::Node + 'static)`, which is required by `((dyn node::Node + 'static),): Sized` [INFO] [stdout] = note: required because it appears within the type `((dyn node::Node + 'static),)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn node::Node + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/parse/node.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 42 | &NodeType::EnumList(ref n) => Some(f(n)), [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `((dyn node::Node + 'static),)`, the trait `Sized` is not implemented for `(dyn node::Node + 'static)`, which is required by `((dyn node::Node + 'static),): Sized` [INFO] [stdout] = note: required because it appears within the type `((dyn node::Node + 'static),)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parse/node.rs:42:46 [INFO] [stdout] | [INFO] [stdout] 42 | &NodeType::EnumList(ref n) => Some(f(n)), [INFO] [stdout] | - ^ expected `dyn Node`, found `&ListNode` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn node::Node + 'static)` [INFO] [stdout] found reference `&node::ListNode` [INFO] [stdout] note: callable defined here [INFO] [stdout] --> src/parse/node.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | fn match_node U>(node: &NodeType, f:F) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parse/node.rs:42:46 [INFO] [stdout] | [INFO] [stdout] 42 | &NodeType::EnumList(ref n) => Some(f(n)), [INFO] [stdout] | - ^ expected `dyn Node`, found `&ListNode` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn node::Node + 'static)` [INFO] [stdout] found reference `&node::ListNode` [INFO] [stdout] note: callable defined here [INFO] [stdout] --> src/parse/node.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | fn match_node U>(node: &NodeType, f:F) -> Option{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parse/node.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 40 | fn match_node U>(node: &NodeType, f:F) -> Option{ [INFO] [stdout] | - found this type parameter [INFO] [stdout] 41 | match node{ [INFO] [stdout] 42 | &NodeType::EnumList(ref n) => Some(f(n)), [INFO] [stdout] | ---- ^^^^ expected `String`, found type parameter `U` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found type parameter `U` [INFO] [stdout] help: the type constructed contains `U` due to the type of the argument passed [INFO] [stdout] --> src/parse/node.rs:42:39 [INFO] [stdout] | [INFO] [stdout] 42 | &NodeType::EnumList(ref n) => Some(f(n)), [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/option.rs:579:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parse/node.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 40 | fn match_node U>(node: &NodeType, f:F) -> Option{ [INFO] [stdout] | - found this type parameter [INFO] [stdout] 41 | match node{ [INFO] [stdout] 42 | &NodeType::EnumList(ref n) => Some(f(n)), [INFO] [stdout] | ---- ^^^^ expected `String`, found type parameter `U` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found type parameter `U` [INFO] [stdout] help: the type constructed contains `U` due to the type of the argument passed [INFO] [stdout] --> src/parse/node.rs:42:39 [INFO] [stdout] | [INFO] [stdout] 42 | &NodeType::EnumList(ref n) => Some(f(n)), [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/506512391b1a75ae450d36c9420978402a91abcc/library/core/src/option.rs:579:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/parse/node.rs:70:27 [INFO] [stdout] | [INFO] [stdout] 67 | let f = |n:&Node|->String{ [INFO] [stdout] | ----------------- found signature defined here [INFO] [stdout] ... [INFO] [stdout] 70 | match_node(n, f); [INFO] [stdout] | ---------- ^ expected due to this [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected closure signature `fn((dyn node::Node + 'static)) -> _` [INFO] [stdout] found closure signature `fn(&dyn node::Node) -> _` [INFO] [stdout] note: required by a bound in `match_node` [INFO] [stdout] --> src/parse/node.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | fn match_node U>(node: &NodeType, f:F) -> Option{ [INFO] [stdout] | ^ required by this bound in `match_node` [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 70 | match_node(n, |arg0: (dyn node::Node + 'static)| f(&arg0)); [INFO] [stdout] | ++++++++++++++++++++++++++++++++++ +++++++ [INFO] [stdout] help: consider adjusting the signature so it does not borrow its argument [INFO] [stdout] | [INFO] [stdout] 67 - let f = |n:&Node|->String{ [INFO] [stdout] 67 + let f = |n:Node|->String{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in closure arguments [INFO] [stdout] --> src/parse/node.rs:70:27 [INFO] [stdout] | [INFO] [stdout] 67 | let f = |n:&Node|->String{ [INFO] [stdout] | ----------------- found signature defined here [INFO] [stdout] ... [INFO] [stdout] 70 | match_node(n, f); [INFO] [stdout] | ---------- ^ expected due to this [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: expected closure signature `fn((dyn node::Node + 'static)) -> _` [INFO] [stdout] found closure signature `fn(&dyn node::Node) -> _` [INFO] [stdout] note: required by a bound in `match_node` [INFO] [stdout] --> src/parse/node.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | fn match_node U>(node: &NodeType, f:F) -> Option{ [INFO] [stdout] | ^ required by this bound in `match_node` [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 70 | match_node(n, |arg0: (dyn node::Node + 'static)| f(&arg0)); [INFO] [stdout] | ++++++++++++++++++++++++++++++++++ +++++++ [INFO] [stdout] help: consider adjusting the signature so it does not borrow its argument [INFO] [stdout] | [INFO] [stdout] 67 - let f = |n:&Node|->String{ [INFO] [stdout] 67 + let f = |n:Node|->String{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parse/node.rs:80:37 [INFO] [stdout] | [INFO] [stdout] 80 | Box::new(NodeType::EnumList(&self.copy_list())) [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^^^^^ expected `ListNode`, found `&Box` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `node::ListNode` [INFO] [stdout] found reference `&Box` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/parse/node.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | EnumList(ListNode), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parse/node.rs:80:37 [INFO] [stdout] | [INFO] [stdout] 80 | Box::new(NodeType::EnumList(&self.copy_list())) [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^^^^^ expected `ListNode`, found `&Box` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `node::ListNode` [INFO] [stdout] found reference `&Box` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/parse/node.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | EnumList(ListNode), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parse/parse.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | root: self.root.copy(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `Box`, found `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parse/parse.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | root: self.root.copy(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected `Box`, found `Box` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found struct `Box` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `parse` (bin "parse") due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `parse` (bin "parse" test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "6cabd1fa1d19202633cec1c82e5d231fee70b54b21f9dd1081a3b46688a137e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cabd1fa1d19202633cec1c82e5d231fee70b54b21f9dd1081a3b46688a137e1", kill_on_drop: false }` [INFO] [stdout] 6cabd1fa1d19202633cec1c82e5d231fee70b54b21f9dd1081a3b46688a137e1