-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Make lexical_region_resolve
public for Clippy
#87989
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
I wonder if the Cilppy suggestion should compile though? Isn't any |
If something is public only for clippy, then it probably should have a comment saying that it's public only for clippy. Regarding other questions, r? @jackh726 maybe. |
After looking at this again, I think this is wrong. But there may be an opportunity to improve rustc coercion. I found out that |
I still need to take some time to look at this. I'll try to do that soon. |
@camsteffen do you still need this to be public? If so, do you have a branch I can look at? |
If you still need this, I think r=me with an appropriate comment |
I decided not to go this route. I just opened rust-lang/rust-clippy#7661 with a workaround for the Clippy bug - I just ignore associated functions on type parameters. I'm fairly certain this is an issue with rustc coercion so I don't think it makes sense to add this complexity to Clippy to work around a rustc bug. |
I have a locally working fix for rust-lang/rust-clippy#4002 that involves
lexical_region_resolve::resolve
. I'm doing my best to understand region checking and how it should integrate with Clippy, so please tell me if I'm totally on the wrong path. Basically I need to construct and evaluate aTypeOutlives
obligation.