Remove erroneous omit of inherent impls

Should have been included in 34dc94bb2d
This commit is contained in:
Michael Sloan 2024-12-30 13:51:41 -07:00
parent d72aec09d2
commit 37cee9fdaa

View file

@ -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);