[INFO] fetching crate cargo_metadata 0.23.0... [INFO] checking cargo_metadata-0.23.0 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate cargo_metadata 0.23.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate cargo_metadata 0.23.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate cargo_metadata 0.23.0 [INFO] tweaked toml for crates.io crate cargo_metadata 0.23.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate cargo_metadata 0.23.0 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate cargo_metadata 0.23.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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 18a00fae66c3baaa19eb6e1f6ea84958953ea5d7fa974c676d525feee03c8c09 [INFO] running `Command { std: "docker" "start" "-a" "18a00fae66c3baaa19eb6e1f6ea84958953ea5d7fa974c676d525feee03c8c09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "18a00fae66c3baaa19eb6e1f6ea84958953ea5d7fa974c676d525feee03c8c09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18a00fae66c3baaa19eb6e1f6ea84958953ea5d7fa974c676d525feee03c8c09", kill_on_drop: false }` [INFO] [stdout] 18a00fae66c3baaa19eb6e1f6ea84958953ea5d7fa974c676d525feee03c8c09 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dunmustuse_in_always_ok" "-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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] df5d6298f9fb32c297ceade7abe21b8a070aba07eb82849ceb7b2eafbf041608 [INFO] running `Command { std: "docker" "start" "-a" "df5d6298f9fb32c297ceade7abe21b8a070aba07eb82849ceb7b2eafbf041608", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling camino v1.2.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Checking semver v1.0.27 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking cargo-platform v0.3.1 [INFO] [stderr] Checking cargo_metadata v0.23.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:171:65 [INFO] [stdout] | [INFO] [stdout] 171 | fn from_str(value: &str) -> Result { [INFO] [stdout] | _________________________________________________________________^ [INFO] [stdout] 172 | | Ok(Self::new(value.to_owned())) [INFO] [stdout] 173 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 209 | / str_newtype!( [INFO] [stdout] 210 | | /// Feature name newtype [INFO] [stdout] 211 | | /// [INFO] [stdout] 212 | | /// Based on [cargo-util-schema's string newtype] but with two crucial differences: [INFO] [stdout] ... | [INFO] [stdout] 218 | | FeatureName [INFO] [stdout] 219 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] = note: this error originates in the macro `str_newtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | Ok(Self::new(value.to_owned())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | / str_newtype!( [INFO] [stdout] 210 | | /// Feature name newtype [INFO] [stdout] 211 | | /// [INFO] [stdout] 212 | | /// Based on [cargo-util-schema's string newtype] but with two crucial differences: [INFO] [stdout] ... | [INFO] [stdout] 218 | | FeatureName [INFO] [stdout] 219 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `str_newtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:171:65 [INFO] [stdout] | [INFO] [stdout] 171 | fn from_str(value: &str) -> Result { [INFO] [stdout] | _________________________________________________________________^ [INFO] [stdout] 172 | | Ok(Self::new(value.to_owned())) [INFO] [stdout] 173 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 221 | / str_newtype!( [INFO] [stdout] 222 | | /// Package name newtype [INFO] [stdout] 223 | | /// [INFO] [stdout] 224 | | /// Based on [cargo-util-schema's string newtype] but with two crucial differences: [INFO] [stdout] ... | [INFO] [stdout] 230 | | PackageName [INFO] [stdout] 231 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `str_newtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | Ok(Self::new(value.to_owned())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | / str_newtype!( [INFO] [stdout] 222 | | /// Package name newtype [INFO] [stdout] 223 | | /// [INFO] [stdout] 224 | | /// Based on [cargo-util-schema's string newtype] but with two crucial differences: [INFO] [stdout] ... | [INFO] [stdout] 230 | | PackageName [INFO] [stdout] 231 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `str_newtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:844:66 [INFO] [stdout] | [INFO] [stdout] 844 | fn from_str(s: &str) -> std::result::Result { [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 845 | | Ok(TargetKind::from(s)) [INFO] [stdout] 846 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:845:9 [INFO] [stdout] | [INFO] [stdout] 845 | Ok(TargetKind::from(s)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:922:66 [INFO] [stdout] | [INFO] [stdout] 922 | fn from_str(s: &str) -> std::result::Result { [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 923 | | Ok(CrateType::from(s)) [INFO] [stdout] 924 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:923:9 [INFO] [stdout] | [INFO] [stdout] 923 | Ok(CrateType::from(s)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cargo_metadata` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:171:65 [INFO] [stdout] | [INFO] [stdout] 171 | fn from_str(value: &str) -> Result { [INFO] [stdout] | _________________________________________________________________^ [INFO] [stdout] 172 | | Ok(Self::new(value.to_owned())) [INFO] [stdout] 173 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 209 | / str_newtype!( [INFO] [stdout] 210 | | /// Feature name newtype [INFO] [stdout] 211 | | /// [INFO] [stdout] 212 | | /// Based on [cargo-util-schema's string newtype] but with two crucial differences: [INFO] [stdout] ... | [INFO] [stdout] 218 | | FeatureName [INFO] [stdout] 219 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] = note: this error originates in the macro `str_newtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | Ok(Self::new(value.to_owned())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | / str_newtype!( [INFO] [stdout] 210 | | /// Feature name newtype [INFO] [stdout] 211 | | /// [INFO] [stdout] 212 | | /// Based on [cargo-util-schema's string newtype] but with two crucial differences: [INFO] [stdout] ... | [INFO] [stdout] 218 | | FeatureName [INFO] [stdout] 219 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `str_newtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:171:65 [INFO] [stdout] | [INFO] [stdout] 171 | fn from_str(value: &str) -> Result { [INFO] [stdout] | _________________________________________________________________^ [INFO] [stdout] 172 | | Ok(Self::new(value.to_owned())) [INFO] [stdout] 173 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 221 | / str_newtype!( [INFO] [stdout] 222 | | /// Package name newtype [INFO] [stdout] 223 | | /// [INFO] [stdout] 224 | | /// Based on [cargo-util-schema's string newtype] but with two crucial differences: [INFO] [stdout] ... | [INFO] [stdout] 230 | | PackageName [INFO] [stdout] 231 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `str_newtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | Ok(Self::new(value.to_owned())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | / str_newtype!( [INFO] [stdout] 222 | | /// Package name newtype [INFO] [stdout] 223 | | /// [INFO] [stdout] 224 | | /// Based on [cargo-util-schema's string newtype] but with two crucial differences: [INFO] [stdout] ... | [INFO] [stdout] 230 | | PackageName [INFO] [stdout] 231 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `str_newtype` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:844:66 [INFO] [stdout] | [INFO] [stdout] 844 | fn from_str(s: &str) -> std::result::Result { [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 845 | | Ok(TargetKind::from(s)) [INFO] [stdout] 846 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:845:9 [INFO] [stdout] | [INFO] [stdout] 845 | Ok(TargetKind::from(s)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:922:66 [INFO] [stdout] | [INFO] [stdout] 922 | fn from_str(s: &str) -> std::result::Result { [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 923 | | Ok(CrateType::from(s)) [INFO] [stdout] 924 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: std::result::Result [INFO] [stdout] --> src/lib.rs:923:9 [INFO] [stdout] | [INFO] [stdout] 923 | Ok(CrateType::from(s)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cargo_metadata` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "df5d6298f9fb32c297ceade7abe21b8a070aba07eb82849ceb7b2eafbf041608", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df5d6298f9fb32c297ceade7abe21b8a070aba07eb82849ceb7b2eafbf041608", kill_on_drop: false }` [INFO] [stdout] df5d6298f9fb32c297ceade7abe21b8a070aba07eb82849ceb7b2eafbf041608