Use typeck_results.node_type to resolve the type in suspicious trait object lint#349
Use typeck_results.node_type to resolve the type in suspicious trait object lint#349
typeck_results.node_type to resolve the type in suspicious trait object lint#349Conversation
|
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 |
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. |
eeeebbbbrrrr
left a comment
There was a problem hiding this comment.
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).