Skip to content

Conversation

@ATantalizedLion
Copy link
Contributor

Fixes #1108

Adds a has_attr_namevalue that checks syn::Meta::NameValue for the attribute (original only checks syn::Meta::Path).
must_use now checks for either the has_attr_word or the new has_attr_namevalue.

I could not get the depfile.rs tests running locally (for both master and my own fork) so I am unsure if they pass.

@emilio emilio added this pull request to the merge queue Oct 21, 2025
@emilio
Copy link
Collaborator

emilio commented Oct 21, 2025

Would be good to add a test for this.

Merged via the queue into mozilla:master with commit d699f39 Oct 21, 2025
3 checks passed
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.

[fn] must_use is ignored when reason is specified

2 participants