-
Notifications
You must be signed in to change notification settings - Fork 125
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
Function parameters cannot shadow statics #318
Comments
Yeah. These are the dangers of using glob-imports (as in No easy fixes :(
I think we need to actually do all of 1, 2 and 3, and perhaps in the following order: 2, then 3, then 1. Or 3, then 2 then 1. Given how easy option 2 is, perhaps you can do it? The line that we fixed (removed) yesterday should be very near to where you need to do a code change. |
Oh, and you can of course always just temporarily patch |
Thanks for this! In my case option 2 is probably the best. How is this different from using Another option would be to patch the |
No idea, as it is not me who wrote the components support originally, so now I need to read the code of it, just like you do.
Just fork |
Regarding
|
Understand :) As it seems to be narrowed down to a warning, so I'm getting somewhere :) Let me have a look to see if I can figure out what's going on here and how to fix this. |
Maybe I can chime in for this: To implement this, you would need to know which C header the bindings came from during generation and add the appropriate code to the generated bindings. There is a This is the reason that separate bindgen instances are run to put extra component's bindings in a separate module (and explains the docs on the Hopefully, this explanation shed some light on this. |
@N3xed thanks for the context! I didn't realize that |
I'm working on a project that is based on
[esp-idf-template](https://github.com/esp-rs/esp-idf-template)
and when I'm trying to includeesp-idf-hal
in myCargo.toml
compilation fails with the following error:I'm compiling on MacOS with ESP IDF v5.0.
Any idea what is wrong?
The text was updated successfully, but these errors were encountered: