aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/nameres.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-02-03 17:25:06 +0000
committerGitHub <[email protected]>2021-02-03 17:25:06 +0000
commit3ff2aa6d09bfcc2ab97f0ee8d76e40680440b178 (patch)
treeb8573f3b33e7b17464561a22ab3583ead67921bf /crates/hir_def/src/nameres.rs
parenta6ccd50ece3858f8efa0689064c1896774594006 (diff)
parent6458f9107ccda72e68acd80487dd44012edbdc39 (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.rs1
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) = &current_map.block { 325 while let Some(block) = &current_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);