Group logic about the Providers struct.

This commit is contained in:
Camille GILLOT 2020-04-09 09:06:11 +02:00
parent 8599bff5a3
commit 7794fbb478
1 changed files with 5 additions and 5 deletions

View File

@ -529,11 +529,6 @@ macro_rules! define_queries {
tcx: $tcx,
input: ($(([$($modifiers)*] [$name] [$($K)*] [$V]))*)
}
impl Copy for Providers {}
impl Clone for Providers {
fn clone(&self) -> Self { *self }
}
}
}
@ -609,5 +604,10 @@ macro_rules! define_provider_struct {
Providers { $($name),* }
}
}
impl Copy for Providers {}
impl Clone for Providers {
fn clone(&self) -> Self { *self }
}
};
}