Skip to content

Commit e3a2352

Browse files
committed
Revert "Update for changes to TraitItem on master."
This reverts commit 1d23be75b95b1dad318020fcf110836a7f17fc80.
1 parent 7815a16 commit e3a2352

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/infer/error_reporting.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
116116

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

0 commit comments

Comments
 (0)