Skip to content

Commit f6da357

Browse files
authored
Rollup merge of #111572 - kpreid:mdi, r=compiler-errors
Document that `missing_copy_implementations` and `missing_debug_implementations` only apply to public items. I encountered #111359 (fixed) and noticed that the documentation didn't say that it was _intended_ that `missing_debug_implementations` only applies to public items. This PR fixes that, and makes the same wording change to `missing_copy_implementations` which has the same condition. I chose the words to also be similar to `missing_docs` which already had such a remark.
2 parents 87a0cd9 + 980b392 commit f6da357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: 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)