about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2020-06-16 19:29:53 +0100
committerMatthew Jasper <mjjasper1@gmail.com>2020-06-16 19:29:53 +0100
commit1b92d592b5c7f8a3d399e5b9005f4b316b316ef1 (patch)
treee94407a66031698bdbdab8917efea1b26924224a
parent2ea386424f1a9065947a5ac246043a6945e90def (diff)
downloadrust-1b92d592b5c7f8a3d399e5b9005f4b316b316ef1.tar.gz
rust-1b92d592b5c7f8a3d399e5b9005f4b316b316ef1.zip
Explain unused macro param
-rw-r--r--src/librustc_arena/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc_arena/lib.rs b/src/librustc_arena/lib.rs
index 7f154052538..a21d30bf817 100644
--- a/src/librustc_arena/lib.rs
+++ b/src/librustc_arena/lib.rs
@@ -602,6 +602,10 @@ macro_rules! which_arena_for_type {
 
 #[macro_export]
 macro_rules! declare_arena {
+    // This macro has to take the same input as
+    // `impl_arena_allocatable_decoders` which requires a second version of
+    // each type. We ignore that type until we can fix
+    // `impl_arena_allocatable_decoders`.
     ([], [$($a:tt $name:ident: $ty:ty, $_gen_ty:ty;)*], $tcx:lifetime) => {
         #[derive(Default)]
         pub struct Arena<$tcx> {