mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Derive Default for query structs
This commit is contained in:
@@ -462,18 +462,10 @@ mod 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,
|
||||
}
|
||||
}
|
||||
}
|
||||
)*
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user