[INFO] fetching crate null-terminated 0.3.17... [INFO] testing null-terminated-0.3.17 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate null-terminated 0.3.17 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate null-terminated 0.3.17 [INFO] finished tweaking crates.io crate null-terminated 0.3.17 [INFO] tweaked toml for crates.io crate null-terminated 0.3.17 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate null-terminated 0.3.17 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate null-terminated 0.3.17 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded utf v0.1.0 [INFO] [stderr] Downloaded log v0.4.3 [INFO] [stderr] Downloaded byte-strings-proc_macros v0.2.1 [INFO] [stderr] Downloaded quickcheck_macros v0.8.0 [INFO] [stderr] Downloaded system-call v0.1.1 [INFO] [stderr] Downloaded lazy_static v1.0.2 [INFO] [stderr] Downloaded bitflags v1.0.3 [INFO] [stderr] Downloaded quickcheck v0.8.5 [INFO] [stderr] Downloaded rand_core v0.3.0 [INFO] [stderr] Downloaded cfg-if v0.1.4 [INFO] [stderr] Downloaded proc-macro2 v1.0.19 [INFO] [stderr] Downloaded libc v0.2.42 [INFO] [stderr] Downloaded aho-corasick v0.7.13 [INFO] [stderr] Downloaded syn v1.0.36 [INFO] [stderr] Downloaded winapi v0.3.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3085819ec93aa0202ea6edddad2b671d3ee75bc39118bf2dec16b35d448e66be [INFO] running `Command { std: "docker" "start" "-a" "3085819ec93aa0202ea6edddad2b671d3ee75bc39118bf2dec16b35d448e66be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3085819ec93aa0202ea6edddad2b671d3ee75bc39118bf2dec16b35d448e66be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3085819ec93aa0202ea6edddad2b671d3ee75bc39118bf2dec16b35d448e66be", kill_on_drop: false }` [INFO] [stdout] 3085819ec93aa0202ea6edddad2b671d3ee75bc39118bf2dec16b35d448e66be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be03a65a414f8c581df080d710209403addb81834fead8ca09d67f5362592ad5 [INFO] running `Command { std: "docker" "start" "-a" "be03a65a414f8c581df080d710209403addb81834fead8ca09d67f5362592ad5", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.36 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling utf v0.1.0 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling byte-strings-proc_macros v0.2.1 [INFO] [stderr] Compiling null-terminated v0.3.17 (/opt/rustwide/workdir) [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | extern { type Opaque; } [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_raw_ptr_deref` has been stable since 1.58.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | #![feature(const_raw_ptr_deref)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | fn index(&self, i: I) -> &Self::Output { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] note: required by a bound in `core::ops::Index` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/index.rs:59:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | impl Index for Nul where [A]: Index { [INFO] [stdout] | ^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] note: required by a bound in `core::ops::Index` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/index.rs:59:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | fn index_mut(&mut self, i: I) -> &mut Self::Output { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] note: required by a bound in `core::ops::Index` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/index.rs:59:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:168:28 [INFO] [stdout] | [INFO] [stdout] 168 | impl IndexMut for Nul where [A]: IndexMut { [INFO] [stdout] | ^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] note: required by a bound in `core::ops::IndexMut` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/index.rs:170:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:301:10 [INFO] [stdout] | [INFO] [stdout] 301 | #[derive(PartialEq, Eq, PartialOrd, Ord, Hash)] [INFO] [stdout] | ^^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `NulStr`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `NulStr` [INFO] [stdout] --> src/lib.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | pub struct NulStr(Nul); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required by a bound in `StructuralPartialEq` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/marker.rs:261:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:316:27 [INFO] [stdout] | [INFO] [stdout] 316 | impl Index for NulStr { [INFO] [stdout] | ^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `NulStr`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `NulStr` [INFO] [stdout] --> src/lib.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | pub struct NulStr(Nul); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required by a bound in `core::ops::Index` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/index.rs:59:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:325:30 [INFO] [stdout] | [INFO] [stdout] 325 | impl IndexMut for NulStr { [INFO] [stdout] | ^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `NulStr`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `NulStr` [INFO] [stdout] --> src/lib.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | pub struct NulStr(Nul); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required by a bound in `core::ops::IndexMut` [INFO] [stdout] --> /rustc/c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38/library/core/src/ops/index.rs:170:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:113:49 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn get(&self, i: usize) -> Option<&A> { self[..].get(i) } [INFO] [stdout] | ^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:117:61 [INFO] [stdout] | [INFO] [stdout] 117 | pub fn get_mut(&mut self, i: usize) -> Option<&mut A> { self[..].get_mut(i) } [INFO] [stdout] | ^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:177:60 [INFO] [stdout] | [INFO] [stdout] 177 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { self[..].fmt(f) } [INFO] [stdout] | ^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:182:42 [INFO] [stdout] | [INFO] [stdout] 182 | fn eq(&self, other: &Self) -> bool { self[..] == other[..] } [INFO] [stdout] | ^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:182:54 [INFO] [stdout] | [INFO] [stdout] 182 | fn eq(&self, other: &Self) -> bool { self[..] == other[..] } [INFO] [stdout] | ^^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:190:29 [INFO] [stdout] | [INFO] [stdout] 190 | <[A]>::partial_cmp(&self[..], &other[..]) [INFO] [stdout] | ^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:190:40 [INFO] [stdout] | [INFO] [stdout] 190 | <[A]>::partial_cmp(&self[..], &other[..]) [INFO] [stdout] | ^^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:196:59 [INFO] [stdout] | [INFO] [stdout] 196 | fn cmp(&self, other: &Self) -> Ordering { <[A]>::cmp(&self[..], &other[..]) } [INFO] [stdout] | ^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:196:70 [INFO] [stdout] | [INFO] [stdout] 196 | fn cmp(&self, other: &Self) -> Ordering { <[A]>::cmp(&self[..], &other[..]) } [INFO] [stdout] | ^^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:307:83 [INFO] [stdout] | [INFO] [stdout] 307 | fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { write!(fmt, "{:?}", &self[..]) } [INFO] [stdout] | ^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `NulStr`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `NulStr` [INFO] [stdout] --> src/lib.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | pub struct NulStr(Nul); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:313:77 [INFO] [stdout] | [INFO] [stdout] 313 | fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { fmt.write_str(&self[..]) } [INFO] [stdout] | ^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `NulStr`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `NulStr` [INFO] [stdout] --> src/lib.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | pub struct NulStr(Nul); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:321:43 [INFO] [stdout] | [INFO] [stdout] 321 | ::core::str::from_utf8_unchecked(&self.0[..]) [INFO] [stdout] | ^^^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:328:51 [INFO] [stdout] | [INFO] [stdout] 328 | ::core::str::from_utf8_unchecked_mut(&mut self.0[..]) [INFO] [stdout] | ^^^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:377:56 [INFO] [stdout] | [INFO] [stdout] 377 | pub fn is_char_boundary(&self, k: usize) -> bool { self[..].is_char_boundary(k) } [INFO] [stdout] | ^^^^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `NulStr`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `NulStr` [INFO] [stdout] --> src/lib.rs:303:12 [INFO] [stdout] | [INFO] [stdout] 303 | pub struct NulStr(Nul); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:417:33 [INFO] [stdout] | [INFO] [stdout] 417 | ::core::str::from_utf8(&s[..])?; [INFO] [stdout] | ^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `Opaque` cannot be known [INFO] [stdout] --> src/lib.rs:427:41 [INFO] [stdout] | [INFO] [stdout] 427 | ::core::str::from_utf8_mut(&mut s[..])?; [INFO] [stdout] | ^^^^^ doesn't have a known size [INFO] [stdout] | [INFO] [stdout] = help: within `Nul`, the trait `MetaSized` is not implemented for `Opaque` [INFO] [stdout] note: required because it appears within the type `Nul` [INFO] [stdout] --> src/lib.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Nul([A; 0], Opaque); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `null-terminated` (lib) due to 23 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "be03a65a414f8c581df080d710209403addb81834fead8ca09d67f5362592ad5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be03a65a414f8c581df080d710209403addb81834fead8ca09d67f5362592ad5", kill_on_drop: false }` [INFO] [stdout] be03a65a414f8c581df080d710209403addb81834fead8ca09d67f5362592ad5