[INFO] cloning repository https://github.com/dsbarnes/linked-lists [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dsbarnes/linked-lists" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdsbarnes%2Flinked-lists", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdsbarnes%2Flinked-lists'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eb80fb1b74e71e80a83ed6fc146b44a55133819b [INFO] checking dsbarnes/linked-lists against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdsbarnes%2Flinked-lists" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dsbarnes/linked-lists on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dsbarnes/linked-lists [INFO] finished tweaking git repo https://github.com/dsbarnes/linked-lists [INFO] tweaked toml for git repo https://github.com/dsbarnes/linked-lists written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/dsbarnes/linked-lists already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd0c356c797890c9926e695456d4f832ec7557a36cafddfba6b917599de7be7e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "dd0c356c797890c9926e695456d4f832ec7557a36cafddfba6b917599de7be7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd0c356c797890c9926e695456d4f832ec7557a36cafddfba6b917599de7be7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd0c356c797890c9926e695456d4f832ec7557a36cafddfba6b917599de7be7e", kill_on_drop: false }` [INFO] [stdout] dd0c356c797890c9926e695456d4f832ec7557a36cafddfba6b917599de7be7e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e888dc4c6619eb751e07489d275fa901aeddafe6a338fa0984f5632ba4440761 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e888dc4c6619eb751e07489d275fa901aeddafe6a338fa0984f5632ba4440761", kill_on_drop: false }` [INFO] [stderr] Checking linked-lists v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/second.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&sefl) -> Option<&T> { [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `:`, `@`, or `|`, found `)` [INFO] [stdout] --> src/second.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&sefl) -> Option<&T> { [INFO] [stdout] | ^ expected one of `:`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/second.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&sefl) -> Option<&T> { [INFO] [stdout] | ---- this function doesn't have a `self` parameter [INFO] [stdout] 44 | self.head.as_ref().map(|node| { [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] | [INFO] [stdout] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&&self, sefl) -> Option<&T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/second.rs:43:34 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&sefl) -> Option<&T> { [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments [INFO] [stdout] help: consider using the `'static` lifetime [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&sefl) -> Option<&'static T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/second.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&sefl) -> Option<&T> { [INFO] [stdout] | ---- this function doesn't have a `self` parameter [INFO] [stdout] 44 | self.head.as_ref().map(|node| { [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] | [INFO] [stdout] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&&self, sefl) -> Option<&T> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/second.rs:43:34 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&sefl) -> Option<&T> { [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments [INFO] [stdout] help: consider using the `'static` lifetime [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&sefl) -> Option<&'static T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/second.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 15 | impl List { [INFO] [stdout] | - this type parameter [INFO] [stdout] ... [INFO] [stdout] 33 | self.head = Some(new_node); [INFO] [stdout] | ^^^^^^^^ expected type parameter `T`, found struct `second::Node` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found struct `Box>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `next` on type `Box` [INFO] [stdout] --> src/second.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | self.head = node.next; [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `elem` on type `Box` [INFO] [stdout] --> src/second.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | node.elem [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `elem` on type `&mut Box` [INFO] [stdout] --> src/second.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | &mut node.elem [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `next` on type `Box` [INFO] [stdout] --> src/second.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 60 | cur_link = boxed_node.next.take(); [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0308, E0424, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `linked-lists` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/second.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 15 | impl List { [INFO] [stdout] | - this type parameter [INFO] [stdout] ... [INFO] [stdout] 33 | self.head = Some(new_node); [INFO] [stdout] | ^^^^^^^^ expected type parameter `T`, found struct `second::Node` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box` [INFO] [stdout] found struct `Box>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `next` on type `Box` [INFO] [stdout] --> src/second.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | self.head = node.next; [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `elem` on type `Box` [INFO] [stdout] --> src/second.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | node.elem [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `elem` on type `&mut Box` [INFO] [stdout] --> src/second.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | &mut node.elem [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `next` on type `Box` [INFO] [stdout] --> src/second.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 60 | cur_link = boxed_node.next.take(); [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `peek` found for struct `second::List<_>` in the current scope [INFO] [stdout] --> src/second.rs:102:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct List { [INFO] [stdout] | ------------------ method `peek` not found for this [INFO] [stdout] ... [INFO] [stdout] 102 | assert_eq!(list.peek(), None); [INFO] [stdout] | -----^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `second::List::<_>::peek` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in an impl for the type `second::List` [INFO] [stdout] --> src/second.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&sefl) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `peek` found for struct `second::List<{integer}>` in the current scope [INFO] [stdout] --> src/second.rs:106:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct List { [INFO] [stdout] | ------------------ method `peek` not found for this [INFO] [stdout] ... [INFO] [stdout] 106 | assert_eq!(list.peek(), Some(&3)); [INFO] [stdout] | -----^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `second::List::<{integer}>::peek` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in an impl for the type `second::List` [INFO] [stdout] --> src/second.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&sefl) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `peek` found for struct `second::List<{integer}>` in the current scope [INFO] [stdout] --> src/second.rs:113:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct List { [INFO] [stdout] | ------------------ method `peek` not found for this [INFO] [stdout] ... [INFO] [stdout] 113 | assert_eq!(list.peek(), Some(&42)); [INFO] [stdout] | -----^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `second::List::<{integer}>::peek` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in an impl for the type `second::List` [INFO] [stdout] --> src/second.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn peek(&sefl) -> Option<&T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0308, E0424, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "e888dc4c6619eb751e07489d275fa901aeddafe6a338fa0984f5632ba4440761", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e888dc4c6619eb751e07489d275fa901aeddafe6a338fa0984f5632ba4440761", kill_on_drop: false }` [INFO] [stdout] e888dc4c6619eb751e07489d275fa901aeddafe6a338fa0984f5632ba4440761