opendal icon indicating copy to clipboard operation
opendal copied to clipboard

Links generated in rustdoc is broken

Open Xuanwo opened this issue 1 year ago • 1 comments

In https://opendal.apache.org/docs/rust/opendal/struct.Operator.html, we have

image

But we expect:

image


This can't be reproduced locally.

Xuanwo avatar Jan 30 '24 12:01 Xuanwo

The error message itself is wrong:

warning: unresolved link to `Operator::Operator`
  --> core/src/types/operator/operator.rs:42:66
   |
42 | /// Read [`Operator::concepts`][docs::concepts] for more about [`Operator::Operator`].
   |                                                                  ^^^^^^^^^^^^^^^^^^ the struct `Operator` has no field or associated item named `Operator`
   |
   = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default

warning: unresolved link to `Operator::services`
  --> core/src/types/operator/operator.rs:46:42
   |
46 | /// Read more backend init examples in [`Operator::services`]
   |                                          ^^^^^^^^^^^^^^^^^^ the struct `Operator` has no field or associated item named `services`

warning: unresolved link to `Operator::Lister`

Xuanwo avatar Jan 30 '24 12:01 Xuanwo

Fixed by upgrading rust toolchain.

Xuanwo avatar May 13 '24 03:05 Xuanwo