We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df22658 commit 61e65eaCopy full SHA for 61e65ea
compiler/rustc_query_impl/src/plumbing.rs
@@ -462,18 +462,10 @@ macro_rules! define_queries {
462
use std::marker::PhantomData;
463
464
$(
465
- #[derive(Copy, Clone)]
+ #[derive(Copy, Clone, Default)]
466
pub struct $name<'tcx> {
467
data: PhantomData<&'tcx ()>
468
}
469
-
470
- impl Default for $name<'_> {
471
- fn default() -> Self {
472
- Self {
473
- data: PhantomData,
474
- }
475
476
477
)*
478
479
0 commit comments