]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_transform/src/normalize_array_len.rs
Rollup merge of #99291 - est31:let_else_tests, r=joshtriplett
[rust.git] / compiler / rustc_mir_transform / src / normalize_array_len.rs
index c0217a105414b65ff9fb20292f3d54aa3a1234d1..a159e61717823e5847d01641fc9f9762bae81139 100644 (file)
@@ -21,10 +21,10 @@ fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
 
     fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
         // early returns for edge cases of highly unrolled functions
-        if body.basic_blocks().len() > MAX_NUM_BLOCKS {
+        if body.basic_blocks.len() > MAX_NUM_BLOCKS {
             return;
         }
-        if body.local_decls().len() > MAX_NUM_LOCALS {
+        if body.local_decls.len() > MAX_NUM_LOCALS {
             return;
         }
         normalize_array_len_calls(tcx, body)