Skip to content
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

Merged
merged 1 commit into from
May 28, 2024
Merged

Bump rustdoc-types to v25 #155

merged 1 commit into from
May 28, 2024

Conversation

eopb
Copy link
Contributor

@eopb eopb commented May 2, 2024

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

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eopb eopb requested a review from a team as a code owner May 2, 2024 19:06
@eopb eopb force-pushed the push-xnqymwxqrttn branch from f71c4eb to 98d6e53 Compare May 2, 2024 19:56
Copy link
Contributor

@jdisanti jdisanti left a 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 { .. } => {}
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eopb eopb force-pushed the push-xnqymwxqrttn branch 3 times, most recently from fb36e66 to c0efb07 Compare May 13, 2024 19:31
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
@eopb eopb force-pushed the push-xnqymwxqrttn branch from c0efb07 to 6cf13dd Compare May 18, 2024 18:21
@eopb
Copy link
Contributor Author

eopb commented May 27, 2024

Hey @jdisanti
Is this looking good to merge?

@jdisanti jdisanti merged commit d370dc4 into awslabs:main May 28, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants