aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/nameres/tests.rs
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-07-22 13:01:50 +0100
committerJonas Schievink <[email protected]>2020-07-22 13:01:50 +0100
commitdce99874368e3e42402b4443c5eb39495c8c162a (patch)
tree0863642bd1e419ea14b7caf2eb7b500a5d8236cb /crates/ra_hir_def/src/nameres/tests.rs
parentc07eaf868dab86d061ae80c098798a767b910e91 (diff)
Check that visibility upgrade path is hit
Diffstat (limited to 'crates/ra_hir_def/src/nameres/tests.rs')
-rw-r--r--crates/ra_hir_def/src/nameres/tests.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/nameres/tests.rs b/crates/ra_hir_def/src/nameres/tests.rs
index 502b1fb69..839b1de57 100644
--- a/crates/ra_hir_def/src/nameres/tests.rs
+++ b/crates/ra_hir_def/src/nameres/tests.rs
@@ -619,6 +619,7 @@ use crate::reex::*;
619 619
620#[test] 620#[test]
621fn underscore_pub_crate_reexport() { 621fn underscore_pub_crate_reexport() {
622 mark::check!(upgrade_underscore_visibility);
622 check( 623 check(
623 r#" 624 r#"
624//- /main.rs crate:main deps:lib 625//- /main.rs crate:main deps:lib
@@ -629,9 +630,7 @@ use tr::Tr as _;
629pub use tr::Tr as _; 630pub use tr::Tr as _;
630 631
631mod tr { 632mod tr {
632 pub trait Tr { 633 pub trait Tr {}
633 fn method(&self) {}
634 }
635} 634}
636 "#, 635 "#,
637 expect![[r#" 636 expect![[r#"