1
Fork 0

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.
This commit is contained in:
Nilstrieb 2022-12-18 21:47:28 +01:00
parent d679764fb6
commit 8bfd6450c7
35 changed files with 68 additions and 115 deletions

View file

@ -358,14 +358,12 @@ impl<'tcx> SccUniverse<'tcx> {
rustc_index::newtype_index! {
#[debug_format = "LeakCheckNode({})"]
struct LeakCheckNode {
}
struct LeakCheckNode {}
}
rustc_index::newtype_index! {
#[debug_format = "LeakCheckScc({})"]
struct LeakCheckScc {
}
struct LeakCheckScc {}
}
/// Represents the graph of constraints. For each `R1: R2` constraint we create