Skip to content

Commit

Permalink
Update for changes to TraitItem on master.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Jan 4, 2017
1 parent bb04da4 commit 987f52f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc/infer/error_reporting.rs
Expand Up @@ -115,9 +115,9 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {

fn trait_item_scope_tag(item: &hir::TraitItem) -> &'static str {
match item.node {
hir::MethodTraitItem(..) => "method body",
hir::ConstTraitItem(..) |
hir::TypeTraitItem(..) => "associated item"
hir::TraitItemKind::Method(..) => "method body",
hir::TraitItemKind::Const(..) |
hir::TraitItemKind::Type(..) => "associated item"
}
}

Expand Down

0 comments on commit 987f52f

Please sign in to comment.