about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_query_impl/src')
-rw-r--r--compiler/rustc_query_impl/src/plumbing.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs
index dfe172fc3ff..005ce16dbb9 100644
--- a/compiler/rustc_query_impl/src/plumbing.rs
+++ b/compiler/rustc_query_impl/src/plumbing.rs
@@ -462,18 +462,10 @@ macro_rules! define_queries {
             use std::marker::PhantomData;
 
             $(
-                #[derive(Copy, Clone)]
+                #[derive(Copy, Clone, Default)]
                 pub struct $name<'tcx> {
                     data: PhantomData<&'tcx ()>
                 }
-
-                impl Default for $name<'_> {
-                    fn default() -> Self {
-                        Self {
-                            data: PhantomData,
-                        }
-                    }
-                }
             )*
         }