diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-12-18 21:47:28 +0100 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-12-18 21:47:28 +0100 |
| commit | 8bfd6450c7b61ffee0fd7e21b538d00018a0e47e (patch) | |
| tree | 5cfb2d138d7b9dbc83959890e2a3a56d725a1b2f /compiler/rustc_data_structures/src | |
| parent | d679764fb6b84a5cb72f6a9c9fefce4c6b41f16c (diff) | |
| download | rust-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_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/dominators/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/graph/dominators/mod.rs b/compiler/rustc_data_structures/src/graph/dominators/mod.rs index 00913a483db..94a8c1fc051 100644 --- a/compiler/rustc_data_structures/src/graph/dominators/mod.rs +++ b/compiler/rustc_data_structures/src/graph/dominators/mod.rs @@ -22,7 +22,7 @@ struct PreOrderFrame<Iter> { } rustc_index::newtype_index! { - struct PreorderIndex { .. } + struct PreorderIndex {} } pub fn dominators<G: ControlFlowGraph>(graph: G) -> Dominators<G::Node> { |
