]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/transform/remove_noop_landing_pads.rs
Various minor/cosmetic improvements to code
[rust.git] / src / librustc_mir / transform / remove_noop_landing_pads.rs
index 445ffbbcf3407b0d56ee25e5842412c343e9c3ec..81b010e7dcec9ba8f7bad43a4bd95ad102cf351d 100644 (file)
@@ -52,16 +52,13 @@ fn is_nop_landing_pad(
                 StatementKind::FakeRead(..) |
                 StatementKind::StorageLive(_) |
                 StatementKind::StorageDead(_) |
-                StatementKind::EndRegion(_) |
                 StatementKind::AscribeUserType(..) |
                 StatementKind::Nop => {
-                    // These are all nops in a landing pad (there's some
-                    // borrowck interaction between EndRegion and storage
-                    // instructions, but this should all run after borrowck).
+                    // These are all nops in a landing pad
                 }
 
                 StatementKind::Assign(Place::Local(_), box Rvalue::Use(_)) => {
-                    // Writing to a local (e.g. a drop flag) does not
+                    // Writing to a local (e.g., a drop flag) does not
                     // turn a landing pad to a non-nop
                 }