aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/expand.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/expand.rs')
-rw-r--r--crates/ra_ide/src/expand.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/expand.rs b/crates/ra_ide/src/expand.rs
index 327393dbb..258478bc1 100644
--- a/crates/ra_ide/src/expand.rs
+++ b/crates/ra_ide/src/expand.rs
@@ -1,7 +1,7 @@
1//! Utilities to work with files, produced by macros. 1//! Utilities to work with files, produced by macros.
2use std::iter::successors; 2use std::iter::successors;
3 3
4use hir::{ExpansionOrigin, InFile}; 4use hir::{InFile, Origin};
5use ra_db::FileId; 5use ra_db::FileId;
6use ra_syntax::{ast, AstNode, SyntaxNode, SyntaxToken, TextRange}; 6use ra_syntax::{ast, AstNode, SyntaxNode, SyntaxToken, TextRange};
7 7
@@ -45,7 +45,7 @@ pub(crate) fn original_range_by_kind(
45 45
46 if first.file_id != last.file_id 46 if first.file_id != last.file_id
47 || first_origin != last_origin 47 || first_origin != last_origin
48 || (kind == OriginalRangeKind::CallToken && first_origin != ExpansionOrigin::Call) 48 || (kind == OriginalRangeKind::CallToken && first_origin != Origin::Call)
49 { 49 {
50 return None; 50 return None;
51 } 51 }