Derive Default for query structs

This commit is contained in:
John Kåre Alsaker 2023-02-26 23:45:29 +01:00
parent 3b26d71e04
commit d1c8430a34

View File

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