Skip to content

Commit ad92b91

Browse files
committed
v0.25.0
1 parent 4be3505 commit ad92b91

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
<a name="v0.25.0"></a>
2+
# [v0.25.0](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.25.0) - 2024-04-19
3+
4+
**Breaking Change**: Add `Type::Pat` for unstable pattern types. ([rust#120131](https://github.com/rust-lang/rust/pull/120131/))
5+
6+
- Format Version: 29
7+
- Upstream Commit: [`18ff131c4e06d6e1ebfc19092fe1d6c3535eb78b`](https://github.com/rust-lang/rust/commit/18ff131c4e06d6e1ebfc19092fe1d6c3535eb78b)
8+
- Diff: [v0.24.0...v0.25.0](https://github.com/aDotInTheVoid/rustdoc-types/compare/v0.24.0...v0.25.0)
9+
110
<a name="v0.24.0"></a>
211
# [v0.24.0](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.24.0) - 2023-12-23
312

COMMIT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c29f763153ac89e7930c6d50f5ab4656318b30d4
1+
18ff131c4e06d6e1ebfc19092fe1d6c3535eb78b

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustdoc-types"
3-
version = "0.24.0"
3+
version = "0.25.0"
44
edition = "2018"
55
license = "MIT OR Apache-2.0"
66
description = "Types for rustdoc's json output"

src/lib.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
88
use std::path::PathBuf;
99

1010
/// rustdoc format-version.
11-
pub const FORMAT_VERSION: u32 = 28;
11+
pub const FORMAT_VERSION: u32 = 29;
1212

1313
/// A `Crate` is the root of the emitted JSON blob. It contains all type/documentation information
1414
/// about the language items in the local crate, as well as info about external items to allow
@@ -562,6 +562,13 @@ pub enum Type {
562562
type_: Box<Type>,
563563
len: String,
564564
},
565+
/// `u32 is 1..`
566+
Pat {
567+
#[serde(rename = "type")]
568+
type_: Box<Type>,
569+
#[doc(hidden)]
570+
__pat_unstable_do_not_use: String,
571+
},
565572
/// `impl TraitA + TraitB + ...`
566573
ImplTrait(Vec<GenericBound>),
567574
/// `_`

0 commit comments

Comments
 (0)