[INFO] cloning repository https://github.com/AidoP/Ley [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AidoP/Ley" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAidoP%2FLey", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAidoP%2FLey'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a9186333c6fc74aad1956805b7b760e8648eb0e [INFO] checking AidoP/Ley against try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAidoP%2FLey" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AidoP/Ley on toolchain 4a23c45c7893f1416456144e3883cc48ea91722e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AidoP/Ley [INFO] finished tweaking git repo https://github.com/AidoP/Ley [INFO] tweaked toml for git repo https://github.com/AidoP/Ley written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/AidoP/Ley already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a0ef486af3438d927a17964e0551bd06f509c0018d2ca3c08488c40d6cc5100f [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" "a0ef486af3438d927a17964e0551bd06f509c0018d2ca3c08488c40d6cc5100f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0ef486af3438d927a17964e0551bd06f509c0018d2ca3c08488c40d6cc5100f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0ef486af3438d927a17964e0551bd06f509c0018d2ca3c08488c40d6cc5100f", kill_on_drop: false }` [INFO] [stdout] a0ef486af3438d927a17964e0551bd06f509c0018d2ca3c08488c40d6cc5100f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 372050d5dab880a60c5c3b2a9b32c69d2f7e73036d1053f915cef3d32293c7fc [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" "372050d5dab880a60c5c3b2a9b32c69d2f7e73036d1053f915cef3d32293c7fc", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking ley v0.0.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `collections::VecDeque` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::VecDeque, env, fs::{File, read_dir}, io::{Read, Write}, path::Path}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/fmt.rs:1:40 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, fs::File, io::{self, Write}, path::PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/fmt.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::catch` [INFO] [stdout] --> src/fmt.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::catch; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::VecDeque` [INFO] [stdout] --> src/main.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::VecDeque, env, fs::{File, read_dir}, io::{Read, Write}, path::Path}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/fmt.rs:1:40 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, fs::File, io::{self, Write}, path::PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/fmt.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::catch` [INFO] [stdout] --> src/fmt.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::catch; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ley.rs:137:15 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn parse(token_stream: &mut TokenIter<'a, '_, '_>) -> Result> { [INFO] [stdout] 136 | | use Token::*; [INFO] [stdout] 137 | | match token_stream.next()? { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, ParseError<'_>>` [INFO] [stdout] 138 | | Exclamation => { [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ParseError<'_>>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ley.rs:140:37 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn parse(token_stream: &mut TokenIter<'a, '_, '_>) -> Result> { [INFO] [stdout] 136 | | use Token::*; [INFO] [stdout] 137 | | match token_stream.next()? { [INFO] [stdout] 138 | | Exclamation => { [INFO] [stdout] 139 | | let name = String::<'a>::parse(token_stream); [INFO] [stdout] 140 | | let comment = match token_stream.next()? { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, ParseError<'_>>` [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ParseError<'_>>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ley.rs:145:34 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn parse(token_stream: &mut TokenIter<'a, '_, '_>) -> Result> { [INFO] [stdout] 136 | | use Token::*; [INFO] [stdout] 137 | | match token_stream.next()? { [INFO] [stdout] 138 | | Exclamation => { [INFO] [stdout] ... | [INFO] [stdout] 145 | | let kind = match token_stream.next()? { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, ParseError<'_>>` [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ParseError<'_>>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ley.rs:147:29 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn parse(token_stream: &mut TokenIter<'a, '_, '_>) -> Result> { [INFO] [stdout] 136 | | use Token::*; [INFO] [stdout] 137 | | match token_stream.next()? { [INFO] [stdout] 138 | | Exclamation => { [INFO] [stdout] ... | [INFO] [stdout] 147 | | if *token_stream.next()? != Token::OpenBrace { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, ParseError<'_>>` [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ParseError<'_>>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ley.rs:160:24 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn parse(token_stream: &mut TokenIter<'a, '_, '_>) -> Result> { [INFO] [stdout] 136 | | use Token::*; [INFO] [stdout] 137 | | match token_stream.next()? { [INFO] [stdout] 138 | | Exclamation => { [INFO] [stdout] ... | [INFO] [stdout] 160 | | while *token_stream.peek()? != CloseBrace { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, ParseError<'_>>` [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ParseError<'_>>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ley.rs:137:15 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn parse(token_stream: &mut TokenIter<'a, '_, '_>) -> Result> { [INFO] [stdout] 136 | | use Token::*; [INFO] [stdout] 137 | | match token_stream.next()? { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, ParseError<'_>>` [INFO] [stdout] 138 | | Exclamation => { [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ParseError<'_>>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ley.rs:140:37 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn parse(token_stream: &mut TokenIter<'a, '_, '_>) -> Result> { [INFO] [stdout] 136 | | use Token::*; [INFO] [stdout] 137 | | match token_stream.next()? { [INFO] [stdout] 138 | | Exclamation => { [INFO] [stdout] 139 | | let name = String::<'a>::parse(token_stream); [INFO] [stdout] 140 | | let comment = match token_stream.next()? { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, ParseError<'_>>` [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ParseError<'_>>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ley.rs:145:34 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn parse(token_stream: &mut TokenIter<'a, '_, '_>) -> Result> { [INFO] [stdout] 136 | | use Token::*; [INFO] [stdout] 137 | | match token_stream.next()? { [INFO] [stdout] 138 | | Exclamation => { [INFO] [stdout] ... | [INFO] [stdout] 145 | | let kind = match token_stream.next()? { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, ParseError<'_>>` [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ParseError<'_>>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ley.rs:147:29 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn parse(token_stream: &mut TokenIter<'a, '_, '_>) -> Result> { [INFO] [stdout] 136 | | use Token::*; [INFO] [stdout] 137 | | match token_stream.next()? { [INFO] [stdout] 138 | | Exclamation => { [INFO] [stdout] ... | [INFO] [stdout] 147 | | if *token_stream.next()? != Token::OpenBrace { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, ParseError<'_>>` [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ParseError<'_>>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ley.rs:160:24 [INFO] [stdout] | [INFO] [stdout] 135 | / pub fn parse(token_stream: &mut TokenIter<'a, '_, '_>) -> Result> { [INFO] [stdout] 136 | | use Token::*; [INFO] [stdout] 137 | | match token_stream.next()? { [INFO] [stdout] 138 | | Exclamation => { [INFO] [stdout] ... | [INFO] [stdout] 160 | | while *token_stream.peek()? != CloseBrace { [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, ParseError<'_>>` [INFO] [stdout] ... | [INFO] [stdout] 182 | | } [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, ParseError<'_>>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ley` [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: aborting due to 5 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "372050d5dab880a60c5c3b2a9b32c69d2f7e73036d1053f915cef3d32293c7fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "372050d5dab880a60c5c3b2a9b32c69d2f7e73036d1053f915cef3d32293c7fc", kill_on_drop: false }` [INFO] [stdout] 372050d5dab880a60c5c3b2a9b32c69d2f7e73036d1053f915cef3d32293c7fc