Skip to contentSkip to conversation

rust: id_pool: fix broken intra-doc link

PATCH In review Miguel Ojeda 4 participants 5 messages Nov 27, 2025 – Nov 30, 2025

Subsystems (2)
lore
Share & tools
lore

Miguel Ojeda

author maintainer
#0 lore raw

PATCH 1/1 rust: id_pool: fix broken intra-doc link

rustdoc detects a broken intra-doc link:

    error: unresolved link to `BitmapVec::NO_ALLOC_MAX_LEN`
       --> rust/kernel/id_pool.rs:100:31
        |
    100 |     /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN
        |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `BitmapVec` has no field or associated item named `NO_ALLOC_MAX_LEN`
        |
        = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
        = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]`

Thus fix it.

It was a missed rename in v5 of the patch series adding this [1].

Fixes feb3fdf1239a ("rust: id_pool: do not supply starting capacity")

---
I saw this in next-20251127.

I think using [BitmapVec::MAX_INLINE_LEN] is clearer in general, especially for things in other modules, but I kept the same style as other links in the file.

 rust/kernel/id_pool.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/kernel/id_pool.rs +2 -2
index a4c37d6a0971..73a952d7dd83 100644
@@ -95,9 +95,9 @@ pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError> {
 impl IdPool {
     /// Constructs a new [`IdPool`].
     ///
-    /// The pool will have a capacity of [`NO_ALLOC_MAX_LEN`].
+    /// The pool will have a capacity of [`MAX_INLINE_LEN`].
     ///
-    /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN
+    /// [`MAX_INLINE_LEN`]: BitmapVec::MAX_INLINE_LEN
     #[inline]
     pub fn new() -> Self {
         Self {

base-commit: a322638c15a678168aeb8dc11c8760f8a053124d --
2.52.0

reviewer
#1 lore raw
Quoted 18 lines · Miguel Ojeda

rustdoc detects a broken intra-doc link:

    error: unresolved link to `BitmapVec::NO_ALLOC_MAX_LEN`
       --> rust/kernel/id_pool.rs:100:31
        |
    100 |     /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN
        |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `BitmapVec` has no field or associated item named `NO_ALLOC_MAX_LEN`
        |
        = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
        = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]`

Thus fix it.

It was a missed rename in v5 of the patch series adding this [1].

Fixes feb3fdf1239a ("rust: id_pool: do not supply starting capacity")
Quoted 6 lines

---
I saw this in next-20251127.

I think using [BitmapVec::MAX_INLINE_LEN] is clearer in general, especially for things in other modules, but I kept the same style as other links in the file.

Thanks, added it on top of Alice's series.

Quoted 23 lines
 rust/kernel/id_pool.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/kernel/id_pool.rs +2 -2
