diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2016-04-22 01:46:23 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2016-05-03 18:30:10 +0300 |
| commit | 0a6dfc51777eb388b6e795399bf1d3f8aac57db8 (patch) | |
| tree | 01f67adda8847634fa5ae03b3005be6868426f6c /src/libcore | |
| parent | babb5df529ceef1cc8c12143d6dd4ab21188cc3e (diff) | |
| download | rust-0a6dfc51777eb388b6e795399bf1d3f8aac57db8.tar.gz rust-0a6dfc51777eb388b6e795399bf1d3f8aac57db8.zip | |
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.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/num/bignum.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/num/bignum.rs b/src/libcore/num/bignum.rs index 66c6deb3615..a881b539ced 100644 --- a/src/libcore/num/bignum.rs +++ b/src/libcore/num/bignum.rs @@ -33,7 +33,7 @@ use mem; use intrinsics; /// Arithmetic operations required by bignums. -pub trait FullOps { +pub trait FullOps: Sized { /// Returns `(carry', v')` such that `carry' * 2^W + v' = self + other + carry`, /// where `W` is the number of bits in `Self`. fn full_add(self, other: Self, carry: bool) -> (bool /*carry*/, Self); |
