]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #47915 - eddyb:layout-of, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sun, 4 Feb 2018 03:33:44 +0000 (03:33 +0000)
committerbors <bors@rust-lang.org>
Sun, 4 Feb 2018 03:33:44 +0000 (03:33 +0000)
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

1  2 
src/librustc_typeck/check/mod.rs

Simple merge