Merge commit '141fc695dc' into sync-from-ra

This commit is contained in:
Laurențiu Nicola 2023-11-16 22:27:35 +02:00
parent d45ff2484f
commit 59f5d51852
131 changed files with 2216 additions and 974 deletions

View file

@ -361,6 +361,15 @@ impl ast::Impl {
}
}
// [#15778](https://github.com/rust-lang/rust-analyzer/issues/15778)
impl ast::PathSegment {
pub fn qualifying_trait(&self) -> Option<ast::PathType> {
let mut path_types = support::children(self.syntax());
let first = path_types.next()?;
path_types.next().or(Some(first))
}
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum StructKind {
Record(ast::RecordFieldList),