Rename "Associated*" to "Assoc*"

This is to fix the breakage introduced by rust-lang/rust#60163.
This commit is contained in:
Andrew Xu
2019-05-25 20:31:34 +08:00
parent a8eeb7cdb1
commit dcf064a4f9
6 changed files with 11 additions and 11 deletions

View File

@@ -195,7 +195,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NonCopyConst {
// Make sure it is a const item.
match cx.tables.qpath_res(qpath, expr.hir_id) {
Res::Def(DefKind::Const, _) | Res::Def(DefKind::AssociatedConst, _) => {},
Res::Def(DefKind::Const, _) | Res::Def(DefKind::AssocConst, _) => {},
_ => return,
};