[INFO] fetching crate ley 0.0.5... [INFO] checking ley-0.0.5 against try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] extracting crate ley 0.0.5 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate ley 0.0.5 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 crates.io crate ley 0.0.5 [INFO] finished tweaking crates.io crate ley 0.0.5 [INFO] tweaked toml for crates.io crate ley 0.0.5 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate crates.io crate ley 0.0.5 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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff41ca1415a46cfd718b2705efc89075e75ed5252b3215e74d68d5bb7981c36d [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" "ff41ca1415a46cfd718b2705efc89075e75ed5252b3215e74d68d5bb7981c36d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff41ca1415a46cfd718b2705efc89075e75ed5252b3215e74d68d5bb7981c36d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff41ca1415a46cfd718b2705efc89075e75ed5252b3215e74d68d5bb7981c36d", kill_on_drop: false }` [INFO] [stdout] ff41ca1415a46cfd718b2705efc89075e75ed5252b3215e74d68d5bb7981c36d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06972044f9f364edf8358aa9a83f9699d1f8c13604e50545ee8e98ceef422e3a [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" "06972044f9f364edf8358aa9a83f9699d1f8c13604e50545ee8e98ceef422e3a", kill_on_drop: false }` [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: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: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: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" "06972044f9f364edf8358aa9a83f9699d1f8c13604e50545ee8e98ceef422e3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06972044f9f364edf8358aa9a83f9699d1f8c13604e50545ee8e98ceef422e3a", kill_on_drop: false }` [INFO] [stdout] 06972044f9f364edf8358aa9a83f9699d1f8c13604e50545ee8e98ceef422e3a