From f72c031eb9a15f25834a7980008db764ff2867a0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 10 Jan 2019 13:04:04 +0300 Subject: implement RefUnwindSafe --- crates/ra_hir/src/mock.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/mock.rs b/crates/ra_hir/src/mock.rs index 0fae7de82..7a0301648 100644 --- a/crates/ra_hir/src/mock.rs +++ b/crates/ra_hir/src/mock.rs @@ -1,4 +1,4 @@ -use std::sync::Arc; +use std::{sync::Arc, panic}; use parking_lot::Mutex; use salsa::{self, Database}; @@ -18,6 +18,8 @@ pub(crate) struct MockDatabase { file_counter: u32, } +impl panic::RefUnwindSafe for MockDatabase {} + impl MockDatabase { pub(crate) fn with_files(fixture: &str) -> (MockDatabase, SourceRoot) { let (db, source_root, position) = MockDatabase::from_fixture(fixture); -- cgit v1.2.3