mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 09:48:10 +00:00
Code review fixes
This commit is contained in:
parent
3a4e99115d
commit
129353255c
1 changed files with 2 additions and 0 deletions
|
@ -181,6 +181,7 @@ fn find_path_inner(
|
|||
// dependency in this case.
|
||||
for (module_id, name) in find_local_import_locations(db, item, from) {
|
||||
if !visited_modules.insert(module_id) {
|
||||
cov_mark::hit!(recursive_imports);
|
||||
continue;
|
||||
}
|
||||
if let Some(mut path) = find_path_inner(
|
||||
|
@ -894,6 +895,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn recursive_pub_mod_reexport() {
|
||||
cov_mark::check!(recursive_imports);
|
||||
check_found_path(
|
||||
r#"
|
||||
fn main() {
|
||||
|
|
Loading…
Reference in a new issue