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

@ -37,7 +37,7 @@ pub struct DepGraph<K: DepKind> {
}
rustc_index::newtype_index! {
pub struct DepNodeIndex { .. }
pub struct DepNodeIndex {}
}
impl DepNodeIndex {
@ -974,7 +974,7 @@ pub struct WorkProduct {
// Index type for `DepNodeData`'s edges.
rustc_index::newtype_index! {
struct EdgeIndex { .. }
struct EdgeIndex {}
}
/// `CurrentDepGraph` stores the dependency graph for the current session. It

View file

@ -28,8 +28,7 @@ use smallvec::SmallVec;
// and use those bits to encode which index type it contains.
rustc_index::newtype_index! {
#[max = 0x7FFF_FFFF]
pub struct SerializedDepNodeIndex {
}
pub struct SerializedDepNodeIndex {}
}
/// Data for use when recompiling the **current crate**.