Skip to content

Commit 18fcdf3

Browse files
Elaborate lint explanation
1 parent f05704d commit 18fcdf3

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
@@ -708,7 +708,7 @@ declare_lint! {
708708
///
709709
/// ### Explanation
710710
///
711-
/// These qualifiers have no effect.
711+
/// These qualifiers have no effect, as `const _` items are unnameable.
712712
pub UNUSED_VISIBILITIES,
713713
Warn,
714714
"detect visibility qualifiers on `const _` items"

0 commit comments

Comments
 (0)