-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
rustc: prefer ParamEnvAnd and LayoutCx over tuples for LayoutOf. #47915
Conversation
@bors r+ |
📌 Commit 9c3dc7e has been approved by |
@bors p=1 (move more complex PRs forward) |
⌛ Testing commit 9c3dc7e with merge 0e1741ed4f8b459407718a6f1babdbbb0fc247ce... |
💔 Test failed - status-appveyor |
@bors retry Is this a known timeout issue? |
rustc: prefer ParamEnvAnd and LayoutCx over tuples for LayoutOf. This PR provides `tcx.layout_of(param_env.and(ty))` as the idiomatic replacement for the existing `(tcx, param_env).layout_of(ty)` and removes fragile (coherence-wise) layout-related tuple impls. r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
(BTW, the previous timeout was due to 1h 42m spent on cloning binaryen.
) |
This PR provides
tcx.layout_of(param_env.and(ty))
as the idiomatic replacement for the existing(tcx, param_env).layout_of(ty)
and removes fragile (coherence-wise) layout-related tuple impls.r? @nikomatsakis