-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump rustdoc-types to v25 #155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on! Just one minor comment.
src/visitor.rs
Outdated
@@ -402,6 +402,8 @@ impl Visitor { | |||
} | |||
Type::Generic(_) => {} | |||
Type::Primitive(_) => {} | |||
// Pattern types are unstable and rustc internal rust-lang#120131 | |||
Type::Pat { .. } => {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far we've been supporting unstable compiler features in the event they stabilize. I'm fine with not supporting pattern types, but ideally it would panic rather than silently ignore the inner type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. I've added a panic 👍
https://github.com/awslabs/cargo-check-external-types/compare/47b98dd4eea02026f5eb4e71142752350e6234d2..fb36e66e295c331089a2a957ac9c65eb5a65209f
fb36e66
to
c0efb07
Compare
When using `cargo-check-external-types` with the latest nightly release I saw: ``` The version of rustdoc being used produces JSON format version 29, but this tool requires format version 28. This can happen if the locally installed version of rustdoc doesn't match the rustdoc JSON types from the `rustdoc-types` crate. If this occurs with the latest Rust nightly and the latest version of this tool, then this is a bug, and the tool needs to be upgraded to the latest format version. Otherwise, you'll need to determine a Rust nightly version that matches this tool's supported format version (or vice versa). ``` This change adds support for the most recent nightly versions using rustdoc format version 29. The changelog for `rustdoc-types` can be found here https://github.com/aDotInTheVoid/rustdoc-types/blob/trunk/CHANGELOG.md#v0250---2024-04-19
Hey @jdisanti |
When using
cargo-check-external-types
with the latest nightly release I saw:This change adds support for the most recent nightly versions using rustdoc format version 29.
The changelog for
rustdoc-types
can be found here https://github.com/aDotInTheVoid/rustdoc-types/blob/trunk/CHANGELOG.md#v0250---2024-04-19By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.