aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_db')
-rw-r--r--crates/ra_db/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs
index d500d5e85..bac24e218 100644
--- a/crates/ra_db/src/lib.rs
+++ b/crates/ra_db/src/lib.rs
@@ -32,6 +32,10 @@ macro_rules! impl_intern_key {
32 }; 32 };
33} 33}
34 34
35pub trait Upcast<T: ?Sized> {
36 fn upcast(&self) -> &T;
37}
38
35pub trait CheckCanceled { 39pub trait CheckCanceled {
36 /// Aborts current query if there are pending changes. 40 /// Aborts current query if there are pending changes.
37 /// 41 ///