Unnamed repository; edit this file 'description' to name the repository.
Remove erroneous omit of inherent impls
Should have been included in 34dc94bb2d05def8b88739a9382b127feb1a35a0
Michael Sloan 2024-12-31
parent d72aec0 · commit 37cee9f
-rw-r--r--crates/ide/src/moniker.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/crates/ide/src/moniker.rs b/crates/ide/src/moniker.rs
index e29e05d3d5..052466725f 100644
--- a/crates/ide/src/moniker.rs
+++ b/crates/ide/src/moniker.rs
@@ -289,15 +289,6 @@ fn def_to_non_local_moniker(
definition: Definition,
from_crate: Crate,
) -> Option<Moniker> {
- match definition {
- // Not possible to give sensible unique symbols for inherent impls, as multiple can be
- // defined for the same type.
- Definition::SelfType(impl_) if impl_.trait_(db).is_none() => {
- return None;
- }
- _ => {}
- }
-
let module = definition.module(db)?;
let krate = module.krate();
let edition = krate.edition(db);