diff options
Diffstat (limited to 'crates/ra_db/src/lib.rs')
-rw-r--r-- | crates/ra_db/src/lib.rs | 4 |
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 | ||
35 | pub trait Upcast<T: ?Sized> { | ||
36 | fn upcast(&self) -> &T; | ||
37 | } | ||
38 | |||
35 | pub trait CheckCanceled { | 39 | pub trait CheckCanceled { |
36 | /// Aborts current query if there are pending changes. | 40 | /// Aborts current query if there are pending changes. |
37 | /// | 41 | /// |