diff options
| author | bors <bors@rust-lang.org> | 2023-11-22 09:29:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-22 09:29:49 +0000 |
| commit | 5a9e0e87877857f601480d16739b4edd9cb3a426 (patch) | |
| tree | 46daec33fd8462b1d25b9c4e660e5ef34bc37b50 /compiler/rustc_data_structures/src/graph | |
| parent | 855c6836b7c476385db95a0a95f2e57f5ff32fe1 (diff) | |
| parent | 0991374bd1c99e1e64f47a884b10932b39ad61c2 (diff) | |
| download | rust-5a9e0e87877857f601480d16739b4edd9cb3a426.tar.gz rust-5a9e0e87877857f601480d16739b4edd9cb3a426.zip | |
Auto merge of #118125 - nnethercote:custom_encodable, r=compiler-errors
Make some `newtype_index!` derived impls opt-in instead of opt-out Opt-in is the standard Rust way of doing things, and avoids some unnecessary dependencies on the `rustc_serialize` crate. r? `@lcnr`
Diffstat (limited to 'compiler/rustc_data_structures/src/graph')
| -rw-r--r-- | compiler/rustc_data_structures/src/graph/dominators/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/graph/dominators/mod.rs b/compiler/rustc_data_structures/src/graph/dominators/mod.rs index 5dd414cfd41..4b819e1cbd6 100644 --- a/compiler/rustc_data_structures/src/graph/dominators/mod.rs +++ b/compiler/rustc_data_structures/src/graph/dominators/mod.rs @@ -23,6 +23,7 @@ struct PreOrderFrame<Iter> { } rustc_index::newtype_index! { + #[orderable] struct PreorderIndex {} } |
