[INFO] fetching crate token 1.0.0-rc1... [INFO] checking token-1.0.0-rc1 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [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 f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7a4503fd3bc72db3efb575b0d235761900db3c83628f33c52180f114a05df5f [INFO] running `Command { std: "docker" "start" "-a" "a7a4503fd3bc72db3efb575b0d235761900db3c83628f33c52180f114a05df5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7a4503fd3bc72db3efb575b0d235761900db3c83628f33c52180f114a05df5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7a4503fd3bc72db3efb575b0d235761900db3c83628f33c52180f114a05df5f", kill_on_drop: false }` [INFO] [stdout] a7a4503fd3bc72db3efb575b0d235761900db3c83628f33c52180f114a05df5f [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=forbid" "-e" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d3b4fb117d951c1e67e501e996bd3453a32daedb8121379b7ad0058d89719f9 [INFO] running `Command { std: "docker" "start" "-a" "5d3b4fb117d951c1e67e501e996bd3453a32daedb8121379b7ad0058d89719f9", 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 `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 `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] warning: the feature `core` has been stable since 1.6.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | #![feature(core)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [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] warning: the feature `core` has been stable since 1.6.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | #![feature(core)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [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[E0392]: type parameter `R` is never used [INFO] [stdout] --> src/lib.rs:129:33 [INFO] [stdout] | [INFO] [stdout] 129 | pub struct SentenceSplitter<'a, R: Read> { [INFO] [stdout] | ^ unused type parameter [INFO] [stdout] 130 | tokenizer: Tokenizer, [INFO] [stdout] | - `R` is named here, but is likely unused in the containing type [INFO] [stdout] | [INFO] [stdout] = help: consider removing `R`, referring to it in a field, or using a marker such as `PhantomData` [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 `'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[E0392]: type parameter `R` is never used [INFO] [stdout] --> src/lib.rs:129:33 [INFO] [stdout] | [INFO] [stdout] 129 | pub struct SentenceSplitter<'a, R: Read> { [INFO] [stdout] | ^ unused type parameter [INFO] [stdout] 130 | tokenizer: Tokenizer, [INFO] [stdout] | - `R` is named here, but is likely unused in the containing type [INFO] [stdout] | [INFO] [stdout] = help: consider removing `R`, referring to it in a field, or using a marker such as `PhantomData` [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[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: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[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: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: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: aborting due to 18 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0207, E0283, E0392, E0412, E0432, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0207`. [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: aborting due to 18 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0207, E0283, E0392, 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 19 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `token` (lib) due to 19 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "5d3b4fb117d951c1e67e501e996bd3453a32daedb8121379b7ad0058d89719f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d3b4fb117d951c1e67e501e996bd3453a32daedb8121379b7ad0058d89719f9", kill_on_drop: false }` [INFO] [stdout] 5d3b4fb117d951c1e67e501e996bd3453a32daedb8121379b7ad0058d89719f9