Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust 1.75版本与delay-timer 0.11.4版本不兼容,1.74.1没有问题 #50

Closed
apiclouds opened this issue Dec 31, 2023 · 4 comments
Closed

Comments

@apiclouds
Copy link

error[E0277]: the trait bound StrSearcher<'_, '_>: DoubleEndedSearcher<'_> is not satisfied
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/delay_timer-0.11.4/src/utils/parse.rs:371:83
|
371 | let mut sub_command_inner = command.trim().split_inclusive(angle_bracket).rev();
| ^^^ the trait DoubleEndedSearcher<'_> is not implemented for StrSearcher<'_, '_>
|
= help: the following other types implement trait DoubleEndedSearcher<'a>:
CharSearcher<'a>
CharArraySearcher<'a, N>
CharArrayRefSearcher<'a, 'b, N>
CharSliceSearcher<'a, 'b>
CharPredicateSearcher<'a, F>
= note: required for std::str::SplitInclusive<'_, &str> to implement DoubleEndedIterator
note: required by a bound in rev
--> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/iter/traits/iterator.rs:3397:5

error[E0599]: the method next exists for struct Rev<SplitInclusive<'_, &str>>, but its trait bounds were not satisfied
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/delay_timer-0.11.4/src/utils/parse.rs:374:14
|
373 | / sub_command_inner
374 | | .next()
| | -^^^^ method cannot be called on Rev<SplitInclusive<'_, &str>> due to unsatisfied trait bounds
| |_____________|
|
--> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/str/iter.rs:1216:1
|
= note: doesn't satisfy _: DoubleEndedIterator
--> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/iter/adapters/rev.rs:15:1
|
= note: doesn't satisfy Rev<std::str::SplitInclusive<'_, &str>>: Iterator
|
= note: the following trait bounds were not satisfied:
std::str::SplitInclusive<'_, &str>: DoubleEndedIterator
which is required by Rev<std::str::SplitInclusive<'_, &str>>: Iterator

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try rustc --explain E0277.
error: could not compile delay_timer (lib) due to 2 previous errors

@iwansyahp
Copy link

iwansyahp commented Jan 2, 2024

I also face this issue when using rust 1.75.0 error doesn't occur when using rust 1.74, can use use rust-toolchain with channel 1.74.0 as a workaround until this is getting fixed

@dyxushuai
Copy link

This is the related issue rust-lang/rust#100756

@BinChengZhao
Copy link
Owner

Hi guys, the issue has been fixed in V0.11.5 @dyxushuai @apiclouds @iwansyahp

@iwansyahp
Copy link

thank you, @BinChengZhao!

taikulawo added a commit to yetpocket/cls-verge that referenced this issue Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants