From 4022b84ae73faffe80448bae5613fdff58bb8d8a Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 9 May 2021 14:01:57 +0200 Subject: [PATCH] group rustdoc lints under rustdoc:: prefix --- eframe/src/lib.rs | 9 ++++++--- egui/src/lib.rs | 9 ++++++--- egui_demo_app/src/lib.rs | 9 ++++++--- egui_demo_app/src/main.rs | 9 ++++++--- egui_demo_lib/src/lib.rs | 9 ++++++--- egui_glium/src/lib.rs | 9 ++++++--- egui_web/src/lib.rs | 9 ++++++--- emath/src/lib.rs | 9 ++++++--- epaint/src/lib.rs | 9 ++++++--- epi/src/lib.rs | 9 ++++++--- 10 files changed, 60 insertions(+), 30 deletions(-) diff --git a/eframe/src/lib.rs b/eframe/src/lib.rs index 4d98501a1..25d08e4b5 100644 --- a/eframe/src/lib.rs +++ b/eframe/src/lib.rs @@ -12,9 +12,12 @@ //! `eframe` is implemented using [`egui_web`](https://docs.rs/egui_web) and [`egui_glium`](https://docs.rs/egui_glium). #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds -#![deny(broken_intra_doc_links)] -#![deny(invalid_codeblock_attributes)] -#![deny(private_intra_doc_links)] +#![deny( + rustdoc::broken_intra_doc_links, + rustdoc::invalid_codeblock_attributes, + rustdoc::missing_crate_level_docs, + rustdoc::private_intra_doc_links +)] #![forbid(unsafe_code)] #![warn(clippy::all, missing_docs, rust_2018_idioms)] diff --git a/egui/src/lib.rs b/egui/src/lib.rs index b9191fa8f..612b60fc3 100644 --- a/egui/src/lib.rs +++ b/egui/src/lib.rs @@ -242,9 +242,12 @@ //! ``` #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds -#![deny(broken_intra_doc_links)] -#![deny(invalid_codeblock_attributes)] -#![deny(private_intra_doc_links)] +#![deny( + rustdoc::broken_intra_doc_links, + rustdoc::invalid_codeblock_attributes, + rustdoc::missing_crate_level_docs, + rustdoc::private_intra_doc_links +)] #![forbid(unsafe_code)] #![warn( clippy::all, diff --git a/egui_demo_app/src/lib.rs b/egui_demo_app/src/lib.rs index 8003e0522..17fd36e0d 100644 --- a/egui_demo_app/src/lib.rs +++ b/egui_demo_app/src/lib.rs @@ -1,7 +1,10 @@ #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds -#![deny(broken_intra_doc_links)] -#![deny(invalid_codeblock_attributes)] -#![deny(private_intra_doc_links)] +#![deny( + rustdoc::broken_intra_doc_links, + rustdoc::invalid_codeblock_attributes, + rustdoc::missing_crate_level_docs, + rustdoc::private_intra_doc_links +)] #![forbid(unsafe_code)] #![warn(clippy::all, rust_2018_idioms)] diff --git a/egui_demo_app/src/main.rs b/egui_demo_app/src/main.rs index f7bad3dcb..3b7673b05 100644 --- a/egui_demo_app/src/main.rs +++ b/egui_demo_app/src/main.rs @@ -1,7 +1,10 @@ #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds -#![deny(broken_intra_doc_links)] -#![deny(invalid_codeblock_attributes)] -#![deny(private_intra_doc_links)] +#![deny( + rustdoc::broken_intra_doc_links, + rustdoc::invalid_codeblock_attributes, + rustdoc::missing_crate_level_docs, + rustdoc::private_intra_doc_links +)] #![forbid(unsafe_code)] #![warn(clippy::all, rust_2018_idioms)] diff --git a/egui_demo_lib/src/lib.rs b/egui_demo_lib/src/lib.rs index 3ea41ab9a..2571285ce 100644 --- a/egui_demo_lib/src/lib.rs +++ b/egui_demo_lib/src/lib.rs @@ -3,9 +3,12 @@ //! The demo-code is also used in benchmarks and tests. #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds -#![deny(broken_intra_doc_links)] -#![deny(invalid_codeblock_attributes)] -#![deny(private_intra_doc_links)] +#![deny( + rustdoc::broken_intra_doc_links, + rustdoc::invalid_codeblock_attributes, + rustdoc::missing_crate_level_docs, + rustdoc::private_intra_doc_links +)] #![forbid(unsafe_code)] #![warn( clippy::all, diff --git a/egui_glium/src/lib.rs b/egui_glium/src/lib.rs index 9cc8105ef..6666545af 100644 --- a/egui_glium/src/lib.rs +++ b/egui_glium/src/lib.rs @@ -6,9 +6,12 @@ //! If you are writing an app, you may want to look at [`eframe`](https://docs.rs/eframe) instead. #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds -#![deny(broken_intra_doc_links)] -#![deny(invalid_codeblock_attributes)] -#![deny(private_intra_doc_links)] +#![deny( + rustdoc::broken_intra_doc_links, + rustdoc::invalid_codeblock_attributes, + rustdoc::missing_crate_level_docs, + rustdoc::private_intra_doc_links +)] #![forbid(unsafe_code)] #![warn(clippy::all, rust_2018_idioms)] #![allow(clippy::manual_range_contains, clippy::single_match)] diff --git a/egui_web/src/lib.rs b/egui_web/src/lib.rs index b08ae606e..1f00274cf 100644 --- a/egui_web/src/lib.rs +++ b/egui_web/src/lib.rs @@ -5,9 +5,12 @@ //! If you are writing an app, you may want to look at [`eframe`](https://docs.rs/eframe) instead. #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds -#![deny(broken_intra_doc_links)] -#![deny(invalid_codeblock_attributes)] -#![deny(private_intra_doc_links)] +#![deny( + rustdoc::broken_intra_doc_links, + rustdoc::invalid_codeblock_attributes, + rustdoc::missing_crate_level_docs, + rustdoc::private_intra_doc_links +)] #![forbid(unsafe_code)] #![warn(clippy::all, rust_2018_idioms)] diff --git a/emath/src/lib.rs b/emath/src/lib.rs index 08f0154b3..496daaa08 100644 --- a/emath/src/lib.rs +++ b/emath/src/lib.rs @@ -10,9 +10,12 @@ //! * Dimension order is always `x y` #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds -#![deny(broken_intra_doc_links)] -#![deny(invalid_codeblock_attributes)] -#![deny(private_intra_doc_links)] +#![deny( + rustdoc::broken_intra_doc_links, + rustdoc::invalid_codeblock_attributes, + rustdoc::missing_crate_level_docs, + rustdoc::private_intra_doc_links +)] #![forbid(unsafe_code)] #![warn( clippy::all, diff --git a/epaint/src/lib.rs b/epaint/src/lib.rs index 63f015872..c2156c877 100644 --- a/epaint/src/lib.rs +++ b/epaint/src/lib.rs @@ -1,9 +1,12 @@ //! 2D graphics/rendering. Fonts, textures, color, geometry, tessellation etc. #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds -#![deny(broken_intra_doc_links)] -#![deny(invalid_codeblock_attributes)] -#![deny(private_intra_doc_links)] +#![deny( + rustdoc::broken_intra_doc_links, + rustdoc::invalid_codeblock_attributes, + rustdoc::missing_crate_level_docs, + rustdoc::private_intra_doc_links +)] #![forbid(unsafe_code)] #![warn( clippy::all, diff --git a/epi/src/lib.rs b/epi/src/lib.rs index 1d2066ae8..329ed9677 100644 --- a/epi/src/lib.rs +++ b/epi/src/lib.rs @@ -7,9 +7,12 @@ //! Start by looking at the [`App`] trait, and implement [`App::update`]. #![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds -#![deny(broken_intra_doc_links)] -#![deny(invalid_codeblock_attributes)] -#![deny(private_intra_doc_links)] +#![deny( + rustdoc::broken_intra_doc_links, + rustdoc::invalid_codeblock_attributes, + rustdoc::missing_crate_level_docs, + rustdoc::private_intra_doc_links +)] #![forbid(unsafe_code)] #![warn( clippy::all,