about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2016-04-22 13:56:25 +0300
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2016-05-03 18:30:10 +0300
commit6fc19ada6b2c6373b28e70a1dffda68dba96f9a1 (patch)
tree9590ad37d2b63c2e67308459f3cafdae885beb44
parent2f8f256cef42350af2f0376891fd020b6b1c37de (diff)
downloadrust-6fc19ada6b2c6373b28e70a1dffda68dba96f9a1.tar.gz
rust-6fc19ada6b2c6373b28e70a1dffda68dba96f9a1.zip
fix breaking changes
-rw-r--r--src/librustc_back/sha2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_back/sha2.rs b/src/librustc_back/sha2.rs
index ba8107e03c9..26f512e0613 100644
--- a/src/librustc_back/sha2.rs
+++ b/src/librustc_back/sha2.rs
@@ -42,7 +42,7 @@ fn read_u32v_be(dst: &mut[u32], input: &[u8]) {
     }
 }
 
-trait ToBits {
+trait ToBits: Sized {
     /// Convert the value in bytes to the number of bits, a tuple where the 1st item is the
     /// high-order value and the 2nd item is the low order value.
     fn to_bits(self) -> (Self, Self);