Make #[custom_encodable]
an attribute for newtype_index
Makes the syntax a little more rusty.
This commit is contained in:
parent
b4d739ef12
commit
88d5f7f4ce
6 changed files with 19 additions and 18 deletions
|
@ -198,8 +198,8 @@ impl<'tcx> InherentOverlapChecker<'tcx> {
|
|||
// entire graph when there are many connected regions.
|
||||
|
||||
rustc_index::newtype_index! {
|
||||
#[custom_encodable]
|
||||
pub struct RegionId {
|
||||
ENCODABLE = custom
|
||||
}
|
||||
}
|
||||
struct ConnectedRegion {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue