mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Remove dbg!
This commit is contained in:
parent
d560219d06
commit
67226ebc82
2 changed files with 0 additions and 5 deletions
|
@ -145,17 +145,13 @@ impl ExpansionInfo {
|
||||||
(arg_file_id, def_file_id): (HirFileId, HirFileId),
|
(arg_file_id, def_file_id): (HirFileId, HirFileId),
|
||||||
) -> Option<(HirFileId, TextRange)> {
|
) -> Option<(HirFileId, TextRange)> {
|
||||||
for (src, dest) in &self.arg_map {
|
for (src, dest) in &self.arg_map {
|
||||||
dbg!((src, *dest, "arg_map"));
|
|
||||||
if src.is_subrange(&from) {
|
if src.is_subrange(&from) {
|
||||||
dbg!((arg_file_id, *dest));
|
|
||||||
return Some((arg_file_id, *dest));
|
return Some((arg_file_id, *dest));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (src, dest) in &self.def_map {
|
for (src, dest) in &self.def_map {
|
||||||
dbg!((src, *dest, "def_map"));
|
|
||||||
if src.is_subrange(&from) {
|
if src.is_subrange(&from) {
|
||||||
dbg!((arg_file_id, *dest));
|
|
||||||
return Some((def_file_id, *dest));
|
return Some((def_file_id, *dest));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,7 +158,6 @@ impl ExpandedRangeMap {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn ranges(&self, to: &TokenMap, start: TextUnit) -> Vec<(TextRange, TextRange)> {
|
pub fn ranges(&self, to: &TokenMap, start: TextUnit) -> Vec<(TextRange, TextRange)> {
|
||||||
dbg!(&self.ranges);
|
|
||||||
self.ranges
|
self.ranges
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|(r, tid)| {
|
.filter_map(|(r, tid)| {
|
||||||
|
|
Loading…
Reference in a new issue