-
Notifications
You must be signed in to change notification settings - Fork 33
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
Use typeck_results.node_type
to resolve the type in suspicious trait object lint
#349
Conversation
Note that without the change, the example I added would hit a similar ICE to the |
It does. The test suite actually sets up an allow-list so it can test that. Would be no problem to add see Lines 1401 to 1411 in 07bec8d
|
Ah, I confused the sandbox feature (no network) with trusted. (I thought somehow it had been renamed and I hadn't noticed). I've added the test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Thanks for the unit test!
Thanks to @compiler-errors for helping me out here, this is much cleaner too.
Fixes #348 (we still may want to turn lints entirely off when compiling dependencies, but fixing it for real is better, and trying to parse a bunch of things out of the rustc args felt hairy without a bit more testing).