[INFO] fetching crate cesu8str 0.2.4... [INFO] testing cesu8str-0.2.4 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate cesu8str 0.2.4 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate cesu8str 0.2.4 [INFO] finished tweaking crates.io crate cesu8str 0.2.4 [INFO] tweaked toml for crates.io crate cesu8str 0.2.4 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate cesu8str 0.2.4 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate cesu8str 0.2.4 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e514554fea6e0a7dc25e39e5058953c3bad8f2d9dc2d467aa920387e93ea1f1d [INFO] running `Command { std: "docker" "start" "-a" "e514554fea6e0a7dc25e39e5058953c3bad8f2d9dc2d467aa920387e93ea1f1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e514554fea6e0a7dc25e39e5058953c3bad8f2d9dc2d467aa920387e93ea1f1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e514554fea6e0a7dc25e39e5058953c3bad8f2d9dc2d467aa920387e93ea1f1d", kill_on_drop: false }` [INFO] [stdout] e514554fea6e0a7dc25e39e5058953c3bad8f2d9dc2d467aa920387e93ea1f1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 82ababb93712e060525df034c57837a5c4494866945403948a4dac891acfc001 [INFO] running `Command { std: "docker" "start" "-a" "82ababb93712e060525df034c57837a5c4494866945403948a4dac891acfc001", kill_on_drop: false }` [INFO] [stderr] Compiling cesu8str v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `validate_release` [INFO] [stdout] --> src/ngstr/prims.rs:549:43 [INFO] [stdout] | [INFO] [stdout] 549 | if cfg!(debug_assertions) || cfg!(validate_release) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(validate_release)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(validate_release)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `BufWriter` [INFO] [stdout] --> src/ngstr/stream.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, BufReader, BufWriter}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `impl_simple_str_traits` [INFO] [stdout] --> src/ngstr/mod.rs:1408:70 [INFO] [stdout] | [INFO] [stdout] 1408 | pub(crate) use {impl_str_encoding_meths, impl_string_encoding_meths, impl_simple_str_traits}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `validate_release` [INFO] [stdout] --> src/lib.rs:186:39 [INFO] [stdout] | [INFO] [stdout] 186 | if cfg!(debug_assertions) || cfg!(validate_release) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(validate_release)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(validate_release)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `validate_release` [INFO] [stdout] --> src/lib.rs:196:39 [INFO] [stdout] | [INFO] [stdout] 196 | if cfg!(debug_assertions) || cfg!(validate_release) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(validate_release)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(validate_release)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_ptr_read` has been stable since 1.71.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_ptr_read)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `round_char_boundary` has been stable since 1.91.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(round_char_boundary)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `const_deref` [INFO] [stdout] --> src/lib.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | #![feature(const_deref)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `simd_eq` found for struct `std::simd::Simd` in the current scope [INFO] [stdout] --> src/ngstr/prims.rs:156:37 [INFO] [stdout] | [INFO] [stdout] 156 | let utf8_4byte = (chunk & mask).simd_eq(val).any(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/../../portable-simd/crates/core_simd/src/simd/cmp/eq.rs:13:7 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `std::simd::Simd` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SimdPartialEq` which provides `simd_eq` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use std::simd::cmp::SimdPartialEq; [INFO] [stdout] | [INFO] [stdout] help: there is a method `simd_ge` with a similar name [INFO] [stdout] | [INFO] [stdout] 156 - let utf8_4byte = (chunk & mask).simd_eq(val).any(); [INFO] [stdout] 156 + let utf8_4byte = (chunk & mask).simd_ge(val).any(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `simd_eq` found for struct `std::simd::Simd` in the current scope [INFO] [stdout] --> src/ngstr/prims.rs:157:40 [INFO] [stdout] | [INFO] [stdout] 157 | let utf8_nul = ENCODE_NUL && chunk.simd_eq(zero).any(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/../../portable-simd/crates/core_simd/src/simd/cmp/eq.rs:13:7 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `std::simd::Simd` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SimdPartialEq` which provides `simd_eq` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use std::simd::cmp::SimdPartialEq; [INFO] [stdout] | [INFO] [stdout] help: there is a method `simd_ge` with a similar name [INFO] [stdout] | [INFO] [stdout] 157 - let utf8_nul = ENCODE_NUL && chunk.simd_eq(zero).any(); [INFO] [stdout] 157 + let utf8_nul = ENCODE_NUL && chunk.simd_ge(zero).any(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/ngstr/stream.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 116 | todo!("figure out how to subtract characters (not code points) from the end of a string"); [INFO] [stdout] | ----------------------------------------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 117 | [INFO] [stdout] 118 | Ok(safe_len) [INFO] [stdout] | ^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `std::ops::Deref` is not yet stable as a const trait [INFO] [stdout] --> src/ngstr/cesu8string.rs:33:34 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { std::ptr::read(&this.inner) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `#![feature(const_convert)]` to the crate attributes to enable [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 + #![feature(const_convert)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `std::ops::Deref` is not yet stable as a const trait [INFO] [stdout] --> src/ngstr/mutf8string.rs:34:34 [INFO] [stdout] | [INFO] [stdout] 34 | unsafe { std::ptr::read(&this.inner) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `#![feature(const_convert)]` to the crate attributes to enable [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 + #![feature(const_convert)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `std::ops::Deref` is not yet stable as a const trait [INFO] [stdout] --> src/ngstr/mutf8cstring.rs:60:34 [INFO] [stdout] | [INFO] [stdout] 60 | unsafe { std::ptr::read(&this.inner) } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: add `#![feature(const_convert)]` to the crate attributes to enable [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 + #![feature(const_convert)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unused_utf8_chars` [INFO] [stdout] --> src/ngstr/stream.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let unused_utf8_chars = utf8[safe_len..].chars().count(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused_utf8_chars` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cesu8str` (lib) due to 6 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "82ababb93712e060525df034c57837a5c4494866945403948a4dac891acfc001", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82ababb93712e060525df034c57837a5c4494866945403948a4dac891acfc001", kill_on_drop: false }` [INFO] [stdout] 82ababb93712e060525df034c57837a5c4494866945403948a4dac891acfc001