index a4c37d6a0971..73a952d7dd83 100644
@@ -95,9 +95,9 @@ pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError> {
 impl IdPool {
     /// Constructs a new [`IdPool`].
     ///
-    /// The pool will have a capacity of [`NO_ALLOC_MAX_LEN`].
+    /// The pool will have a capacity of [`MAX_INLINE_LEN`].
     ///
-    /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN
+    /// [`MAX_INLINE_LEN`]: BitmapVec::MAX_INLINE_LEN
     #[inline]
     pub fn new() -> Self {
         Self {

base-commit: a322638c15a678168aeb8dc11c8760f8a053124d --
2.52.0

reviewer
#2 lore raw

+ Philip Li <[email protected]>
+ Yujie Liu <[email protected]>
+ Stephen Rothwell <[email protected]>

It seems, the below error wasn't caught by lkp, neither by linux-next.

Can you guys please consider adding rustdoc target in your testing grid?

Thanks,
Yury

Quoted 51 lines · Yury Norov
Quoted 18 lines · Miguel Ojeda

rustdoc detects a broken intra-doc link:

    error: unresolved link to `BitmapVec::NO_ALLOC_MAX_LEN`
       --> rust/kernel/id_pool.rs:100:31
        |
    100 |     /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN
        |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `BitmapVec` has no field or associated item named `NO_ALLOC_MAX_LEN`
        |
        = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
        = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]`

Thus fix it.

It was a missed rename in v5 of the patch series adding this [1].

Fixes feb3fdf1239a ("rust: id_pool: do not supply starting capacity")
Quoted 6 lines

---
I saw this in next-20251127.

I think using [BitmapVec::MAX_INLINE_LEN] is clearer in general, especially for things in other modules, but I kept the same style as other links in the file.

Thanks, added it on top of Alice's series.

Quoted 23 lines
 rust/kernel/id_pool.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/kernel/id_pool.rs +2 -2
index a4c37d6a0971..73a952d7dd83 100644
@@ -95,9 +95,9 @@ pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError> {
 impl IdPool {
     /// Constructs a new [`IdPool`].
     ///
-    /// The pool will have a capacity of [`NO_ALLOC_MAX_LEN`].
+    /// The pool will have a capacity of [`MAX_INLINE_LEN`].
     ///
-    /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN
+    /// [`MAX_INLINE_LEN`]: BitmapVec::MAX_INLINE_LEN
     #[inline]
     pub fn new() -> Self {
         Self {

base-commit: a322638c15a678168aeb8dc11c8760f8a053124d --
2.52.0

maintainer Reviewed-by on v1 1/1
#4 lore raw
In reply to Miguel Ojeda
Quoted 11 lines · Miguel Ojeda

rustdoc detects a broken intra-doc link:

    error: unresolved link to `BitmapVec::NO_ALLOC_MAX_LEN`
       --> rust/kernel/id_pool.rs:100:31
        |
    100 |     /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN
        |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `BitmapVec` has no field or associated item named `NO_ALLOC_MAX_LEN`
        |
        = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
        = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]`
Quoted 7 lines

Thus fix it.

It was a missed rename in v5 of the patch series adding this [1].

Fixes feb3fdf1239a ("rust: id_pool: do not supply starting capacity")

Thanks!

#3 lore raw
In reply to Yury Norov
Quoted 5 lines · Yury Norov

+ Philip Li <[email protected]>
+ Yujie Liu <[email protected]>
+ Stephen Rothwell <[email protected]>

It seems, the below error wasn't caught by lkp, neither by linux-next.

Sorry, the bot does have rustdoc running, but missed this one.

Quoted 3 lines

Can you guys please consider adding rustdoc target in your testing grid?

Got it Yury, I will follow up this to make rustdoc check work effectively in the bot.

Quoted 56 lines

Thanks,
Yury

Quoted 51 lines · Yury Norov
Quoted 18 lines · Miguel Ojeda

rustdoc detects a broken intra-doc link:

    error: unresolved link to `BitmapVec::NO_ALLOC_MAX_LEN`
       --> rust/kernel/id_pool.rs:100:31
        |
    100 |     /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN
        |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `BitmapVec` has no field or associated item named `NO_ALLOC_MAX_LEN`
        |
        = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
        = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]`

Thus fix it.

It was a missed rename in v5 of the patch series adding this [1].

Fixes feb3fdf1239a ("rust: id_pool: do not supply starting capacity")
Quoted 6 lines

---
I saw this in next-20251127.

I think using [BitmapVec::MAX_INLINE_LEN] is clearer in general, especially for things in other modules, but I kept the same style as other links in the file.

Thanks, added it on top of Alice's series.

Quoted 23 lines
 rust/kernel/id_pool.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/kernel/id_pool.rs +2 -2
index a4c37d6a0971..73a952d7dd83 100644
@@ -95,9 +95,9 @@ pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError> {
 impl IdPool {
     /// Constructs a new [`IdPool`].
     ///
-    /// The pool will have a capacity of [`NO_ALLOC_MAX_LEN`].
+    /// The pool will have a capacity of [`MAX_INLINE_LEN`].
     ///
-    /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN
+    /// [`MAX_INLINE_LEN`]: BitmapVec::MAX_INLINE_LEN
     #[inline]
     pub fn new() -> Self {
         Self {

base-commit: a322638c15a678168aeb8dc11c8760f8a053124d --
2.52.0