You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm reporting because an unexpected panic happened on running cargo clippy.
On the other hand, cargo check succeeds without a warning.
The problem is that, if I created a new git worktree (that is, made a exact copy of src/, rust-toolchain, Cargo.{toml, lock} but not of target), the error does not reproduce. So I'm not sure what is the appropriate next action. Here are the code that is causing the error. Also I .tar.gz-ed the current worktree.
I'm now leaving the worktree as-is just in case, so I may respond any troubleshooting steps.
❯ cargo check
Checking taiko-wiki-data-analysis v0.1.0 (/Users/username/dev/git/com/github/TonalidadeHidrica/taiko-wiki-data-analysis)
error[E0271]: type mismatch resolving `<FlatMap<std::option::Iter<'_, TwoStr<'_>>, TwoStrIter<'_>, [closure@src/pukiwiki_parser/inline.rs:605:70: 605:87]> as Iterator>::Item == Cow<'_, str>`
--> src/pukiwiki_parser/inline.rs:602:27
|
602 | pub fn text(&self) -> impl Iterator<Item = Cow<str>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Cow`, found `&str`
|
= note: expected enum `Cow<'_, str>`
found reference `&str`
note: required because of the requirements on the impl of `Iterator` for `__Enum9216455845793451550<impl Iterator, FlatMap<std::option::Iter<'_, TwoStr<'_>>, TwoStrIter<'_>, [closure@src/pukiwiki_parser/inline.rs:605:70: 605:87]>, std::iter::Empty<Cow<'_, str>>>`
--> src/pukiwiki_parser/inline.rs:601:5
|
601 | #[auto_enum(Iterator)]
| ^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in the attribute macro `auto_enum` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0271`.
error: could not compile `taiko-wiki-data-analysis` due to previous error
The text was updated successfully, but these errors were encountered:
@dswij It seems so, and #8095 seems to be similar to #7927, which in turn to rust-lang/rust#89962. With so many similar issues, should I close this issue?
I'm reporting because an unexpected panic happened on running
cargo clippy
.On the other hand,
cargo check
succeeds without a warning.The problem is that, if I created a new git worktree (that is, made a exact copy of
src/
,rust-toolchain
,Cargo.{toml, lock}
but not oftarget
), the error does not reproduce. So I'm not sure what is the appropriate next action.Here are the code that is causing the error. Also I
.tar.gz
-ed the current worktree.I'm now leaving the worktree as-is just in case, so I may respond any troubleshooting steps.
cargo clippy
cargo check
The text was updated successfully, but these errors were encountered: