]> git.lizzy.rs Git - rust.git/commit
require the non-last elements of a tuple to be Sized
authorAriel Ben-Yehuda <ariel.byd@gmail.com>
Thu, 21 Apr 2016 22:46:23 +0000 (01:46 +0300)
committerAriel Ben-Yehuda <ariel.byd@gmail.com>
Tue, 3 May 2016 15:30:10 +0000 (18:30 +0300)
commit0a6dfc51777eb388b6e795399bf1d3f8aac57db8
tree01f67adda8847634fa5ae03b3005be6868426f6c
parentbabb5df529ceef1cc8c12143d6dd4ab21188cc3e
require the non-last elements of a tuple to be Sized

This requirement appears to be missing from RFC1214, but is clearly
necessary for translation. The last field of a tuple/enum remains in
a state of limbo, compiling but causing an ICE when it is used - we
should eventually fix that somehow.

this is a [breaking-change] - a soundness fix - and requires a
crater run.
src/libcore/num/bignum.rs
src/librustc/traits/error_reporting.rs
src/librustc/traits/mod.rs
src/librustc/traits/select.rs
src/librustc/ty/mod.rs
src/librustc/ty/wf.rs
src/test/compile-fail/unsized3.rs
src/test/compile-fail/unsized6.rs