Derive Default for query structs
This commit is contained in:
parent
3b26d71e04
commit
d1c8430a34
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
)*
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user