You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting an error when trying to run cargo doc in a crate.
cargo doc
# or
cargo doc -p num-traits
Documentingnum-traitsv0.2.16error[E0658]: customclassesincodeblocksareunstable--> /home/marcospb19/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-traits-0.2.16/src/identities.rs:4:1
|
4 | / /// Defines an additive identity element for `Self`.5 | | ///6 | | /// # Laws7 | | ///
... |
10 | | /// 0 + a = a ∀ a ∈ Self11 | | /// ```
| |_______^
|
=note: seeissue#79483 <https://github.com/rust-lang/rust/issues/79483> for more information
=help: add `#![feature(custom_code_classes_in_docs)]` tothecrateattributestoenable=note: foundthesecustomclasses: class=texterror[E0658]: customclassesincodeblocksareunstable--> /home/marcospb19/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-traits-0.2.16/src/identities.rs:80:1
|
80 | / /// Defines a multiplicative identity element for `Self`.81 | | ///82 | | /// # Laws83 | | ///
... |
86 | | /// 1 * a = a ∀ a ∈ Self87 | | /// ```
| |_______^
|
=note: seeissue#79483 <https://github.com/rust-lang/rust/issues/79483> for more information
=help: add `#![feature(custom_code_classes_in_docs)]` tothecrateattributestoenable=note: foundthesecustomclasses: class=textFormoreinformationaboutthiserror, try `rustc--explainE0658`.
error: couldnotdocument `num-traits`
Therefore, I cannot see the docs for my crate.
The text was updated successfully, but these errors were encountered:
marcospb19
changed the title
Cargo doc is broken due to use of unstable feature
Cargo doc is broken due to unintended use of unstable feature
Sep 18, 2023
marcospb19
changed the title
Cargo doc is broken due to unintended use of unstable feature
Nightly broke cargo-doc, unintended use of unstable feature
Sep 18, 2023
marcospb19
changed the title
Nightly broke cargo-doc, unintended use of unstable feature
New nightly version broke cargo-doc, unintended use of unstable feature
Sep 18, 2023
@cuviper I'd recommend keeping this open (or closed + pinned) to be a guide towards the fix once it is published, this is probably going to hit a lot of people.
rust-lang/rust#115914 relaxed this to a warning, shipped in rustc 1.74.0-nightly (65ea825f4 2023-09-18). Furthermore, that seems to now respect cap-lints, so you shouldn't even see the warning here unless you use cargo doc -v -v.
Crate version:
0.2.16
(latest).Cargo version: nightly from today (
cargo 1.74.0-nightly (d5336f813 2023-09-14)
).I'm getting an error when trying to run
cargo doc
ina crate
.cargo doc # or cargo doc -p num-traits
Therefore, I cannot see the docs for my crate.
The text was updated successfully, but these errors were encountered: