Skip to content

Commit 0cb9ac2

Browse files
committed
Give inline const separate DefKind
1 parent e674d0a commit 0cb9ac2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clippy_lints/src/matches.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,10 @@ fn check_wild_enum_match(cx: &LateContext<'_>, ex: &Expr<'_>, arms: &[Arm<'_>])
10651065
PatKind::Path(path) => {
10661066
#[allow(clippy::match_same_arms)]
10671067
let id = match cx.qpath_res(path, pat.hir_id) {
1068-
Res::Def(DefKind::Const | DefKind::ConstParam | DefKind::AnonConst, _) => return,
1068+
Res::Def(
1069+
DefKind::Const | DefKind::ConstParam | DefKind::AnonConst | DefKind::InlineConst,
1070+
_,
1071+
) => return,
10691072
Res::Def(_, id) => id,
10701073
_ => return,
10711074
};

0 commit comments

Comments
 (0)