Uh oh!
There was an error while loading. Please reload this page.
Lifetime variance fixes for clippy - #97289
Conversation
rust-highfive
commented
May 22, 2022
Some changes occurred in src/tools/clippy. cc @rust-lang/clippy |
rust-highfive
commented
May 22, 2022
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
56f96b8 to
8f8c89aComparethat's an embarrassing copy mistake |
There was a problem hiding this comment.
It looks like this was a search and replace gone wrong?
Mark-Simulacrum
commented
May 23, 2022
I commented on one case but it looks like there are a few more at least where 'a' is replaced with _tcx in comments etc |
2ae5732 to
8983f54Comparecompiler-errors
commented
May 23, 2022
Don't know how every @rustbot ready |
Uh oh!
There was an error while loading. Please reload this page.
Mark-Simulacrum
commented
May 23, 2022
r=me modulo comment (either way) |
8983f54 to
215decdComparecompiler-errors
commented
May 23, 2022
@bors r=Mark-Simulacrum |
bors
commented
May 23, 2022
📌 Commit 215decd has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#97240 (Typo suggestion for a variable with a name similar to struct fields) - rust-lang#97289 (Lifetime variance fixes for clippy) - rust-lang#97290 (Turn on `fast_submodules` unconditionally) - rust-lang#97336 (typo) - rust-lang#97337 (Fix stabilization version of `Ipv6Addr::to_ipv4_mapped`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…rk-Simulacrum Lifetime variance fixes for clippy rust-lang#97287 migrates rustc to a `Ty` type that is invariant over its lifetime `'tcx`, so I need to fix a bunch of places that assume that `Ty<'a>` and `Ty<'b>` can be shortened to some common lifetime. This is doable, since everything is already `'tcx`, so all this PR does is be a bit more explicit that elided lifetimes are actually `'tcx`. Split out from rust-lang#97287 so the clippy team can review independently.
#97287 migrates rustc to a
Tytype that is invariant over its lifetime'tcx, so I need to fix a bunch of places that assume thatTy<'a>andTy<'b>can be shortened to some common lifetime.This is doable, since everything is already
'tcx, so all this PR does is be a bit more explicit that elided lifetimes are actually'tcx.Split out from #97287 so the clippy team can review independently.