mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Parse associated return type bounds
This commit is contained in:
parent
d7d8971203
commit
fa2340a4df
12 changed files with 361 additions and 5 deletions
|
@ -189,6 +189,10 @@ pub(super) fn lower_generic_args(
|
|||
args.push(GenericArg::Type(type_ref));
|
||||
}
|
||||
ast::GenericArg::AssocTypeArg(assoc_type_arg) => {
|
||||
if assoc_type_arg.param_list().is_some() {
|
||||
// We currently ignore associated return type bounds.
|
||||
continue;
|
||||
}
|
||||
if let Some(name_ref) = assoc_type_arg.name_ref() {
|
||||
let name = name_ref.as_name();
|
||||
let args = assoc_type_arg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue