Skip to content

Commit 987f52f

Browse files
committed
Update for changes to TraitItem on master.
1 parent bb04da4 commit 987f52f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/infer/error_reporting.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
115115

116116
fn trait_item_scope_tag(item: &hir::TraitItem) -> &'static str {
117117
match item.node {
118-
hir::MethodTraitItem(..) => "method body",
119-
hir::ConstTraitItem(..) |
120-
hir::TypeTraitItem(..) => "associated item"
118+
hir::TraitItemKind::Method(..) => "method body",
119+
hir::TraitItemKind::Const(..) |
120+
hir::TraitItemKind::Type(..) => "associated item"
121121
}
122122
}
123123

0 commit comments

Comments
 (0)