Skip to content

Commit 481d3a1

Browse files
Elaborate lint explanation
1 parent 4fd61dd commit 481d3a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ declare_lint! {
705705
///
706706
/// ### Explanation
707707
///
708-
/// These qualifiers have no effect.
708+
/// These qualifiers have no effect, as `const _` items are unnameable.
709709
pub UNUSED_VISIBILITIES,
710710
Warn,
711711
"detect visibility qualifiers on `const _` items"

0 commit comments

Comments
 (0)