mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-04 11:00:05 +00:00
checkpoint: weird rustc bug permitting extra members
This commit is contained in:
parent
d7b1d194de
commit
36e2b9cdcc
5 changed files with 18 additions and 9 deletions
|
@ -4,7 +4,6 @@ use std::cell::Cell;
|
|||
#[derive(Default)]
|
||||
pub struct QueryContextImpl {
|
||||
runtime: salsa::runtime::Runtime<QueryContextImpl>,
|
||||
storage: QueryContextImplStorage,
|
||||
counter: Cell<usize>,
|
||||
}
|
||||
|
||||
|
@ -26,8 +25,8 @@ impl queries::CounterContext for QueryContextImpl {
|
|||
}
|
||||
|
||||
impl salsa::QueryContext for QueryContextImpl {
|
||||
fn salsa_storage(&self) -> &QueryContextImplStorage {
|
||||
&self.storage
|
||||
fn extra(&self) -> u32 {
|
||||
0
|
||||
}
|
||||
|
||||
fn salsa_runtime(&self) -> &salsa::runtime::Runtime<QueryContextImpl> {
|
||||
|
|
|
@ -3,3 +3,5 @@
|
|||
mod implementation;
|
||||
mod queries;
|
||||
mod tests;
|
||||
|
||||
fn main() {}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![cfg(test)]
|
||||
|
||||
use crate::implementation::QueryContextImpl;
|
||||
use crate::queries::QueryContext;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue