Skip to content

Commit

Permalink
Fail to reproduce rust-lang#15134 from issue description
Browse files Browse the repository at this point in the history
I might be missing something in the crate/module setup
that isn't being propagated
  • Loading branch information
petr-tik committed Jul 24, 2023
1 parent 789dfd2 commit c9f7a02
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions crates/ide-completion/src/tests/special.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1280,3 +1280,25 @@ fn here_we_go() {
"#]],
);
}

#[test]
fn completes_only_public() {
check(
r#"
//- /main.rs crate:main deps:e
use e::qux;
fn main() {
qux::$0
}
//- /e.rs crate:e
mod qux {
pub(self) fn i_should_be_hidden() {}
pub(in crate::qux) fn i_should_also_be_hidden() {}
pub fn i_am_public () {}
}
"#,
expect!["fn i_am_public fn()"],
);
}

0 comments on commit c9f7a02

Please sign in to comment.