Skip to content

Commit 44911bd

Browse files
authored
Rollup merge of rust-lang#93878 - Aaron1011:newtype-macro, r=cjgillot
Convert `newtype_index` to a proc macro The `macro_rules!` implementation was becomng excessively complicated, and difficult to modify. The new proc macro implementation should make it much easier to add new features (e.g. skipping certain `#[derive]`s)
2 parents cd373e0 + cb2e4ee commit 44911bd

File tree

5 files changed

+340
-456
lines changed

5 files changed

+340
-456
lines changed

compiler/rustc_index/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
pub mod bit_set;
1010
pub mod interval;
1111
pub mod vec;
12+
13+
pub use rustc_macros::newtype_index;

0 commit comments

Comments
 (0)