Skip to content
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

Silence non_local_definition warnings until they fixed upstream in PyO3's macros #427

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

adamreichold
Copy link
Member

No description provided.

@adamreichold
Copy link
Member Author

adamreichold commented Apr 14, 2024

@davidhewitt @messense Does one of you know whether the relevant Codecov token is configured for the rust-numpy repository? We had intermittent upload failures in the past and I think this might be related to the missing token which I tried to explicitly forward here. Since I do not have that access, could one of you have look? Thanks!

@davidhewitt
Copy link
Member

I have tried to update this now, let's see if a rerun works 👀

@adamreichold
Copy link
Member Author

I have tried to update this now, let's see if a rerun works 👀

Thanks! Looks better now.

Regarding the actual code changes, I wonder if I should just wait for 0.21.2 on Tuesday and avoid the temporary suppression of lints? This is mainly affecting nightly users after all.

@davidhewitt
Copy link
Member

Regarding the actual code changes, I wonder if I should just wait for 0.21.2 on Tuesday and avoid the temporary suppression of lints? This is mainly affecting nightly users after all.

Indeed seeing this PR was part of what spurred me on to get the 0.21.2 patch shipped! Hopefully the code changes here are no longer necessary :)

@adamreichold
Copy link
Member Author

PyO3 is still not completely transparent here as I had to move the definitions outside of function scope (which I don't think I would need to do for plain Rust struct/impl blocks), but let's merge this until we have a long-term plan for this lint.

@adamreichold adamreichold merged commit 91b1c4e into main Apr 16, 2024
32 of 33 checks passed
@adamreichold adamreichold deleted the warnings branch April 16, 2024 19:03
@davidhewitt
Copy link
Member

Hmm that's frustrating; I guess we need to figure out what is actually nightly being overly strict and what's definitely something to change on the PyO3 side...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants