Skip to content

Commit 4da5b25

Browse files
committed
Auto merge of #29766 - oli-obk:impl_item, r=nikomatsakis
[breaking change] I'm not sure if those renames are ok. [TokenType::Tt* to TokenType::*](rust-lang/rust#29582) was obvious, but for all those Item-enums it's less obvious to me what the right way forward is due to the underscore.
2 parents 3129a2a + 678ce70 commit 4da5b25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clean/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,16 +1271,16 @@ impl Clean<Item> for hir::TraitItem {
12711271
impl Clean<Item> for hir::ImplItem {
12721272
fn clean(&self, cx: &DocContext) -> Item {
12731273
let inner = match self.node {
1274-
hir::ConstImplItem(ref ty, ref expr) => {
1274+
hir::ImplItemKind::Const(ref ty, ref expr) => {
12751275
ConstantItem(Constant{
12761276
type_: ty.clean(cx),
12771277
expr: expr.span.to_src(cx),
12781278
})
12791279
}
1280-
hir::MethodImplItem(ref sig, _) => {
1280+
hir::ImplItemKind::Method(ref sig, _) => {
12811281
MethodItem(sig.clean(cx))
12821282
}
1283-
hir::TypeImplItem(ref ty) => TypedefItem(Typedef {
1283+
hir::ImplItemKind::Type(ref ty) => TypedefItem(Typedef {
12841284
type_: ty.clean(cx),
12851285
generics: Generics {
12861286
lifetimes: Vec::new(),

0 commit comments

Comments
 (0)