Skip to content

Commit f2a404d

Browse files
committed
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)
1 parent b17226f commit f2a404d

File tree

4 files changed

+349
-455
lines changed

4 files changed

+349
-455
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)