-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
internal compiler error: librustc/hir/def.rs:249: attempted .def_id() on invalid def: Local(NodeId(767)) #2865
Comments
I can see tomorrow if I can find the reason unless somebody does it sooner. So far |
@mati865 Feel free to add it integration tests, we don't have a lot of ffi code in there, yet 👍 |
Running I don't have enough knowledge about Minimal repro:
Closure is crucial here, it becomes Code triggering this bug: |
The errors in the master branch are just due to opaque FFI pointers. Clippy doesn't seem to like the concept at all, although it's necessary for sharing complex Rust types with C. |
@mmstick unfortunately it's kinda expected. If you want to use clippy in that project you will have to whitelist specific lints, for whole project it's:
|
@mati865 That's basically what this PR is doing: pop-os/distinst#114, with |
5f5fa0
Found another issue with Clippy (maybe Rust?) when using it on distinst. With the previous issue fixed, everything works now except for building the
ffi
workspace member. It builds fine without clippy, but fails with clippy.The text was updated successfully, but these errors were encountered: