-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Produce expansion info for more builtin macros #44248
Conversation
src/librustc_lint/builtin.rs
Outdated
cx.span_lint(WHILE_TRUE, | ||
e.span, | ||
"denote infinite loops with loop { ... }"); | ||
if lit.span.ctxt().outer().expn_info().is_none() { |
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 believe this could just be if lit.span.ctxt() == SyntaxContext::empty() { ... }
.
Thanks! r=me with comment addressed. |
@bors r=jseyfried |
@oli-obk: 🔑 Insufficient privileges: Not in reviewers |
@bors r=jseyfried |
📌 Commit c4d5a1e has been approved by |
Produce expansion info for more builtin macros r? @jseyfried fixes #43268
💔 Test failed - status-travis |
Produce expansion info for more builtin macros r? @jseyfried fixes #43268
💔 Test failed - status-travis |
@bors retry #44221 (note: 2nd try)
|
Produce expansion info for more builtin macros r? @jseyfried fixes #43268
☀️ Test successful - status-appveyor, status-travis |
r? @jseyfried
fixes #43268