Bug: Can't compile version 0.9.123
bug
### Description of the issue
**Description:**
When updating cargo-nextest, there is an error when compiling `nextest-runner v0.104.0`.
**Steps to reproduce:**
```
cargo install cargo-nextest
```
or (if you have cargo-update)
```
cargo install-update -a
```
### Expected outcome
Successful build.
### Actual result
```
Compiling nextest-runner v0.104.0
error[E0283]: type annotations needed
--> /home/naim/.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-installleXIPy`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
```
### Nextest version
```text
Currently stuck on this :
cargo-nextest 0.9.122 (14513ce84 2026-01-14)
release: 0.9.122
commit-hash: 14513ce84fbaedd42731bedf04b7685f94277467
commit-date: 2026-01-14
host: x86_64-unknown-linux-gnu
```
### Additional context
_No response_
关闭于 2026-01-24 5 条评论