mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Rename Dyn*
nodes to Any*
nodes
This commit is contained in:
parent
009e6ceb1d
commit
a28c5d7311
5 changed files with 80 additions and 80 deletions
|
@ -682,7 +682,7 @@ impl<'db> SemanticsImpl<'db> {
|
|||
fn resolve_lifetime_param(&self, lifetime: &ast::Lifetime) -> Option<LifetimeParam> {
|
||||
let text = lifetime.text();
|
||||
let lifetime_param = lifetime.syntax().ancestors().find_map(|syn| {
|
||||
let gpl = ast::DynGenericParamsOwner::cast(syn)?.generic_param_list()?;
|
||||
let gpl = ast::AnyGenericParamsOwner::cast(syn)?.generic_param_list()?;
|
||||
gpl.lifetime_params()
|
||||
.find(|tp| tp.lifetime().as_ref().map(|lt| lt.text()).as_ref() == Some(&text))
|
||||
})?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue