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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user