We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 058b74f commit 90ece56Copy full SHA for 90ece56
clippy_lints/src/assertions_on_constants.rs
@@ -48,7 +48,7 @@ impl<'tcx> LateLintPass<'tcx> for AssertionsOnConstants {
48
if let ConstantSource::Constant = source
49
&& let Some(node) = cx.tcx.hir().find_parent(e.hir_id)
50
&& let Node::Item(Item {
51
- kind: ItemKind::Const(.., _body_id),
+ kind: ItemKind::Const(..),
52
..
53
}) = node
54
{
0 commit comments