aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2021-03-22 13:15:53 +0000
committerKirill Bulatov <[email protected]>2021-03-22 13:15:53 +0000
commit129353255cf7cf103dc593407f3aac1f606827b0 (patch)
treef0c616a6e7f24b27f7bfa4dc6a73c9a31661a930 /crates/hir_def
parent3a4e99115d1f64243eb12b5c937b4ad90b4ad014 (diff)
Code review fixes
Diffstat (limited to 'crates/hir_def')
-rw-r--r--crates/hir_def/src/find_path.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_def/src/find_path.rs b/crates/hir_def/src/find_path.rs
index b4362a5c4..109d3552f 100644
--- a/crates/hir_def/src/find_path.rs
+++ b/crates/hir_def/src/find_path.rs
@@ -181,6 +181,7 @@ fn find_path_inner(
181 // dependency in this case. 181 // dependency in this case.
182 for (module_id, name) in find_local_import_locations(db, item, from) { 182 for (module_id, name) in find_local_import_locations(db, item, from) {
183 if !visited_modules.insert(module_id) { 183 if !visited_modules.insert(module_id) {
184 cov_mark::hit!(recursive_imports);
184 continue; 185 continue;
185 } 186 }
186 if let Some(mut path) = find_path_inner( 187 if let Some(mut path) = find_path_inner(
@@ -894,6 +895,7 @@ mod tests {
894 895
895 #[test] 896 #[test]
896 fn recursive_pub_mod_reexport() { 897 fn recursive_pub_mod_reexport() {
898 cov_mark::check!(recursive_imports);
897 check_found_path( 899 check_found_path(
898 r#" 900 r#"
899fn main() { 901fn main() {