-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Remove in_macro_or_desugar #4417
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
Conversation
I left one occurrence of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question regarding the comment, otherwise LGTM. Thanks for also updating the lint writing docs!
clippy_lints/src/misc.rs
Outdated
/// **Why is this bad?** NaN does not compare meaningfully to anything – not | ||
/// even itself – so those comparisons are simply wrong. | ||
/// **Why is this bad?** NaN does not compare meaningfully to anything not | ||
/// even itself so those comparisons are simply wrong. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the -
was replaced with a space here, was this on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that wasn't intentional. When I save that file with my editor configured to run rustfmt, it replaces the en dashes with spaces. :( I've pushed a commit to restore them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was a victim of rust-lang/rust-mode#279.
Thanks! @bors r+ |
📌 Commit eaf8f08 has been approved by |
Remove in_macro_or_desugar `in_macro_or_desugar` is just a wrapper around `Span::from_expansion`, so remove the former and call the latter instead. changelog: Remove `in_macro_or_desugar`.
☀️ Test successful - checks-travis, status-appveyor |
in_macro_or_desugar
is just a wrapper aroundSpan::from_expansion
, so remove the former and call the latter instead.changelog: Remove
in_macro_or_desugar
.