Skip to content

Fix useless_format false positive with macros #2632

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

Merged

Conversation

phansch
Copy link
Member

@phansch phansch commented Apr 5, 2018

Clippy was issuing a warning when format! was used inside a macro.
That's a problem because macros have different syntax and can be outside
the control of the user.

This skips the useless_format check if the format! call is inside a
macro.

Closes #2615
Closes #1130

Clippy was issuing a warning when `format!` was used inside a macro.
That's a problem because macros have different syntax and can be outside
the control of the user.

This skips the `useless_format` check if the `format!` call is inside a
macro.
@oli-obk oli-obk merged commit 62d595b into rust-lang:master Apr 5, 2018
@phansch phansch deleted the fix_useless_format_false_positive branch April 5, 2018 08:07
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