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:
Florian Diebold 2018-12-26 21:24:49 +01:00
parent a0d483011d
commit fe6c4115f6
24 changed files with 51 additions and 52 deletions

View file

@ -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),