1
Fork 0

Document that missing_copy_implementations and missing_debug_implementations only apply to public items.

This commit is contained in:
Kevin Reid 2023-05-14 16:07:54 -07:00
parent 18bfe5d8a9
commit 980b39237f

View file

@ -611,7 +611,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc {
declare_lint! { declare_lint! {
/// The `missing_copy_implementations` lint detects potentially-forgotten /// The `missing_copy_implementations` lint detects potentially-forgotten
/// implementations of [`Copy`]. /// implementations of [`Copy`] for public types.
/// ///
/// [`Copy`]: https://doc.rust-lang.org/std/marker/trait.Copy.html /// [`Copy`]: https://doc.rust-lang.org/std/marker/trait.Copy.html
/// ///
@ -729,7 +729,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingCopyImplementations {
declare_lint! { declare_lint! {
/// The `missing_debug_implementations` lint detects missing /// The `missing_debug_implementations` lint detects missing
/// implementations of [`fmt::Debug`]. /// implementations of [`fmt::Debug`] for public types.
/// ///
/// [`fmt::Debug`]: https://doc.rust-lang.org/std/fmt/trait.Debug.html /// [`fmt::Debug`]: https://doc.rust-lang.org/std/fmt/trait.Debug.html
/// ///