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, - } - } - } )* }