Skip to content

Conversation

simonwuelker
Copy link
Contributor

A few of the items in xml5ever are annotated with #[doc(hidden)]. This causes the initial_state field in https://docs.rs/xml5ever/latest/xml5ever/tokenizer/struct.XmlTokenizerOpts.html to not link to the enum, which is bad.

Presumably this is done because the author wanted to get around the #[deny(missing_docs)] lint? I'm not sure. Not all of these need to be public and I have reduced the visibility of a few items (NamespaceMap and a few methods) to pub(crate). This makes this PR a breaking change. I believe that these were not intended to be public in the first place, but I can undo that if requested.

@simonwuelker simonwuelker added the V-breaking Breaking change label Jul 24, 2025
Copy link
Contributor

@nicoburns nicoburns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe doc(hidden) was used here because these types were/are not intended to be part of the public API, but needed to be pub so that tests could access them.

@simonwuelker
Copy link
Contributor Author

Possible, either way, they're not needed anymore (tests run fine without them)

pub use self::AttrValueKind::*;
pub use self::DoctypeKind::*;
pub use self::XmlState::*;
#![allow(missing_docs)] // FIXME
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please open a bug for this and link to it here. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: #648. Thanks for the review (:

@simonwuelker simonwuelker added this pull request to the merge queue Jul 25, 2025
Merged via the queue into servo:main with commit b78a68a Jul 25, 2025
6 checks passed
@simonwuelker simonwuelker deleted the all-docs branch July 25, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

V-breaking Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants