-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
ty/walk: iterate GenericArg
s instead of Ty
s.
#70164
Conversation
This comment has been minimized.
This comment has been minimized.
I'm doing a perf run with just commit, to assess the impact of collecting
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit 27d6047f0fc787370b110688389204e2c4c57bc6 with merge e8f55d1b486e3355f5cb9b8252d069943e421ac0... |
☀️ Try build successful - checks-azure |
Queued e8f55d1b486e3355f5cb9b8252d069943e421ac0 with parent f4c675c, future comparison URL. |
Finished benchmarking try commit e8f55d1b486e3355f5cb9b8252d069943e421ac0, comparison URL. |
Looks harmless, I guess? I'll finish the PR assuming the first commit is acceptable. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
GenericArg
s instead of Ty
s.GenericArg
s instead of Ty
s.
@bors r=nikomatsakis rollup=never (just in case we get another surprise) |
📌 Commit 626abc7 has been approved by |
@bors p=1 |
☀️ Test successful - checks-azure |
📣 Toolstate changed by #70164! Tested on commit 209b2be. 💔 clippy-driver on windows: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq). |
Tested on commit rust-lang/rust@209b2be. Direct link to PR: <rust-lang/rust#70164> 💔 clippy-driver on windows: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq). 💔 clippy-driver on linux: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq).
…r=nikomatsakis outlives: ignore lifetimes shallowly found in `ty::FnDef`s. Fixes rust-lang#70917 by restoring the pre-rust-lang#70164 behavior for now. r? @nikomatsakis
Before this PR,
Ty::walk
only iterated overTy
s, but that's becoming an increasing problem withconst
generics, asty::Const
s inSubsts
are missed by it.By working with
GenericArg
instead, we can handle bothTy
s andty::Const
s, but alsoty::Region
s, which used to require ad-hoc mechanisms such aspush_regions
.I've also removed
TraitRef::input_types
, as it's both long obsolete, and easy to misuse.