Uh oh!
There was an error while loading. Please reload this page.
remove lifetimes that can be elided (clippy::needless_lifetimes) - #69809
Conversation
rust-highfive
commented
Mar 7, 2020
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
eddyb
commented
Mar 12, 2020
cc @rust-lang/compiler Don't we have a regular lint that also does this? I remember wanting to do something like this then hitting some sort of issue. |
There was a problem hiding this comment.
This is weird, shouldn't be -> &Type?
There was a problem hiding this comment.
More examples here, maybe search for &'_ and replace them?
There was a problem hiding this comment.
Hmm none of the changes in this file seem to create &'_ .
eddyb
commented
Mar 12, 2020
Ah, I must be thinking of (coincidentally got notified of that issue just now) |
matthiaskrgr
commented
Mar 12, 2020
Right, removed the redundant anonymous lifetimes |
eddyb
commented
Mar 12, 2020
@bors r+ |
bors
commented
Mar 12, 2020
📌 Commit 7b1b08c has been approved by |
remove lifetimes that can be elided (clippy::needless_lifetimes)
Rollup of 8 pull requests Successful merges: - #68746 (Make macro metavars respect (non-)hygiene) - #69189 (Erase regions in writeback) - #69402 (Extend search) - #69403 (Implement `Copy` for `IoSlice`) - #69460 (Move some `build-pass` tests to `check-pass`) - #69802 (fix more clippy findings) - #69809 (remove lifetimes that can be elided (clippy::needless_lifetimes)) - #69949 (triagebot.toml: add ping aliases) Failed merges: - #69589 (ast: `Mac`/`Macro` -> `MacCall`) r? @ghost
remove lifetimes that can be elided (clippy::needless_lifetimes)
Rollup of 12 pull requests Successful merges: - #69403 (Implement `Copy` for `IoSlice`) - #69460 (Move some `build-pass` tests to `check-pass`) - #69723 (Added doc on keyword Pub.) - #69802 (fix more clippy findings) - #69809 (remove lifetimes that can be elided (clippy::needless_lifetimes)) - #69947 (Clean up E0423 explanation) - #69949 (triagebot.toml: add ping aliases) - #69954 (rename panic_if_ intrinsics to assert_) - #69960 (miri engine: fix treatment of abort intrinsic) - #69966 (Add more regression tests) - #69973 (Update stable-since version for const_int_conversion) - #69974 (Clean up E0434 explanation) Failed merges: r? @ghost
No description provided.