[INFO] fetching crate token 1.0.0-rc1... [INFO] checking token-1.0.0-rc1 against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] extracting crate token 1.0.0-rc1 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate token 1.0.0-rc1 on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate token 1.0.0-rc1 [INFO] finished tweaking crates.io crate token 1.0.0-rc1 [INFO] tweaked toml for crates.io crate token 1.0.0-rc1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4bf31b51f8a0964200f7ab93e09e52b95186b6ff8f21ea0da9d5b2aab0da148f [INFO] running `Command { std: "docker" "start" "-a" "4bf31b51f8a0964200f7ab93e09e52b95186b6ff8f21ea0da9d5b2aab0da148f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4bf31b51f8a0964200f7ab93e09e52b95186b6ff8f21ea0da9d5b2aab0da148f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bf31b51f8a0964200f7ab93e09e52b95186b6ff8f21ea0da9d5b2aab0da148f", kill_on_drop: false }` [INFO] [stdout] 4bf31b51f8a0964200f7ab93e09e52b95186b6ff8f21ea0da9d5b2aab0da148f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f5a24d90d30f77f1ea1a7a5c68ad6031d0ec27bd1a952b5207e700b75e263f8f [INFO] running `Command { std: "docker" "start" "-a" "f5a24d90d30f77f1ea1a7a5c68ad6031d0ec27bd1a952b5207e700b75e263f8f", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking token v1.0.0-rc1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `std::io::ReadExt` [INFO] [stdout] --> src/lib.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | use std::io::{Read, ReadExt}; [INFO] [stdout] | ^^^^^^^ no `ReadExt` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::ReadExt` [INFO] [stdout] --> src/lib.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | use std::io::{Read, ReadExt}; [INFO] [stdout] | ^^^^^^^ no `ReadExt` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Chars` in module `io` [INFO] [stdout] --> src/lib.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | chars: io::Chars, [INFO] [stdout] | ^^^^^ not found in `io` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 47 + use std::str::Chars; [INFO] [stdout] | [INFO] [stdout] help: if you import `Chars`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 57 - chars: io::Chars, [INFO] [stdout] 57 + chars: Chars, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CharsError` in module `io` [INFO] [stdout] --> src/lib.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | type Item = Result<&'a str, io::CharsError>; [INFO] [stdout] | ^^^^^^^^^^ not found in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CharsError` in module `io` [INFO] [stdout] --> src/lib.rs:87:51 [INFO] [stdout] | [INFO] [stdout] 87 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ not found in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CharsError` in module `io` [INFO] [stdout] --> src/lib.rs:175:37 [INFO] [stdout] | [INFO] [stdout] 175 | type Item = Result<&'b str, io::CharsError>; [INFO] [stdout] | ^^^^^^^^^^ not found in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CharsError` in module `io` [INFO] [stdout] --> src/lib.rs:178:51 [INFO] [stdout] | [INFO] [stdout] 178 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ not found in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Chars` in module `io` [INFO] [stdout] --> src/lib.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | chars: io::Chars, [INFO] [stdout] | ^^^^^ not found in `io` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 47 + use std::str::Chars; [INFO] [stdout] | [INFO] [stdout] help: if you import `Chars`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 57 - chars: io::Chars, [INFO] [stdout] 57 + chars: Chars, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CharsError` in module `io` [INFO] [stdout] --> src/lib.rs:83:37 [INFO] [stdout] | [INFO] [stdout] 83 | type Item = Result<&'a str, io::CharsError>; [INFO] [stdout] | ^^^^^^^^^^ not found in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CharsError` in module `io` [INFO] [stdout] --> src/lib.rs:87:51 [INFO] [stdout] | [INFO] [stdout] 87 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ not found in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CharsError` in module `io` [INFO] [stdout] --> src/lib.rs:175:37 [INFO] [stdout] | [INFO] [stdout] 175 | type Item = Result<&'b str, io::CharsError>; [INFO] [stdout] | ^^^^^^^^^^ not found in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CharsError` in module `io` [INFO] [stdout] --> src/lib.rs:178:51 [INFO] [stdout] | [INFO] [stdout] 178 | fn next(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ not found in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `io` [INFO] [stdout] --> src/lib.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | #![feature(io)] [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `io` [INFO] [stdout] --> src/lib.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | #![feature(io)] [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates [INFO] [stdout] --> src/lib.rs:82:6 [INFO] [stdout] | [INFO] [stdout] 82 | impl<'a, R: Read> Iterator for Tokenizer { [INFO] [stdout] | ^^ unconstrained lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates [INFO] [stdout] --> src/lib.rs:82:6 [INFO] [stdout] | [INFO] [stdout] 82 | impl<'a, R: Read> Iterator for Tokenizer { [INFO] [stdout] | ^^ unconstrained lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0207]: the lifetime parameter `'b` is not constrained by the impl trait, self type, or predicates [INFO] [stdout] --> src/lib.rs:174:11 [INFO] [stdout] | [INFO] [stdout] 174 | impl <'a, 'b, R: Read> Iterator for SentenceSplitter<'a, R> { [INFO] [stdout] | ^^ unconstrained lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0207]: the lifetime parameter `'b` is not constrained by the impl trait, self type, or predicates [INFO] [stdout] --> src/lib.rs:174:11 [INFO] [stdout] | [INFO] [stdout] 174 | impl <'a, 'b, R: Read> Iterator for SentenceSplitter<'a, R> { [INFO] [stdout] | ^^ unconstrained lifetime parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chars` found for type parameter `R` in the current scope [INFO] [stdout] --> src/lib.rs:75:27 [INFO] [stdout] | [INFO] [stdout] 61 | impl Tokenizer where R: Read { [INFO] [stdout] | - method `chars` not found for this type parameter [INFO] [stdout] ... [INFO] [stdout] 75 | chars: reader.chars(), [INFO] [stdout] | ^^^^^ method not found in `R` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `chars` found for type parameter `R` in the current scope [INFO] [stdout] --> src/lib.rs:75:27 [INFO] [stdout] | [INFO] [stdout] 61 | impl Tokenizer where R: Read { [INFO] [stdout] | - method `chars` not found for this type parameter [INFO] [stdout] ... [INFO] [stdout] 75 | chars: reader.chars(), [INFO] [stdout] | ^^^^^ method not found in `R` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:99:69 [INFO] [stdout] | [INFO] [stdout] 99 | ... return Some(Ok(self.current.as_slice())); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:99:69 [INFO] [stdout] | [INFO] [stdout] 99 | ... return Some(Ok(self.current.as_slice())); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:116:34 [INFO] [stdout] | [INFO] [stdout] 116 | Some(Ok(self.current.as_slice())) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:116:34 [INFO] [stdout] | [INFO] [stdout] 116 | Some(Ok(self.current.as_slice())) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | / SentenceSplitter{ [INFO] [stdout] 166 | | tokenizer: source, [INFO] [stdout] 167 | | current: String::new(), [INFO] [stdout] 168 | | terminators: terminators, [INFO] [stdout] 169 | | quote_types: quote_types [INFO] [stdout] 170 | | } [INFO] [stdout] | |_________^ cannot infer type of the type parameter `R` declared on the struct `SentenceSplitter` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: std::io::Read` [INFO] [stdout] note: required by a bound in `SentenceSplitter` [INFO] [stdout] --> src/lib.rs:129:36 [INFO] [stdout] | [INFO] [stdout] 129 | pub struct SentenceSplitter<'a, R: Read> { [INFO] [stdout] | ^^^^ required by this bound in `SentenceSplitter` [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 165 | SentenceSplitter::{ [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/lib.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | / SentenceSplitter{ [INFO] [stdout] 166 | | tokenizer: source, [INFO] [stdout] 167 | | current: String::new(), [INFO] [stdout] 168 | | terminators: terminators, [INFO] [stdout] 169 | | quote_types: quote_types [INFO] [stdout] 170 | | } [INFO] [stdout] | |_________^ cannot infer type of the type parameter `R` declared on the struct `SentenceSplitter` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: std::io::Read` [INFO] [stdout] note: required by a bound in `SentenceSplitter` [INFO] [stdout] --> src/lib.rs:129:36 [INFO] [stdout] | [INFO] [stdout] 129 | pub struct SentenceSplitter<'a, R: Read> { [INFO] [stdout] | ^^^^ required by this bound in `SentenceSplitter` [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 165 | SentenceSplitter::{ [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:191:65 [INFO] [stdout] | [INFO] [stdout] 191 | ... return Some(Ok(self.current.as_slice())) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:191:65 [INFO] [stdout] | [INFO] [stdout] 191 | ... return Some(Ok(self.current.as_slice())) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:201:73 [INFO] [stdout] | [INFO] [stdout] 201 | ... return Some(Ok(self.current.as_slice())); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:201:73 [INFO] [stdout] | [INFO] [stdout] 201 | ... return Some(Ok(self.current.as_slice())); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:217:69 [INFO] [stdout] | [INFO] [stdout] 217 | ... return Some(Ok(self.current.as_slice())); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:217:69 [INFO] [stdout] | [INFO] [stdout] 217 | ... return Some(Ok(self.current.as_slice())); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:230:53 [INFO] [stdout] | [INFO] [stdout] 230 | return Some(Ok(self.current.as_slice())); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:230:53 [INFO] [stdout] | [INFO] [stdout] 230 | return Some(Ok(self.current.as_slice())); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0207, E0283, E0412, E0432, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0207`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0207, E0283, E0412, E0432, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0207`. [INFO] [stdout] [INFO] [stderr] error: could not compile `token` (lib test) due to 17 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `token` (lib) due to 17 previous errors [INFO] running `Command { std: "docker" "inspect" "f5a24d90d30f77f1ea1a7a5c68ad6031d0ec27bd1a952b5207e700b75e263f8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5a24d90d30f77f1ea1a7a5c68ad6031d0ec27bd1a952b5207e700b75e263f8f", kill_on_drop: false }` [INFO] [stdout] f5a24d90d30f77f1ea1a7a5c68ad6031d0ec27bd1a952b5207e700b75e263f8f