[INFO] fetching crate cbor-no-std 0.3.0... [INFO] checking cbor-no-std-0.3.0 against try#1463461488056994d1b84e8b752e7c11c7fae7aa for pr-154205 [INFO] extracting crate cbor-no-std 0.3.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate cbor-no-std 0.3.0 [INFO] finished tweaking crates.io crate cbor-no-std 0.3.0 [INFO] tweaked toml for crates.io crate cbor-no-std 0.3.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate cbor-no-std 0.3.0 on toolchain 1463461488056994d1b84e8b752e7c11c7fae7aa [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1463461488056994d1b84e8b752e7c11c7fae7aa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1463461488056994d1b84e8b752e7c11c7fae7aa" "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" "+1463461488056994d1b84e8b752e7c11c7fae7aa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1463461488056994d1b84e8b752e7c11c7fae7aa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0891e4eff2b0fabe5ca95399b8b13eff141c72ae8cd8461e1ad22006532a3cc6 [INFO] running `Command { std: "docker" "start" "-a" "0891e4eff2b0fabe5ca95399b8b13eff141c72ae8cd8461e1ad22006532a3cc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0891e4eff2b0fabe5ca95399b8b13eff141c72ae8cd8461e1ad22006532a3cc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0891e4eff2b0fabe5ca95399b8b13eff141c72ae8cd8461e1ad22006532a3cc6", kill_on_drop: false }` [INFO] [stdout] 0891e4eff2b0fabe5ca95399b8b13eff141c72ae8cd8461e1ad22006532a3cc6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1463461488056994d1b84e8b752e7c11c7fae7aa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d54653f492089eaf2342e002a9d327ffc18fbb86ba3720cf4b1648e7cd4363f [INFO] running `Command { std: "docker" "start" "-a" "1d54653f492089eaf2342e002a9d327ffc18fbb86ba3720cf4b1648e7cd4363f", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Checking cbor-no-std v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `lang_items` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(lang_items, alloc)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/de.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | value @ 0b00000...0b10111 => value, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/ser.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | n @ 0 ... 23 => vec![bytes::concat(major_type, n as u8)], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/ser.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | n @ 24 ... 255 => vec![bytes::concat(major_type, 24), n as u8], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `alloc` has been stable since 1.36.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(lang_items, alloc)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/ser.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | transmute::((value as u16).to_be()).to_vec() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 75 - transmute::((value as u16).to_be()).to_vec() [INFO] [stdout] 75 + u16::to_ne_bytes((value as u16).to_be()).to_vec() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/ser.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | transmute::((value as u32).to_be()).to_vec() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 84 - transmute::((value as u32).to_be()).to_vec() [INFO] [stdout] 84 + u32::to_ne_bytes((value as u32).to_be()).to_vec() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/ser.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | transmute::((value).to_be()).to_vec() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 93 - transmute::((value).to_be()).to_vec() [INFO] [stdout] 93 + u64::to_ne_bytes((value).to_be()).to_vec() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: feature `lang_items` is declared but not used [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(lang_items, alloc)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `lang_items` is internal to the compiler or standard library [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(lang_items, alloc)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using it is strongly discouraged [INFO] [stdout] = note: `#[warn(internal_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/de.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | value @ 0b00000...0b10111 => value, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/ser.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | n @ 0 ... 23 => vec![bytes::concat(major_type, n as u8)], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/ser.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | n @ 24 ... 255 => vec![bytes::concat(major_type, 24), n as u8], [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `alloc` has been stable since 1.36.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(lang_items, alloc)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Value: From<&str>` is not satisfied [INFO] [stdout] --> src/de.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | test_map.insert("key1".into(), Value::String("value1".into())); [INFO] [stdout] | ^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `From<&str>` is not implemented for `Value` [INFO] [stdout] --> src/value.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Value { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `Value` implements `From<()>` [INFO] [stdout] `Value` implements `From>` [INFO] [stdout] `Value` implements `From>` [INFO] [stdout] `Value` implements `From` [INFO] [stdout] `Value` implements `From` [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Value: From<&str>` is not satisfied [INFO] [stdout] --> src/de.rs:127:28 [INFO] [stdout] | [INFO] [stdout] 127 | test_map.insert("key2".into(), Value::String("value2".into())); [INFO] [stdout] | ^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `From<&str>` is not implemented for `Value` [INFO] [stdout] --> src/value.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Value { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `Value` implements `From<()>` [INFO] [stdout] `Value` implements `From>` [INFO] [stdout] `Value` implements `From>` [INFO] [stdout] `Value` implements `From` [INFO] [stdout] `Value` implements `From` [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Value: From<&str>` is not satisfied [INFO] [stdout] --> src/ser.rs:132:28 [INFO] [stdout] | [INFO] [stdout] 132 | test_map.insert("key1".into(), Value::String("value1".into())); [INFO] [stdout] | ^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `From<&str>` is not implemented for `Value` [INFO] [stdout] --> src/value.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Value { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `Value` implements `From<()>` [INFO] [stdout] `Value` implements `From>` [INFO] [stdout] `Value` implements `From>` [INFO] [stdout] `Value` implements `From` [INFO] [stdout] `Value` implements `From` [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Value: From<&str>` is not satisfied [INFO] [stdout] --> src/ser.rs:133:28 [INFO] [stdout] | [INFO] [stdout] 133 | test_map.insert("key2".into(), Value::String("value2".into())); [INFO] [stdout] | ^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `From<&str>` is not implemented for `Value` [INFO] [stdout] --> src/value.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Value { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `Value` implements `From<()>` [INFO] [stdout] `Value` implements `From>` [INFO] [stdout] `Value` implements `From>` [INFO] [stdout] `Value` implements `From` [INFO] [stdout] `Value` implements `From` [INFO] [stdout] = note: required for `&str` to implement `Into` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cbor-no-std` (lib test) due to 4 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1d54653f492089eaf2342e002a9d327ffc18fbb86ba3720cf4b1648e7cd4363f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d54653f492089eaf2342e002a9d327ffc18fbb86ba3720cf4b1648e7cd4363f", kill_on_drop: false }` [INFO] [stdout] 1d54653f492089eaf2342e002a9d327ffc18fbb86ba3720cf4b1648e7cd4363f