From dbf9820e35cf2d96bd3295e6890e8ef1cb0a060a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 3 Feb 2019 22:15:31 +0300 Subject: make HirDatabase object-safe --- crates/ra_ide_api/src/db.rs | 2 -- crates/ra_ide_api/src/lib.rs | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide_api') diff --git a/crates/ra_ide_api/src/db.rs b/crates/ra_ide_api/src/db.rs index 3a9089c22..00f4bdfd2 100644 --- a/crates/ra_ide_api/src/db.rs +++ b/crates/ra_ide_api/src/db.rs @@ -60,8 +60,6 @@ impl salsa::ParallelDatabase for RootDatabase { } } -impl CheckCanceled for RootDatabase {} - impl AsRef for RootDatabase { fn as_ref(&self) -> &hir::HirInterner { &self.interner diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index a087a2fff..65941a5ca 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs @@ -9,6 +9,10 @@ //! //! The sibling `ra_ide_api_light` handles thouse bits of IDE functionality //! which are restricted to a single file and need only syntax. + +// For proving that RootDatabase is RefUnwindSafe. +#![recursion_limit = "128"] + mod db; mod imp; pub mod mock_analysis; -- cgit v1.2.3