diff options
author | Edwin Cheng <[email protected]> | 2019-11-03 17:47:59 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-11-04 17:38:20 +0000 |
commit | 67226ebc8288b9489867ea2454f9d976b65ff15e (patch) | |
tree | f8fec99e50eed3a2649825efc57e4df0d341a86e /crates | |
parent | d560219d06780ea4bd3cca20e1d3883f2d68d59a (diff) |
Remove dbg!
Diffstat (limited to 'crates')
-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)| { |