![](/style/images/good.png)
![](/style/images/bad.png)
Don't consider generic args of supertrait in `deref_into_dyn_supertrait` lint b...
source link: https://github.com/rust-lang/rust/pull/118026
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.
Conversation
Member
I actually wonder if we should just warn on any deref impl with a target type that matches a supertrait by def-id.
cc #89460
r? types
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Contributor
I think matching super trait by |
Contributor
example breakage with
|
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK