Make extern crates in the root module add to the extern prelude
To accomplish this, separate the extern prelude from the per-module item maps.
This commit is contained in:
@@ -134,7 +134,7 @@ impl Module {
|
||||
}
|
||||
|
||||
/// Returns the crate this module is part of.
|
||||
pub fn krate(&self, _db: &impl HirDatabase) -> Option<Crate> {
|
||||
pub fn krate(&self, _db: &impl PersistentHirDatabase) -> Option<Crate> {
|
||||
Some(self.krate)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user