Skip to content

Commit

Permalink
Remove erroneous omit of inherent impls
Browse files Browse the repository at this point in the history
Should have been included in 34dc94bb2d05def8b88739a9382b127feb1a35a0
  • Loading branch information
mgsloan committed Dec 30, 2024
1 parent 2d434dd commit 96fc18a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/tools/rust-analyzer/crates/ide/src/moniker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 96fc18a

Please sign in to comment.