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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
RUST_BACKTRACE: 1
rust_version: nightly-2024-02-07
rust_version: nightly-2024-05-01

jobs:
fmt:
Expand Down
36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-check-external-types"
version = "0.1.11"
version = "0.1.12"
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "John DiSanti <jdisanti@amazon.com>"]
description = "Static analysis tool to detect external types exposed in a library's public API."
edition = "2021"
Expand All @@ -13,7 +13,7 @@ cargo_metadata = "0.18"
clap = { version = "4.4.18", features = ["derive"] }
owo-colors = { version = "4", features = ["supports-colors"] }
pest = "2" # For pretty error formatting
rustdoc-types = "0.24.0"
rustdoc-types = "0.25.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ How to Use

_Important:_ This tool requires a nightly build of Rust to be installed since it relies on
the [rustdoc JSON output](https://github.com/rust-lang/rust/issues/76578), which hasn't been
stabilized yet. It was last tested against `nightly-2024-02-07`.
stabilized yet. It was last tested against `nightly-2024-05-01`.

To install, run the following from this README path:

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-02-07"
channel = "nightly-2024-05-01"
6 changes: 6 additions & 0 deletions src/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,12 @@ impl Visitor {
}
Type::Generic(_) => {}
Type::Primitive(_) => {}
Type::Pat { .. } => {
panic!(
"Pattern types are unstable and rustc internal rust-lang#120131. \
They are unsuported by cargo-check-external-types."
)
}
Type::FunctionPointer(fp) => {
self.visit_fn_decl(path, &fp.decl)?;
self.visit_generic_param_defs(path, &fp.generic_params)?;
Expand Down
Loading