-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Improve the explicit_outlives_requirements lint #61172
Improve the explicit_outlives_requirements lint #61172
Conversation
matthewjasper
commented
May 25, 2019
•
edited
Loading
edited
- Don't use Strings to compare parameters
- Extend the lint to lifetime bounds
- Extend the lint to enums and unions
- Use the correct span for where clauses in tuple structs
- Try to early-out where possible
- Remove unnecessary bounds in rustc crates
1b7fd3a
to
e2e7809
Compare
This comment has been minimized.
This comment has been minimized.
e2e7809
to
9e0d1c7
Compare
r? @varkor |
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.
Looks good! r=me with nits fixed.
9e0d1c7
to
3ba720c
Compare
@bors r=varkor |
📌 Commit 7a0db474769697b0f20bc6ace65bb48fbc421bfb has been approved by |
⌛ Testing commit 7a0db474769697b0f20bc6ace65bb48fbc421bfb with merge 7a0019311d0fdb9ce6f823189af1ca64b38ab4db... |
💔 Test failed - checks-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 |
This comment has been minimized.
This comment has been minimized.
…s, r=alexcrichton Remove unnecessary outlives bounds cc rust-lang/rust#61172
7a0db47
to
783ac37
Compare
Also give them a span in the HIR
* Don't use Strings to compare parameters * Extend the lint to lifetime bounds * Extend the lint to enums and unions * Use the correct span for where clauses in tuple structs * Try to early-out where possible
783ac37
to
fdeb581
Compare
@bors r=varkor |
📌 Commit fdeb581 has been approved by |
⌛ Testing commit fdeb581 with merge f30160a6afbbf2e575aeb27f8a6ebecb6534f844... |
@bors retry yielding to r0llup |
@bors p=2 rollup=never |
…arkor Improve the explicit_outlives_requirements lint * Don't use Strings to compare parameters * Extend the lint to lifetime bounds * Extend the lint to enums and unions * Use the correct span for where clauses in tuple structs * Try to early-out where possible * Remove unnecessary bounds in rustc crates
☀️ Test successful - checks-travis, status-appveyor |
Fix warnings about unnecessary lifetime bounds Rustup rust-lang/rust#61172 changelog: none