-
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
Combine ty::Projection
and ty::Opaque
into ty::Alias
#104986
Conversation
This comment has been minimized.
This comment has been minimized.
9892bfb
to
ffa4220
Compare
This comment has been minimized.
This comment has been minimized.
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.
I wonder what are the next steps. Can this be used to integrate in-trait opaques as a variant of AliasKind
?
☔ The latest upstream changes (presumably #105008) made this pull request unmergeable. Please resolve the merge conflicts. |
ffa4220
to
c9a7fa8
Compare
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred in need_type_info.rs cc @lcnr Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
I think this is ready r? types |
c9a7fa8
to
c0ab50e
Compare
This comment has been minimized.
This comment has been minimized.
c0ab50e
to
fe4fc29
Compare
☔ The latest upstream changes (presumably #105348) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
r=me with some nits and a clean perf run
@bors p=1 bitrotty |
⌛ Trying commit 99417d5 with merge ad35b8e377db9f8fa1364750ed99d283bc52b2f2... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (ad35b8e377db9f8fa1364750ed99d283bc52b2f2): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
This looks like the same exact noisy crates that we saw in #105350 (comment) |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (918d0ac): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
This commit fixes compilation errors but not runtime ones. Related changes: rust-lang/rust#104986 rust-lang/rust#105657 rust-lang/rust#105603 rust-lang/rust#105613
Upgrade our toolchain to `nightly-2023-01-23`. The changes here are related to the following changes: - rust-lang/rust#104986 - rust-lang/rust#105657 - rust-lang/rust#105603 - rust-lang/rust#105613 - rust-lang/rust#105977 - rust-lang/rust#104645
Implements rust-lang/types-team#79.
This PR consolidates
ty::Projection
andty::Opaque
into a singlety::Alias
, with anAliasKind
andAliasTy
type (renamed fromty::ProjectionTy
, which is the inner data ofty::Projection
) defined as so:Since we don't have access to
TyCtxt
in type flags computation, and because repeatedly callingDefKind
on the def-id is expensive, these two types are distinguished withty::AliasKind
, conveniently glob-imported intoty::{Projection, Opaque}
. For example:This PR also consolidates match arms that treated
ty::Opaque
andty::Projection
identically.r? @ghost