diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-01-21 21:52:40 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-02-06 21:29:02 +0000 |
| commit | 0d59b8c997e31095732c9f9864e10d76daaeb42e (patch) | |
| tree | 3812f1f091354a6f7082fb56e5323ff0d0da6359 | |
| parent | 7ff69b49dfcc0f7d37ee17e36f67c57168c44073 (diff) | |
| download | rust-0d59b8c997e31095732c9f9864e10d76daaeb42e.tar.gz rust-0d59b8c997e31095732c9f9864e10d76daaeb42e.zip | |
Remove redundant test.
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/value_analysis.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_mir_dataflow/src/value_analysis.rs b/compiler/rustc_mir_dataflow/src/value_analysis.rs index 8bf6493be4b..45afd16c313 100644 --- a/compiler/rustc_mir_dataflow/src/value_analysis.rs +++ b/compiler/rustc_mir_dataflow/src/value_analysis.rs @@ -622,8 +622,7 @@ impl Map { ty: Ty<'tcx>, filter: &mut impl FnMut(Ty<'tcx>) -> bool, ) { - // Note: The framework supports only scalars for now. - if filter(ty) && ty.is_scalar() { + if filter(ty) { // We know that the projection only contains trackable elements. let place = self.make_place(local, projection).unwrap(); |
