about summary refs log tree commit diff
path: root/compiler/rustc_mir_dataflow/src/move_paths
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-18 21:47:28 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-18 21:47:28 +0100
commit8bfd6450c7b61ffee0fd7e21b538d00018a0e47e (patch)
tree5cfb2d138d7b9dbc83959890e2a3a56d725a1b2f /compiler/rustc_mir_dataflow/src/move_paths
parentd679764fb6b84a5cb72f6a9c9fefce4c6b41f16c (diff)
downloadrust-8bfd6450c7b61ffee0fd7e21b538d00018a0e47e.tar.gz
rust-8bfd6450c7b61ffee0fd7e21b538d00018a0e47e.zip
A few small cleanups for `newtype_index`
Remove the `..` from the body, only a few invocations used it and it's
inconsistent with rust syntax.

Use `;` instead of `,` between consts. As the Rust syntax gods inteded.
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/move_paths')
-rw-r--r--compiler/rustc_mir_dataflow/src/move_paths/mod.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/compiler/rustc_mir_dataflow/src/move_paths/mod.rs b/compiler/rustc_mir_dataflow/src/move_paths/mod.rs
index f286aff8420..9b053985bed 100644
--- a/compiler/rustc_mir_dataflow/src/move_paths/mod.rs
+++ b/compiler/rustc_mir_dataflow/src/move_paths/mod.rs
@@ -15,8 +15,7 @@ mod abs_domain;
 
 rustc_index::newtype_index! {
     #[debug_format = "mp{}"]
-    pub struct MovePathIndex {
-    }
+    pub struct MovePathIndex {}
 }
 
 impl polonius_engine::Atom for MovePathIndex {
@@ -27,14 +26,12 @@ impl polonius_engine::Atom for MovePathIndex {
 
 rustc_index::newtype_index! {
     #[debug_format = "mo{}"]
-    pub struct MoveOutIndex {
-    }
+    pub struct MoveOutIndex {}
 }
 
 rustc_index::newtype_index! {
     #[debug_format = "in{}"]
-    pub struct InitIndex {
-    }
+    pub struct InitIndex {}
 }
 
 impl MoveOutIndex {