Skip to content

Commit 980b392

Browse files
committed
Document that missing_copy_implementations and missing_debug_implementations only apply to public items.
1 parent 18bfe5d commit 980b392

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_lint/src/builtin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc {
611611

612612
declare_lint! {
613613
/// The `missing_copy_implementations` lint detects potentially-forgotten
614-
/// implementations of [`Copy`].
614+
/// implementations of [`Copy`] for public types.
615615
///
616616
/// [`Copy`]: https://doc.rust-lang.org/std/marker/trait.Copy.html
617617
///
@@ -729,7 +729,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingCopyImplementations {
729729

730730
declare_lint! {
731731
/// The `missing_debug_implementations` lint detects missing
732-
/// implementations of [`fmt::Debug`].
732+
/// implementations of [`fmt::Debug`] for public types.
733733
///
734734
/// [`fmt::Debug`]: https://doc.rust-lang.org/std/fmt/trait.Debug.html
735735
///

0 commit comments

Comments
 (0)