diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e57e51883d..0ca71c2f32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -273,7 +273,7 @@ jobs: - name: Installs cargo-deadlinks run: cargo install --force cargo-deadlinks - name: Build and check doc - run: RUSTDOCFLAGS='-D warnings' cargo doc --workspace --all-features --no-deps + run: RUSTDOCFLAGS='-D warnings' cargo doc --workspace --all-features --no-deps --document-private-items - name: Checks dead links run: cargo deadlinks --dir target/doc/bevy continue-on-error: true diff --git a/crates/bevy_ecs/src/query/iter.rs b/crates/bevy_ecs/src/query/iter.rs index ad1219f683..7e135c7808 100644 --- a/crates/bevy_ecs/src/query/iter.rs +++ b/crates/bevy_ecs/src/query/iter.rs @@ -35,7 +35,7 @@ where /// This does not check for mutable query correctness. To be safe, make sure mutable queries /// have unique access to the components they query. /// This does not validate that `world.id()` matches `query_state.world_id`. Calling this on a `world` - /// with a mismatched [`WorldId`] is unsound. + /// with a mismatched [`WorldId`](crate::world::WorldId) is unsound. pub(crate) unsafe fn new( world: &'w World, query_state: &'s QueryState, @@ -175,7 +175,7 @@ where /// This does not check for mutable query correctness. To be safe, make sure mutable queries /// have unique access to the components they query. /// This does not validate that `world.id()` matches `query_state.world_id`. Calling this on a - /// `world` with a mismatched [`WorldId`] is unsound. + /// `world` with a mismatched [`WorldId`](crate::world::WorldId) is unsound. pub(crate) unsafe fn new( world: &'w World, query_state: &'s QueryState, diff --git a/crates/bevy_ecs/src/world/mod.rs b/crates/bevy_ecs/src/world/mod.rs index c07892a352..24e302ade4 100644 --- a/crates/bevy_ecs/src/world/mod.rs +++ b/crates/bevy_ecs/src/world/mod.rs @@ -1087,7 +1087,7 @@ impl World { } } - /// Empties queued entities and adds them to the empty [Archetype]. + /// Empties queued entities and adds them to the empty [Archetype](crate::archetype::Archetype). /// This should be called before doing operations that might operate on queued entities, /// such as inserting a [Component]. pub(crate) fn flush(&mut self) {