mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Returns the old value for la_arena::ArenaMap::insert
This commit is contained in:
parent
1a94193602
commit
326ffee5b7
4 changed files with 8 additions and 5 deletions
|
@ -451,7 +451,7 @@ impl HasChildSource<LocalTypeOrConstParamId> for GenericDefId {
|
|||
if let GenericDefId::TraitId(id) = *self {
|
||||
let trait_ref = id.lookup(db).source(db).value;
|
||||
let idx = idx_iter.next().unwrap();
|
||||
params.insert(idx, Either::Right(trait_ref))
|
||||
params.insert(idx, Either::Right(trait_ref));
|
||||
}
|
||||
|
||||
if let Some(generic_params_list) = generic_params_list {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue