diff options
-rw-r--r-- | crates/ra_hir_expand/src/lib.rs | 4 | ||||
-rw-r--r-- | crates/ra_mbe/src/syntax_bridge.rs | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/crates/ra_hir_expand/src/lib.rs b/crates/ra_hir_expand/src/lib.rs index 180cd1f57..b6e55aa6a 100644 --- a/crates/ra_hir_expand/src/lib.rs +++ b/crates/ra_hir_expand/src/lib.rs | |||
@@ -145,17 +145,13 @@ impl ExpansionInfo { | |||
145 | (arg_file_id, def_file_id): (HirFileId, HirFileId), | 145 | (arg_file_id, def_file_id): (HirFileId, HirFileId), |
146 | ) -> Option<(HirFileId, TextRange)> { | 146 | ) -> Option<(HirFileId, TextRange)> { |
147 | for (src, dest) in &self.arg_map { | 147 | for (src, dest) in &self.arg_map { |
148 | dbg!((src, *dest, "arg_map")); | ||
149 | if src.is_subrange(&from) { | 148 | if src.is_subrange(&from) { |
150 | dbg!((arg_file_id, *dest)); | ||
151 | return Some((arg_file_id, *dest)); | 149 | return Some((arg_file_id, *dest)); |
152 | } | 150 | } |
153 | } | 151 | } |
154 | 152 | ||
155 | for (src, dest) in &self.def_map { | 153 | for (src, dest) in &self.def_map { |
156 | dbg!((src, *dest, "def_map")); | ||
157 | if src.is_subrange(&from) { | 154 | if src.is_subrange(&from) { |
158 | dbg!((arg_file_id, *dest)); | ||
159 | return Some((def_file_id, *dest)); | 155 | return Some((def_file_id, *dest)); |
160 | } | 156 | } |
161 | } | 157 | } |
diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs index 4965f9c33..8e86742d0 100644 --- a/crates/ra_mbe/src/syntax_bridge.rs +++ b/crates/ra_mbe/src/syntax_bridge.rs | |||
@@ -158,7 +158,6 @@ impl ExpandedRangeMap { | |||
158 | } | 158 | } |
159 | 159 | ||
160 | pub fn ranges(&self, to: &TokenMap, start: TextUnit) -> Vec<(TextRange, TextRange)> { | 160 | pub fn ranges(&self, to: &TokenMap, start: TextUnit) -> Vec<(TextRange, TextRange)> { |
161 | dbg!(&self.ranges); | ||
162 | self.ranges | 161 | self.ranges |
163 | .iter() | 162 | .iter() |
164 | .filter_map(|(r, tid)| { | 163 | .filter_map(|(r, tid)| { |