2

Fix incorrect Box::pin suggestion by tmandry · Pull Request #89390 · rust-lang/r...

 2 years ago
source link: https://github.com/rust-lang/rust/pull/89390
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Contributor

tmandry commented 29 days ago

The suggestion checked if Pin<Box<T>> could be coeerced to the expected
type, but did not check predicates created by the coercion. We now
look for predicates that definitely cannot be satisfied before giving
the suggestion.

The suggestion is still marked MaybeIncorrect because we allow predicates that
are still ambiguous and can't be proven.

Fixes #72117.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK