diff --git a/crates/bevy_a11y/src/lib.rs b/crates/bevy_a11y/src/lib.rs index 576b920f4183b..4b0d152105a4b 100644 --- a/crates/bevy_a11y/src/lib.rs +++ b/crates/bevy_a11y/src/lib.rs @@ -3,6 +3,7 @@ #![warn(missing_docs)] #![allow(clippy::type_complexity)] #![forbid(unsafe_code)] +#![forbid(rustdoc::broken_intra_doc_links)] use std::sync::{ atomic::{AtomicBool, Ordering}, diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index e7896dcaa8ee5..5c37f1c1fdf3b 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -2,6 +2,7 @@ #![warn(missing_docs)] #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] use std::ops::Deref; use std::time::Duration; diff --git a/crates/bevy_app/src/lib.rs b/crates/bevy_app/src/lib.rs index 3439620a46633..84cfaef8d7193 100644 --- a/crates/bevy_app/src/lib.rs +++ b/crates/bevy_app/src/lib.rs @@ -2,6 +2,7 @@ #![warn(missing_docs)] #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] mod app; mod main_schedule; diff --git a/crates/bevy_asset/src/lib.rs b/crates/bevy_asset/src/lib.rs index 004f87a857fff..be0afdc0aa39e 100644 --- a/crates/bevy_asset/src/lib.rs +++ b/crates/bevy_asset/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] pub mod io; pub mod meta; diff --git a/crates/bevy_audio/src/lib.rs b/crates/bevy_audio/src/lib.rs index 1a595ad1c7dd8..0b0bd6d48e79b 100644 --- a/crates/bevy_audio/src/lib.rs +++ b/crates/bevy_audio/src/lib.rs @@ -21,6 +21,7 @@ //! ``` #![forbid(unsafe_code)] +#![forbid(rustdoc::broken_intra_doc_links)] #![allow(clippy::type_complexity)] #![warn(missing_docs)] diff --git a/crates/bevy_core/src/lib.rs b/crates/bevy_core/src/lib.rs index c222af6a9d9fe..cd69d5b570683 100644 --- a/crates/bevy_core/src/lib.rs +++ b/crates/bevy_core/src/lib.rs @@ -1,5 +1,6 @@ #![warn(missing_docs)] #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] //! This crate provides core functionality for Bevy Engine. mod name; diff --git a/crates/bevy_core_pipeline/src/lib.rs b/crates/bevy_core_pipeline/src/lib.rs index ec119ad5ae551..da9a008d18895 100644 --- a/crates/bevy_core_pipeline/src/lib.rs +++ b/crates/bevy_core_pipeline/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] pub mod blit; pub mod bloom; diff --git a/crates/bevy_derive/src/lib.rs b/crates/bevy_derive/src/lib.rs index b6766c0dc8959..26fea858bc3b8 100644 --- a/crates/bevy_derive/src/lib.rs +++ b/crates/bevy_derive/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] extern crate proc_macro; diff --git a/crates/bevy_diagnostic/src/lib.rs b/crates/bevy_diagnostic/src/lib.rs index 0422df0cb4380..09239060fbe8c 100644 --- a/crates/bevy_diagnostic/src/lib.rs +++ b/crates/bevy_diagnostic/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] mod diagnostic; mod entity_count_diagnostics_plugin; diff --git a/crates/bevy_dylib/src/lib.rs b/crates/bevy_dylib/src/lib.rs index 2c5d6429676b5..bcd0676b236fa 100644 --- a/crates/bevy_dylib/src/lib.rs +++ b/crates/bevy_dylib/src/lib.rs @@ -1,4 +1,5 @@ #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] #![allow(clippy::type_complexity)] #![allow(clippy::single_component_path_imports)] diff --git a/crates/bevy_dynamic_plugin/src/lib.rs b/crates/bevy_dynamic_plugin/src/lib.rs index ee59ff2cb135a..5e6d9b1bca9bb 100644 --- a/crates/bevy_dynamic_plugin/src/lib.rs +++ b/crates/bevy_dynamic_plugin/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] mod loader; diff --git a/crates/bevy_ecs/src/lib.rs b/crates/bevy_ecs/src/lib.rs index f971697beb539..daa1f9b58cfc0 100644 --- a/crates/bevy_ecs/src/lib.rs +++ b/crates/bevy_ecs/src/lib.rs @@ -1,5 +1,6 @@ #![warn(clippy::undocumented_unsafe_blocks)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] #![allow(clippy::type_complexity)] #![doc = include_str!("../README.md")] diff --git a/crates/bevy_encase_derive/src/lib.rs b/crates/bevy_encase_derive/src/lib.rs index cc81b6edd52d0..884db9c8dbdfe 100644 --- a/crates/bevy_encase_derive/src/lib.rs +++ b/crates/bevy_encase_derive/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] use bevy_macro_utils::BevyManifest; use encase_derive_impl::{implement, syn}; diff --git a/crates/bevy_gilrs/src/lib.rs b/crates/bevy_gilrs/src/lib.rs index 39172a4053c2b..fd5757b172135 100644 --- a/crates/bevy_gilrs/src/lib.rs +++ b/crates/bevy_gilrs/src/lib.rs @@ -5,6 +5,7 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] mod converter; mod gilrs_system; diff --git a/crates/bevy_gizmos/src/lib.rs b/crates/bevy_gizmos/src/lib.rs index 5ad9d8934db06..d07736905b9b3 100644 --- a/crates/bevy_gizmos/src/lib.rs +++ b/crates/bevy_gizmos/src/lib.rs @@ -1,5 +1,6 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] //! This crate adds an immediate mode drawing api to Bevy for visual debugging. //! diff --git a/crates/bevy_gltf/src/lib.rs b/crates/bevy_gltf/src/lib.rs index 559c8ae3c8e63..5f2eb09a1ba8d 100644 --- a/crates/bevy_gltf/src/lib.rs +++ b/crates/bevy_gltf/src/lib.rs @@ -4,6 +4,7 @@ //! The [glTF 2.0 specification](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html) defines the format of the glTF files. #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] #[cfg(feature = "bevy_animation")] use bevy_animation::AnimationClip; diff --git a/crates/bevy_hierarchy/src/lib.rs b/crates/bevy_hierarchy/src/lib.rs index d616e5384ae13..ee13e17497be2 100644 --- a/crates/bevy_hierarchy/src/lib.rs +++ b/crates/bevy_hierarchy/src/lib.rs @@ -1,5 +1,7 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] + //! `bevy_hierarchy` can be used to define hierarchies of entities. //! //! Most commonly, these hierarchies are used for inheriting `Transform` values diff --git a/crates/bevy_input/src/lib.rs b/crates/bevy_input/src/lib.rs index 7af8fec03add2..85e00088dcbe7 100644 --- a/crates/bevy_input/src/lib.rs +++ b/crates/bevy_input/src/lib.rs @@ -1,5 +1,6 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] //! Input functionality for the [Bevy game engine](https://bevyengine.org/). //! diff --git a/crates/bevy_internal/src/lib.rs b/crates/bevy_internal/src/lib.rs index 8e6bf57e52909..a4c77f22b1c85 100644 --- a/crates/bevy_internal/src/lib.rs +++ b/crates/bevy_internal/src/lib.rs @@ -1,5 +1,7 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] + //! This module is separated into its own crate to enable simple dynamic linking for Bevy, and should not be used directly /// `use bevy::prelude::*;` to import common components, bundles, and plugins. diff --git a/crates/bevy_log/src/lib.rs b/crates/bevy_log/src/lib.rs index a912d7d984b5c..1b83a8c2e2971 100644 --- a/crates/bevy_log/src/lib.rs +++ b/crates/bevy_log/src/lib.rs @@ -1,5 +1,7 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] + //! This crate provides logging functions and configuration for [Bevy](https://bevyengine.org) //! apps, and automatically configures platform specific log handlers (i.e. WASM or Android). //! diff --git a/crates/bevy_macro_utils/src/lib.rs b/crates/bevy_macro_utils/src/lib.rs index 2363d61cf0062..4657ea0887097 100644 --- a/crates/bevy_macro_utils/src/lib.rs +++ b/crates/bevy_macro_utils/src/lib.rs @@ -1,5 +1,6 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] #![deny(unsafe_code)] //! A collection of helper types and functions for working on macros within the Bevy ecosystem. diff --git a/crates/bevy_math/src/lib.rs b/crates/bevy_math/src/lib.rs index 31ff134cf39cf..e35e8566efbdc 100644 --- a/crates/bevy_math/src/lib.rs +++ b/crates/bevy_math/src/lib.rs @@ -6,6 +6,7 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] mod affine3; pub mod cubic_splines; diff --git a/crates/bevy_mikktspace/src/lib.rs b/crates/bevy_mikktspace/src/lib.rs index 365c2734800db..0ea3f3d81af35 100644 --- a/crates/bevy_mikktspace/src/lib.rs +++ b/crates/bevy_mikktspace/src/lib.rs @@ -1,5 +1,6 @@ #![allow(clippy::type_complexity)] #![allow(clippy::all)] +#![forbid(rustdoc::broken_intra_doc_links)] use glam::{Vec2, Vec3}; diff --git a/crates/bevy_pbr/src/lib.rs b/crates/bevy_pbr/src/lib.rs index 8e1cfdd41d34b..dd1530dde6599 100644 --- a/crates/bevy_pbr/src/lib.rs +++ b/crates/bevy_pbr/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] pub mod wireframe; diff --git a/crates/bevy_ptr/src/lib.rs b/crates/bevy_ptr/src/lib.rs index f6212c505ba70..71eafc96b5488 100644 --- a/crates/bevy_ptr/src/lib.rs +++ b/crates/bevy_ptr/src/lib.rs @@ -1,6 +1,7 @@ #![doc = include_str!("../README.md")] #![no_std] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] #![allow(clippy::type_complexity)] use core::fmt::{self, Formatter, Pointer}; diff --git a/crates/bevy_reflect/src/lib.rs b/crates/bevy_reflect/src/lib.rs index 1a02cf4ed838d..11b1ffd2426ac 100644 --- a/crates/bevy_reflect/src/lib.rs +++ b/crates/bevy_reflect/src/lib.rs @@ -465,6 +465,7 @@ //! [`bevy_reflect_derive/documentation`]: bevy_reflect_derive //! [derive `Reflect`]: derive@crate::Reflect #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] mod array; mod fields; diff --git a/crates/bevy_reflect/src/reflect.rs b/crates/bevy_reflect/src/reflect.rs index d36fd5db94f21..94ceaa69ea165 100644 --- a/crates/bevy_reflect/src/reflect.rs +++ b/crates/bevy_reflect/src/reflect.rs @@ -282,7 +282,6 @@ impl TypePath for dyn Reflect { } } -#[deny(rustdoc::broken_intra_doc_links)] impl dyn Reflect { /// Downcasts the value to type `T`, consuming the trait object. /// diff --git a/crates/bevy_render/src/lib.rs b/crates/bevy_render/src/lib.rs index 4f06c11e0291d..4102910fafde2 100644 --- a/crates/bevy_render/src/lib.rs +++ b/crates/bevy_render/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] #[cfg(target_pointer_width = "16")] compile_error!("bevy_render cannot compile for a 16-bit platform."); diff --git a/crates/bevy_scene/src/lib.rs b/crates/bevy_scene/src/lib.rs index 5e6dceace58f6..a0f464c3ad62e 100644 --- a/crates/bevy_scene/src/lib.rs +++ b/crates/bevy_scene/src/lib.rs @@ -6,6 +6,7 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] mod bundle; mod dynamic_scene; diff --git a/crates/bevy_sprite/src/lib.rs b/crates/bevy_sprite/src/lib.rs index 9f68a9a3b981e..494f45e180a24 100644 --- a/crates/bevy_sprite/src/lib.rs +++ b/crates/bevy_sprite/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] mod bundle; mod dynamic_texture_atlas_builder; diff --git a/crates/bevy_tasks/src/lib.rs b/crates/bevy_tasks/src/lib.rs index 4d2786e41a0c7..9838243322815 100644 --- a/crates/bevy_tasks/src/lib.rs +++ b/crates/bevy_tasks/src/lib.rs @@ -1,4 +1,5 @@ #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] #![allow(clippy::type_complexity)] #![doc = include_str!("../README.md")] diff --git a/crates/bevy_text/src/lib.rs b/crates/bevy_text/src/lib.rs index 6a1981fa6110b..5292a4da2f73e 100644 --- a/crates/bevy_text/src/lib.rs +++ b/crates/bevy_text/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] mod error; mod font; diff --git a/crates/bevy_time/src/lib.rs b/crates/bevy_time/src/lib.rs index d5611ec58ec36..f798b76c4400d 100644 --- a/crates/bevy_time/src/lib.rs +++ b/crates/bevy_time/src/lib.rs @@ -1,5 +1,6 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] #![doc = include_str!("../README.md")] /// Common run conditions diff --git a/crates/bevy_transform/src/lib.rs b/crates/bevy_transform/src/lib.rs index 5c176c4b8bbc2..b11d390d78da6 100644 --- a/crates/bevy_transform/src/lib.rs +++ b/crates/bevy_transform/src/lib.rs @@ -1,5 +1,6 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] #![warn(clippy::undocumented_unsafe_blocks)] #![doc = include_str!("../README.md")] diff --git a/crates/bevy_ui/src/lib.rs b/crates/bevy_ui/src/lib.rs index e72eb5ea777d2..1aa3446e5ec55 100644 --- a/crates/bevy_ui/src/lib.rs +++ b/crates/bevy_ui/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::type_complexity)] +#![forbid(rustdoc::broken_intra_doc_links)] //! This crate contains Bevy's UI system, which can be used to create UI for both 2D and 3D games //! # Basic usage diff --git a/crates/bevy_utils/src/lib.rs b/crates/bevy_utils/src/lib.rs index fc0ec1c125c73..5bf1bbe69ee32 100644 --- a/crates/bevy_utils/src/lib.rs +++ b/crates/bevy_utils/src/lib.rs @@ -4,6 +4,7 @@ //! #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] #![warn(clippy::undocumented_unsafe_blocks)] #[allow(missing_docs)] diff --git a/crates/bevy_window/src/lib.rs b/crates/bevy_window/src/lib.rs index f1e8a304c52a5..4b9cb4025c0bf 100644 --- a/crates/bevy_window/src/lib.rs +++ b/crates/bevy_window/src/lib.rs @@ -1,5 +1,7 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] + //! `bevy_window` provides a platform-agnostic interface for windowing in Bevy. //! //! This crate contains types for window management and events, diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs index 1241717bb5dd1..1c18415ad54d4 100644 --- a/crates/bevy_winit/src/lib.rs +++ b/crates/bevy_winit/src/lib.rs @@ -1,5 +1,7 @@ #![allow(clippy::type_complexity)] #![warn(missing_docs)] +#![forbid(rustdoc::broken_intra_doc_links)] + //! `bevy_winit` provides utilities to handle window creation and the eventloop through [`winit`] //! //! Most commonly, the [`WinitPlugin`] is used as part of