diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-02-03 17:25:06 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-03 17:25:06 +0000 |
commit | 3ff2aa6d09bfcc2ab97f0ee8d76e40680440b178 (patch) | |
tree | b8573f3b33e7b17464561a22ab3583ead67921bf /crates/hir_def/src/nameres.rs | |
parent | a6ccd50ece3858f8efa0689064c1896774594006 (diff) | |
parent | 6458f9107ccda72e68acd80487dd44012edbdc39 (diff) |
Merge #7546
7546: Add newline between block and crate maps r=jonas-schievink a=jonas-schievink
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_def/src/nameres.rs')
-rw-r--r-- | crates/hir_def/src/nameres.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/hir_def/src/nameres.rs b/crates/hir_def/src/nameres.rs index ef54f7d08..c858ea0c4 100644 --- a/crates/hir_def/src/nameres.rs +++ b/crates/hir_def/src/nameres.rs | |||
@@ -324,6 +324,7 @@ impl DefMap { | |||
324 | let mut current_map = self; | 324 | let mut current_map = self; |
325 | while let Some(block) = ¤t_map.block { | 325 | while let Some(block) = ¤t_map.block { |
326 | go(&mut buf, current_map, "block scope", current_map.root); | 326 | go(&mut buf, current_map, "block scope", current_map.root); |
327 | buf.push('\n'); | ||
327 | current_map = &*block.parent; | 328 | current_map = &*block.parent; |
328 | } | 329 | } |
329 | go(&mut buf, current_map, "crate", current_map.root); | 330 | go(&mut buf, current_map, "crate", current_map.root); |