aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/hygiene.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-10-30 15:56:20 +0000
committerAleksey Kladov <[email protected]>2019-10-30 15:56:20 +0000
commit872ac566bfc6cf43ac55354cf5223b962dbc1d92 (patch)
tree187da15a51e06cd3936d3f8c8e823f70c363a555 /crates/ra_hir_def/src/hygiene.rs
parentb05d6e53fb0e9a008dc2e1220b1201818e63ed2d (diff)
push name down to hir_expand
Diffstat (limited to 'crates/ra_hir_def/src/hygiene.rs')
-rw-r--r--crates/ra_hir_def/src/hygiene.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/ra_hir_def/src/hygiene.rs b/crates/ra_hir_def/src/hygiene.rs
index f51c46fcb..94de2c57c 100644
--- a/crates/ra_hir_def/src/hygiene.rs
+++ b/crates/ra_hir_def/src/hygiene.rs
@@ -4,13 +4,15 @@
4//! this moment, this is horribly incomplete and handles only `$crate`. 4//! this moment, this is horribly incomplete and handles only `$crate`.
5// Should this be moved to `hir_expand`? Seems like it. 5// Should this be moved to `hir_expand`? Seems like it.
6 6
7use hir_expand::either::Either; 7use hir_expand::{
8use hir_expand::{db::AstDatabase, HirFileId}; 8 db::AstDatabase,
9 either::Either,
10 name::{AsName, Name},
11 HirFileId,
12};
9use ra_db::CrateId; 13use ra_db::CrateId;
10use ra_syntax::ast; 14use ra_syntax::ast;
11 15
12use crate::name::{AsName, Name};
13
14#[derive(Debug)] 16#[derive(Debug)]
15pub struct Hygiene { 17pub struct Hygiene {
16 // This is what `$crate` expands to 18 // This is what `$crate` expands to