-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Fix dead code lint for functions using impl Trait #54810
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
You need to update a bunch of other tests' stderr files, too. |
r? @oli-obk |
cbf1696
to
3c46da8
Compare
@oli-obk Ah I see. I wasn't able to run the full test suite because I messed up the LLVM build. Should be fixed now, though. |
Hmm... These are all run-pass tests. We should probably ensure that the functions are called or move the functions to If that's ok with you I'd like to have this done in this PR where we see all the newly occurring warnings (or the lack thereof after the functions are actually called) |
@oli-obk Is this what you had in mind? Looks like there's only 1 case where the unused function should have been called, I've moved all other tests to |
Perfect. Thanks! @bors r+ |
📌 Commit e24f4d5 has been approved by |
discussed at T-compiler weekly meeting. approved for beta backport. |
⌛ Testing commit e24f4d5 with merge 04c1af0c18813daeb32d0585b1e8eccdd4b48cd2... |
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Actual error:
(spurious) Also, is that builder building LLVM twice? |
@bors retry as requested on IRC. |
Fix dead code lint for functions using impl Trait Fixes #54754 This is a minimal fix that doesn't add any new queries or touches unnecessary code. Please nominate for beta backport if wanted.
☀️ Test successful - status-appveyor, status-travis |
Fixes #54754
This is a minimal fix that doesn't add any new queries or touches unnecessary code. Please nominate for beta backport if wanted.