diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-03 16:13:42 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-03 16:13:42 +0000 |
commit | 96b9d5b44ed50160c7a4eb07a31bee5f05b1ecf3 (patch) | |
tree | 74a889d70e201d6997c6baf179261ab3ed8bf23c /crates/ra_hir_def/src/nameres | |
parent | 15f143f0c33cbd382a2ad7a407d9601cb843d164 (diff) | |
parent | 009437f5d9949d2276aa26040e03af0ab328acf3 (diff) |
Merge #2469
2469: Replace `ra_hir_expand::either` with crate r=matklad a=ice1000
As title.
Co-authored-by: ice1000 <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/nameres')
-rw-r--r-- | crates/ra_hir_def/src/nameres/raw.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/nameres/raw.rs b/crates/ra_hir_def/src/nameres/raw.rs index 5196b67ca..de4e706c2 100644 --- a/crates/ra_hir_def/src/nameres/raw.rs +++ b/crates/ra_hir_def/src/nameres/raw.rs | |||
@@ -7,10 +7,10 @@ | |||
7 | 7 | ||
8 | use std::{ops::Index, sync::Arc}; | 8 | use std::{ops::Index, sync::Arc}; |
9 | 9 | ||
10 | use either::Either; | ||
10 | use hir_expand::{ | 11 | use hir_expand::{ |
11 | ast_id_map::AstIdMap, | 12 | ast_id_map::AstIdMap, |
12 | db::AstDatabase, | 13 | db::AstDatabase, |
13 | either::Either, | ||
14 | hygiene::Hygiene, | 14 | hygiene::Hygiene, |
15 | name::{AsName, Name}, | 15 | name::{AsName, Name}, |
16 | }; | 16 | }; |
@@ -324,7 +324,7 @@ impl RawItemsCollector { | |||
324 | is_extern_crate: false, | 324 | is_extern_crate: false, |
325 | is_macro_use: false, | 325 | is_macro_use: false, |
326 | }; | 326 | }; |
327 | buf.push((import_data, Either::A(AstPtr::new(use_tree)))); | 327 | buf.push((import_data, Either::Left(AstPtr::new(use_tree)))); |
328 | }, | 328 | }, |
329 | ); | 329 | ); |
330 | for (import_data, ptr) in buf { | 330 | for (import_data, ptr) in buf { |
@@ -355,7 +355,7 @@ impl RawItemsCollector { | |||
355 | current_module, | 355 | current_module, |
356 | attrs, | 356 | attrs, |
357 | import_data, | 357 | import_data, |
358 | Either::B(AstPtr::new(&extern_crate)), | 358 | Either::Right(AstPtr::new(&extern_crate)), |
359 | ); | 359 | ); |
360 | } | 360 | } |
361 | } | 361 | } |