diff options
| author | bors <bors@rust-lang.org> | 2022-02-25 03:16:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-02-25 03:16:22 +0000 |
| commit | f6a79936da30702b1c717769a2d12dffbad6d30a (patch) | |
| tree | 2277126f6649883810888dc0073072ca60491fb2 /compiler/rustc_middle/src | |
| parent | d4de1f230ca30b7ce08fbf453daebf8b2e7ffcc9 (diff) | |
| parent | 7b7b0f148c0e76136beb3c24d392f25bb4044612 (diff) | |
| download | rust-f6a79936da30702b1c717769a2d12dffbad6d30a.tar.gz rust-f6a79936da30702b1c717769a2d12dffbad6d30a.zip | |
Auto merge of #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)
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/mir/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/mir/mod.rs b/compiler/rustc_middle/src/mir/mod.rs index 52e143916ce..9a36230516c 100644 --- a/compiler/rustc_middle/src/mir/mod.rs +++ b/compiler/rustc_middle/src/mir/mod.rs @@ -1847,6 +1847,7 @@ rustc_index::newtype_index! { /// rustc can identify that a field projection refers to either two different regions of memory /// or the same one between the base and the 'projection element'. /// Read more about projections in the [rustc-dev-guide][mir-datatypes] + /// /// [wrapper]: https://rustc-dev-guide.rust-lang.org/appendix/glossary.html#newtype /// [CFG]: https://rustc-dev-guide.rust-lang.org/appendix/background.html#cfg /// [mir-datatypes]: https://rustc-dev-guide.rust-lang.org/mir/index.html#mir-data-types |
