From f8d419ee898053777f9b615e122bd7e31142e2fe Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 1 Jan 2019 21:01:05 +0300 Subject: fix tests --- crates/ra_hir/src/db.rs | 2 +- crates/ra_hir/src/mock.rs | 1 + crates/ra_hir/src/module/nameres.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir') diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index 1da3fc1c1..ba0423d64 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs @@ -1,7 +1,7 @@ use std::sync::Arc; use ra_syntax::{SyntaxNode, SourceFileNode}; -use ra_db::{SourceRootId, LocationIntener, SyntaxDatabase, FileId, Cancelable}; +use ra_db::{SourceRootId, LocationIntener, SyntaxDatabase, Cancelable}; use crate::{ DefLoc, DefId, Name, MFileId, diff --git a/crates/ra_hir/src/mock.rs b/crates/ra_hir/src/mock.rs index 78f638ce4..19bc426f6 100644 --- a/crates/ra_hir/src/mock.rs +++ b/crates/ra_hir/src/mock.rs @@ -189,6 +189,7 @@ salsa::database_storage! { fn file_lines() for ra_db::FileLinesQuery; } impl db::HirDatabase { + fn m_source_file() for db::MSourceFileQuery; fn expand_macro_invocation() for db::ExpandMacroCallQuery; fn module_tree() for db::ModuleTreeQuery; fn fn_scopes() for db::FnScopesQuery; diff --git a/crates/ra_hir/src/module/nameres.rs b/crates/ra_hir/src/module/nameres.rs index 94ada73d7..b30dd3491 100644 --- a/crates/ra_hir/src/module/nameres.rs +++ b/crates/ra_hir/src/module/nameres.rs @@ -31,7 +31,7 @@ use crate::{ Path, PathKind, HirDatabase, Crate, Name, AsName, - macros::{MacroCallId, MacroCallLoc}, + macros::MacroCallLoc, module::{Module, ModuleId, ModuleTree}, }; -- cgit v1.2.3