[INFO] fetching crate rten-text 0.19.0... [INFO] checking rten-text-0.19.0 against master#8a65ee08296b36342bf7c3cdc15312ccbc357227 for pr-142704 [INFO] extracting crate rten-text 0.19.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate rten-text 0.19.0 on toolchain 8a65ee08296b36342bf7c3cdc15312ccbc357227 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8a65ee08296b36342bf7c3cdc15312ccbc357227" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rten-text 0.19.0 [INFO] finished tweaking crates.io crate rten-text 0.19.0 [INFO] tweaked toml for crates.io crate rten-text 0.19.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate crates.io crate rten-text 0.19.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8a65ee08296b36342bf7c3cdc15312ccbc357227" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8a65ee08296b36342bf7c3cdc15312ccbc357227" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b42debade3b5aafa1f0053f82809811255aaf7a79c44b67eb4b7b9eb3401201 [INFO] running `Command { std: "docker" "start" "-a" "4b42debade3b5aafa1f0053f82809811255aaf7a79c44b67eb4b7b9eb3401201", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b42debade3b5aafa1f0053f82809811255aaf7a79c44b67eb4b7b9eb3401201", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b42debade3b5aafa1f0053f82809811255aaf7a79c44b67eb4b7b9eb3401201", kill_on_drop: false }` [INFO] [stdout] 4b42debade3b5aafa1f0053f82809811255aaf7a79c44b67eb4b7b9eb3401201 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8a65ee08296b36342bf7c3cdc15312ccbc357227" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0c7e425f1a519be0fe012842504e5cbe31d656539dd5627bb4f3ac7c6dad9bab [INFO] running `Command { std: "docker" "start" "-a" "0c7e425f1a519be0fe012842504e5cbe31d656539dd5627bb4f3ac7c6dad9bab", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking unicode_categories v0.1.1 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Checking fancy-regex v0.14.0 [INFO] [stderr] Checking rten-text v0.19.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `rten_testing` [INFO] [stdout] --> src/models/bpe.rs:540:9 [INFO] [stdout] | [INFO] [stdout] 540 | use rten_testing::TestCases; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `rten_testing` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rten_testing`, use `cargo add rten_testing` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rten_testing` [INFO] [stdout] --> src/models/wordpiece.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | use rten_testing::TestCases; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `rten_testing` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rten_testing`, use `cargo add rten_testing` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rten_testing` [INFO] [stdout] --> src/normalizers.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | use rten_testing::TestCases; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `rten_testing` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rten_testing`, use `cargo add rten_testing` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rten_testing` [INFO] [stdout] --> src/pre_tokenizers.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | use rten_testing::TestCases; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `rten_testing` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rten_testing`, use `cargo add rten_testing` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rten_testing` [INFO] [stdout] --> src/tokenizer.rs:835:9 [INFO] [stdout] | [INFO] [stdout] 835 | use rten_testing::TestCases; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `rten_testing` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rten_testing`, use `cargo add rten_testing` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rten_testing` [INFO] [stdout] --> src/split.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | use rten_testing::TestCases; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `rten_testing` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rten_testing`, use `cargo add rten_testing` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each` found for array `[bpe::tests::test_encode::Case<'_>; 4]` in the current scope [INFO] [stdout] --> src/models/bpe.rs:667:15 [INFO] [stdout] | [INFO] [stdout] 667 | cases.test_each(|case| { [INFO] [stdout] | ------^^^^^^^^^ method not found in `[bpe::tests::test_encode::Case<'_>; 4]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `str: Into>` is not satisfied [INFO] [stdout] --> src/models/bpe.rs:687:44 [INFO] [stdout] | [INFO] [stdout] 687 | let encoded = tokenizer.encode(*text, None).unwrap(); [INFO] [stdout] | ------ ^^^^^ the trait `Into>` is not implemented for `str` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required for `str` to implement `Into>` [INFO] [stdout] note: required by a bound in `tokenizer::Tokenizer::encode` [INFO] [stdout] --> src/tokenizer.rs:500:26 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn encode<'a, I: Into>>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Tokenizer::encode` [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 687 | let encoded = tokenizer.encode(&*text, None).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/models/bpe.rs:687:44 [INFO] [stdout] | [INFO] [stdout] 687 | let encoded = tokenizer.encode(*text, None).unwrap(); [INFO] [stdout] | ------ ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] note: required by an implicit `Sized` bound in `tokenizer::Tokenizer::encode` [INFO] [stdout] --> src/tokenizer.rs:500:23 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn encode<'a, I: Into>>( [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Tokenizer::encode` [INFO] [stdout] help: references are always `Sized`, even if they point to unsized data; consider not dereferencing the expression [INFO] [stdout] | [INFO] [stdout] 687 - let encoded = tokenizer.encode(*text, None).unwrap(); [INFO] [stdout] 687 + let encoded = tokenizer.encode(text, None).unwrap(); [INFO] [stdout] | [INFO] [stdout] help: consider relaxing the implicit `Sized` restriction [INFO] [stdout] --> src/tokenizer.rs:500:48 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn encode<'a, I: Into> + ?Sized>( [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each` found for array `[bpe::tests::test_get_token_str::Case<'_>; 3]` in the current scope [INFO] [stdout] --> src/models/bpe.rs:725:15 [INFO] [stdout] | [INFO] [stdout] 725 | cases.test_each(|case| { [INFO] [stdout] | ------^^^^^^^^^ method not found in `[bpe::tests::test_get_token_str::Case<'_>; 3]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each` found for array `[bpe::tests::test_decode::Case<'_>; 4]` in the current scope [INFO] [stdout] --> src/models/bpe.rs:780:15 [INFO] [stdout] | [INFO] [stdout] 780 | cases.test_each(|case| { [INFO] [stdout] | ------^^^^^^^^^ method not found in `[bpe::tests::test_decode::Case<'_>; 4]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `str: Into>` is not satisfied [INFO] [stdout] --> src/models/bpe.rs:800:44 [INFO] [stdout] | [INFO] [stdout] 800 | let encoded = tokenizer.encode(*text, None).unwrap(); [INFO] [stdout] | ------ ^^^^^ the trait `Into>` is not implemented for `str` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required for `str` to implement `Into>` [INFO] [stdout] note: required by a bound in `tokenizer::Tokenizer::encode` [INFO] [stdout] --> src/tokenizer.rs:500:26 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn encode<'a, I: Into>>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Tokenizer::encode` [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 800 | let encoded = tokenizer.encode(&*text, None).unwrap(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/models/bpe.rs:800:44 [INFO] [stdout] | [INFO] [stdout] 800 | let encoded = tokenizer.encode(*text, None).unwrap(); [INFO] [stdout] | ------ ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] note: required by an implicit `Sized` bound in `tokenizer::Tokenizer::encode` [INFO] [stdout] --> src/tokenizer.rs:500:23 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn encode<'a, I: Into>>( [INFO] [stdout] | ^ required by the implicit `Sized` requirement on this type parameter in `Tokenizer::encode` [INFO] [stdout] help: references are always `Sized`, even if they point to unsized data; consider not dereferencing the expression [INFO] [stdout] | [INFO] [stdout] 800 - let encoded = tokenizer.encode(*text, None).unwrap(); [INFO] [stdout] 800 + let encoded = tokenizer.encode(text, None).unwrap(); [INFO] [stdout] | [INFO] [stdout] help: consider relaxing the implicit `Sized` restriction [INFO] [stdout] --> src/tokenizer.rs:500:48 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn encode<'a, I: Into> + ?Sized>( [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `bool` cannot be dereferenced [INFO] [stdout] --> src/models/bpe.rs:802:16 [INFO] [stdout] | [INFO] [stdout] 802 | if *add_eos { [INFO] [stdout] | ^^^^^^^^ can't be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each` found for array `[wordpiece::tests::test_wordpiece_model::Case<'_>; 8]` in the current scope [INFO] [stdout] --> src/models/wordpiece.rs:226:15 [INFO] [stdout] | [INFO] [stdout] 226 | cases.test_each(|case| { [INFO] [stdout] | ------^^^^^^^^^ method not found in `[wordpiece::tests::test_wordpiece_model::Case<'_>; 8]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each` found for array `[wordpiece::tests::test_wordpiece_model_lowercase::Case<'_>; 2]` in the current scope [INFO] [stdout] --> src/models/wordpiece.rs:283:15 [INFO] [stdout] | [INFO] [stdout] 283 | cases.test_each(|case| { [INFO] [stdout] | ------^^^^^^^^^ method not found in `[wordpiece::tests::test_wordpiece_model_lowercase::Case<'_>; 2]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/models/bpe.rs:229:12 [INFO] [stdout] | [INFO] [stdout] 229 | lines: &[impl AsRef], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ this lifetime flows to the output [INFO] [stdout] 230 | ) -> Vec<(EncodedByteSlice, EncodedByteSlice)> { [INFO] [stdout] | ---------------- ---------------- the lifetimes get resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 230 | ) -> Vec<(EncodedByteSlice<'_>, EncodedByteSlice<'_>)> { [INFO] [stdout] | ++++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each` found for array `[wordpiece::tests::test_decode::Case<'_>; 3]` in the current scope [INFO] [stdout] --> src/models/wordpiece.rs:328:15 [INFO] [stdout] | [INFO] [stdout] 328 | cases.test_each(|case| { [INFO] [stdout] | ------^^^^^^^^^ method not found in `[wordpiece::tests::test_decode::Case<'_>; 3]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: failed to write to `/opt/rustwide/target/debug/deps/rmetaQm2gPV/full.rmeta`: No space left on device (os error 28) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each` found for array `[normalizers::tests::test_bert_lowercase::Case<'_>; 2]` in the current scope [INFO] [stdout] --> src/normalizers.rs:412:15 [INFO] [stdout] | [INFO] [stdout] 412 | cases.test_each(|case| { [INFO] [stdout] | ------^^^^^^^^^ method not found in `[normalizers::tests::test_bert_lowercase::Case<'_>; 2]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each` found for array `[normalizers::tests::test_bert_strip_accepts::Case<'_>; 2]` in the current scope [INFO] [stdout] --> src/normalizers.rs:456:15 [INFO] [stdout] | [INFO] [stdout] 456 | cases.test_each(|case| { [INFO] [stdout] | ------^^^^^^^^^ method not found in `[normalizers::tests::test_bert_strip_accepts::Case<'_>; 2]` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rten-text` (lib) due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0614]: type `bool` cannot be dereferenced [INFO] [stdout] --> src/normalizers.rs:465:28 [INFO] [stdout] | [INFO] [stdout] 465 | lowercase: *lowercase, [INFO] [stdout] | ^^^^^^^^^^ can't be dereferenced [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each` found for array `[normalizers::tests::test_replace::Case<'_>; 3]` in the current scope [INFO] [stdout] --> src/normalizers.rs:514:15 [INFO] [stdout] | [INFO] [stdout] 514 | cases.test_each(|case| { [INFO] [stdout] | ------^^^^^^^^^ method not found in `[normalizers::tests::test_replace::Case<'_>; 3]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each_value` found for array `[normalizers::tests::test_sequence::Case<'_>; 3]` in the current scope [INFO] [stdout] --> src/normalizers.rs:598:15 [INFO] [stdout] | [INFO] [stdout] 598 | cases.test_each_value(|case| { [INFO] [stdout] | ------^^^^^^^^^^^^^^^ method not found in `[normalizers::tests::test_sequence::Case<'_>; 3]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each` found for array `[normalizers::tests::test_unicode::Case<'_>; 9]` in the current scope [INFO] [stdout] --> src/normalizers.rs:672:15 [INFO] [stdout] | [INFO] [stdout] 672 | cases.test_each(|case| { [INFO] [stdout] | ------^^^^^^^^^ method not found in `[normalizers::tests::test_unicode::Case<'_>; 9]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `test_each` found for array `[pre_tokenizers::tests::test_bert::Case<'_>; 1]` in the current scope [INFO] [stdout] --> src/pre_tokenizers.rs:286:15 [INFO] [stdout] | [INFO] [stdout] 286 | cases.test_each(|case| { [INFO] [stdout] | ------^^^^^^^^^ method not found in `[pre_tokenizers::tests::test_bert::Case<'_>; 1]` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rten-text` (lib test) due to 24 previous errors [INFO] running `Command { std: "docker" "inspect" "0c7e425f1a519be0fe012842504e5cbe31d656539dd5627bb4f3ac7c6dad9bab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c7e425f1a519be0fe012842504e5cbe31d656539dd5627bb4f3ac7c6dad9bab", kill_on_drop: false }` [INFO] [stdout] 0c7e425f1a519be0fe012842504e5cbe31d656539dd5627bb4f3ac7c6dad9bab