feat: allow generate_function to generate in different local crate

This commit is contained in:
Ryo Yoshida 2023-03-02 23:51:12 +09:00
parent 943de55214
commit bda2af71c6
No known key found for this signature in database
GPG key ID: E25698A930586171
4 changed files with 140 additions and 31 deletions

View file

@ -489,7 +489,7 @@ impl Module {
}
/// Finds nearest non-block ancestor `Module` (`self` included).
fn nearest_non_block_module(self, db: &dyn HirDatabase) -> Module {
pub fn nearest_non_block_module(self, db: &dyn HirDatabase) -> Module {
let mut id = self.id;
loop {
let def_map = id.def_map(db.upcast());