Skip to content

Commit 18b40c6

Browse files
committed
removed the definition of mask
1 parent 0ede9e6 commit 18b40c6

File tree

1 file changed

+0
-6
lines changed
  • src/librustc/mir/interpret

1 file changed

+0
-6
lines changed

src/librustc/mir/interpret/mod.rs

-6
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,3 @@ pub fn truncate(value: u128, size: Size) -> u128 {
434434
// truncate (shift left to drop out leftover values, shift right to fill with zeroes)
435435
(value << shift) >> shift
436436
}
437-
438-
pub fn mask(size: Size) -> u128 {
439-
let size = size.bits();
440-
let shift = 128 - size;
441-
!0u128 >> shift
442-
}

0 commit comments

Comments
 (0)