mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Rename ImplItem to ImplBlock
rustc uses the name ImplItem for items in impls, not the impl {} block itself, which could lead to confusion.
This commit is contained in:
parent
a0d483011d
commit
fe6c4115f6
24 changed files with 51 additions and 52 deletions
|
@ -279,7 +279,7 @@ impl<'a> NameRef<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> ImplItem<'a> {
|
||||
impl<'a> ImplBlock<'a> {
|
||||
pub fn target_type(self) -> Option<TypeRef<'a>> {
|
||||
match self.target() {
|
||||
(Some(t), None) | (_, Some(t)) => Some(t),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue