mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Merge commit '141fc695dc
' into sync-from-ra
This commit is contained in:
parent
d45ff2484f
commit
59f5d51852
131 changed files with 2216 additions and 974 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue