-
Hello, I have been maintaining a rather large PyO3/maturin project for a number of years now. Recently, after updating things, I have started to receive a very large number of warnings when compiling the project that look something like this:
I don't fully understand the issue, as the Point3D impl in the example warning above is located in the same file as the structure. I've tried looking this issue up but unfortunately I can't understand any of the explanations for the nature of the problem on any of the Github issues that I've come across and I don't see any obvious resolution to the problem. Any insights? Has anyone else run into this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
What version of |
Beta Was this translation helpful? Give feedback.
-
I remember there was talk about this lint getting rolled back, so you can also try upgrading your compiler version. Or you can just globally allow this lint if you cannot upgrade either rustc or pyo3. |
Beta Was this translation helpful? Give feedback.
-
It's true my pyo3 is a bit dated at this point. I've wanted to migrate to a newer version but doing so has introduced several errors. Since it's such a large project, the migration will likely take quite a while. Anyhow, thank you for your insight here and I see now that it's on me to try and update. |
Beta Was this translation helpful? Give feedback.
What version of
pyo3
are you using? This was an issue in earlier versions (#4094, #3903) caused by implementation ofpyo3
s macros. It should be fixed since0.21
, so updating in case yours is older should do the trick. Otherwise an example reproducing the behavior (with latestpyo3
) would be helpful.