mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 19:17:12 +00:00
Merge pull request #18757 from roife/fix-17812
feat: support updating snapshot tests with codelens/hovering/runnables
This commit is contained in:
commit
a612fc9a16
13 changed files with 540 additions and 97 deletions
|
|
@ -5933,6 +5933,12 @@ impl HasCrate for Adt {
|
|||
}
|
||||
}
|
||||
|
||||
impl HasCrate for Impl {
|
||||
fn krate(&self, db: &dyn HirDatabase) -> Crate {
|
||||
self.module(db).krate()
|
||||
}
|
||||
}
|
||||
|
||||
impl HasCrate for Module {
|
||||
fn krate(&self, _: &dyn HirDatabase) -> Crate {
|
||||
Module::krate(*self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue