From edadeb95be16a69175e94a0e211ae9bb74267abb Mon Sep 17 00:00:00 2001 From: uHOOCCOOHu Date: Fri, 27 Sep 2019 10:55:25 +0800 Subject: Fix --- crates/ra_hir/src/nameres.rs | 2 +- crates/ra_hir/src/nameres/raw.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/ra_hir/src/nameres.rs b/crates/ra_hir/src/nameres.rs index 15b5b4ee6..67adcfa28 100644 --- a/crates/ra_hir/src/nameres.rs +++ b/crates/ra_hir/src/nameres.rs @@ -342,7 +342,7 @@ impl CrateDefMap { tested_by!(macro_dollar_crate_other); PerNs::types(module.into()) } - None => return ResolvePathResult::empty(ReachedFixedPoint::No), + None => return ResolvePathResult::empty(ReachedFixedPoint::Yes), } } } diff --git a/crates/ra_hir/src/nameres/raw.rs b/crates/ra_hir/src/nameres/raw.rs index c607b8a11..c494b95b0 100644 --- a/crates/ra_hir/src/nameres/raw.rs +++ b/crates/ra_hir/src/nameres/raw.rs @@ -202,7 +202,7 @@ struct RawItemsCollector { db: DB, } -impl RawItemsCollector<&'_ DB> { +impl RawItemsCollector<&DB> { fn process_module(&mut self, current_module: Option, body: impl ast::ModuleItemOwner) { for item_or_macro in body.items_with_macros() { match item_or_macro { -- cgit v1.2.3