|
14 | 14 |
|
15 | 15 | use rustc::ty::TyCtxt; |
16 | 16 | use rustc::mir::{self, Mir, Location}; |
17 | | -use rustc_data_structures::bitslice::{BitwiseOperator}; |
| 17 | +use rustc_data_structures::bitslice::{BitwiseOperator, Word}; |
18 | 18 | use rustc_data_structures::indexed_set::{IdxSet}; |
19 | 19 | use rustc_data_structures::indexed_vec::Idx; |
20 | 20 |
|
@@ -663,35 +663,35 @@ impl<'a, 'gcx, 'tcx> BitDenotation for EverInitializedPlaces<'a, 'gcx, 'tcx> { |
663 | 663 |
|
664 | 664 | impl<'a, 'gcx, 'tcx> BitwiseOperator for MaybeInitializedPlaces<'a, 'gcx, 'tcx> { |
665 | 665 | #[inline] |
666 | | - fn join(&self, pred1: usize, pred2: usize) -> usize { |
| 666 | + fn join(&self, pred1: Word, pred2: Word) -> Word { |
667 | 667 | pred1 | pred2 // "maybe" means we union effects of both preds |
668 | 668 | } |
669 | 669 | } |
670 | 670 |
|
671 | 671 | impl<'a, 'gcx, 'tcx> BitwiseOperator for MaybeUninitializedPlaces<'a, 'gcx, 'tcx> { |
672 | 672 | #[inline] |
673 | | - fn join(&self, pred1: usize, pred2: usize) -> usize { |
| 673 | + fn join(&self, pred1: Word, pred2: Word) -> Word { |
674 | 674 | pred1 | pred2 // "maybe" means we union effects of both preds |
675 | 675 | } |
676 | 676 | } |
677 | 677 |
|
678 | 678 | impl<'a, 'gcx, 'tcx> BitwiseOperator for DefinitelyInitializedPlaces<'a, 'gcx, 'tcx> { |
679 | 679 | #[inline] |
680 | | - fn join(&self, pred1: usize, pred2: usize) -> usize { |
| 680 | + fn join(&self, pred1: Word, pred2: Word) -> Word { |
681 | 681 | pred1 & pred2 // "definitely" means we intersect effects of both preds |
682 | 682 | } |
683 | 683 | } |
684 | 684 |
|
685 | 685 | impl<'a, 'gcx, 'tcx> BitwiseOperator for MovingOutStatements<'a, 'gcx, 'tcx> { |
686 | 686 | #[inline] |
687 | | - fn join(&self, pred1: usize, pred2: usize) -> usize { |
| 687 | + fn join(&self, pred1: Word, pred2: Word) -> Word { |
688 | 688 | pred1 | pred2 // moves from both preds are in scope |
689 | 689 | } |
690 | 690 | } |
691 | 691 |
|
692 | 692 | impl<'a, 'gcx, 'tcx> BitwiseOperator for EverInitializedPlaces<'a, 'gcx, 'tcx> { |
693 | 693 | #[inline] |
694 | | - fn join(&self, pred1: usize, pred2: usize) -> usize { |
| 694 | + fn join(&self, pred1: Word, pred2: Word) -> Word { |
695 | 695 | pred1 | pred2 // inits from both preds are in scope |
696 | 696 | } |
697 | 697 | } |
|
0 commit comments