diff options
author | Jonas Schievink <[email protected]> | 2020-07-22 13:01:50 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-07-22 13:01:50 +0100 |
commit | dce99874368e3e42402b4443c5eb39495c8c162a (patch) | |
tree | 0863642bd1e419ea14b7caf2eb7b500a5d8236cb /crates/ra_hir_def/src/nameres/collector.rs | |
parent | c07eaf868dab86d061ae80c098798a767b910e91 (diff) |
Check that visibility upgrade path is hit
Diffstat (limited to 'crates/ra_hir_def/src/nameres/collector.rs')
-rw-r--r-- | crates/ra_hir_def/src/nameres/collector.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index 8913111f1..a030cab47 100644 --- a/crates/ra_hir_def/src/nameres/collector.rs +++ b/crates/ra_hir_def/src/nameres/collector.rs | |||
@@ -625,7 +625,12 @@ impl DefCollector<'_> { | |||
625 | panic!("`Tr as _` imports with unrelated visibilities {:?} and {:?} (trait {:?})", old_vis, vis, tr); | 625 | panic!("`Tr as _` imports with unrelated visibilities {:?} and {:?} (trait {:?})", old_vis, vis, tr); |
626 | }); | 626 | }); |
627 | 627 | ||
628 | max_vis != old_vis | 628 | if max_vis == old_vis { |
629 | false | ||
630 | } else { | ||
631 | mark::hit!(upgrade_underscore_visibility); | ||
632 | true | ||
633 | } | ||
629 | } | 634 | } |
630 | }; | 635 | }; |
631 | 636 | ||