nextest-runner 0.104.0 fails to compile
See [this build failure](https://github.com/google/zerocopy/actions/runs/21319716003/job/61367938443#step:14:409):
```text
error[E0283]: type annotations needed
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nextest-runner-0.104.0/src/rustc_cli.rs:50:44
|
50 | self.args.iter().map(|arg| arg.as_ref()),
| ^^^^^^
|
= note: multiple `impl`s satisfying `Cow<'_, str>: AsRef<_>` found in the following crates: `alloc`, `typed_path`:
- impl<T> AsRef<T> for Cow<'_, T>
where T: ToOwned, T: ?Sized;
- impl<T> AsRef<typed_path::common::utf8::path::Utf8Path<T>> for Cow<'_, str>
where T: typed_path::common::utf8::Utf8Encoding;
help: try using a fully qualified path to specify the expected types
|
50 - self.args.iter().map(|arg| arg.as_ref()),
50 + self.args.iter().map(|arg| <Cow<'_, str> as AsRef<T>>::as_ref(arg)),
|
For more information about this error, try `rustc --explain E0283`.
error: could not compile `nextest-runner` (lib) due to 1 previous error
error: failed to compile `cargo-nextest v0.9.123`, intermediate artifacts can be found at `/tmp/cargo-installnCVXAS`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Error: Process completed with exit code 101.
```
关闭于 2026-01-24 1 条评论