1
Fork 0

Make #[debug_format] an attribute in newtype_index

This removes the `custom` format functionality as its only user was
trivially migrated to using a normal format.

If a new use case for a custom formatting impl pops up, you can add it
back.
This commit is contained in:
Nilstrieb 2022-12-18 21:37:38 +01:00
parent 91c3c2040c
commit d679764fb6
24 changed files with 64 additions and 92 deletions

View file

@ -357,14 +357,14 @@ impl<'tcx> SccUniverse<'tcx> {
}
rustc_index::newtype_index! {
#[debug_format = "LeakCheckNode({})"]
struct LeakCheckNode {
DEBUG_FORMAT = "LeakCheckNode({})"
}
}
rustc_index::newtype_index! {
#[debug_format = "LeakCheckScc({})"]
struct LeakCheckScc {
DEBUG_FORMAT = "LeakCheckScc({})"
}
}