remove the need to manually specify the QueryDescriptor

The macro can handle it now.
This commit is contained in:
Niko Matsakis 2018-09-29 05:44:34 -04:00
parent 2e40e9d1e5
commit 5bee46108d
3 changed files with 10 additions and 8 deletions

View file

@ -37,8 +37,6 @@ impl CompilerQueryContext for QueryContextImpl {
// permit behavior refinement.
impl salsa::QueryContext for QueryContextImpl {
type QueryDescriptor = salsa::dyn_descriptor::DynDescriptor;
fn salsa_runtime(&self) -> &salsa::runtime::Runtime<QueryContextImpl> {
&self.runtime
}

View file

@ -26,8 +26,6 @@ impl queries::CounterContext for QueryContextImpl {
}
impl salsa::QueryContext for QueryContextImpl {
type QueryDescriptor = salsa::dyn_descriptor::DynDescriptor;
fn salsa_runtime(&self) -> &salsa::runtime::Runtime<QueryContextImpl> {
&self.runtime
}