Skip to content

Commit 0d59b8c

Browse files
committed
Remove redundant test.
1 parent 7ff69b4 commit 0d59b8c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_mir_dataflow/src/value_analysis.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,7 @@ impl Map {
622622
ty: Ty<'tcx>,
623623
filter: &mut impl FnMut(Ty<'tcx>) -> bool,
624624
) {
625-
// Note: The framework supports only scalars for now.
626-
if filter(ty) && ty.is_scalar() {
625+
if filter(ty) {
627626
// We know that the projection only contains trackable elements.
628627
let place = self.make_place(local, projection).unwrap();
629628

0 commit comments

Comments
 (0)