Skip to content

Commit 3d0ca66

Browse files
v0.33.0
1 parent 4810a9a commit 3d0ca66

File tree

4 files changed

+38
-4
lines changed

4 files changed

+38
-4
lines changed

Diff for: CHANGELOG.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
<a name="v0.33.0"></a>
2+
# [v0.33.0](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.33.0) - 2024-12-03
3+
4+
TODO: Changelog.
5+
6+
- Format Version: 37
7+
- Upstream Commit: [`f33dba028704d108497b8c06943b9bbc3d14c42b`](https://github.com/rust-lang/rust/commit/f33dba028704d108497b8c06943b9bbc3d14c42b)
8+
- Diff: [v0.32.2...v0.33.0](https://github.com/aDotInTheVoid/rustdoc-types/compare/v0.32.2...v0.33.0)
9+
10+
<a name="v0.33.0"></a>
11+
# [v0.33.0](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.33.0) - 2024-12-03
12+
13+
- Format Version: 37
14+
- Upstream Commit: [`f33dba028704d108497b8c06943b9bbc3d14c42b`](https://github.com/rust-lang/rust/commit/f33dba028704d108497b8c06943b9bbc3d14c42b)
15+
- Diff: [v0.32.2...v0.33.0](https://github.com/aDotInTheVoid/rustdoc-types/compare/v0.32.2...v0.33.0)
16+
17+
Add new `is_unsafe` field in `Static` struct.
18+
119
<a name="v0.32.2"></a>
220
# [v0.32.2](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.32.2) - 2024-10-23
321

@@ -11,7 +29,7 @@
1129
# [v0.32.1](https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.32.1) - 2024-10-20
1230

1331
**New Feature**: The optional `rustc-hash` cargo feature has been added.
14-
This changes the hashing algorithm used to [a speedy non-cryptographic hashing algorith](https://github.com/rust-lang/rustc-hash) also used in rustc.
32+
This changes the hashing algorithm used to [a speedy non-cryptographic hashing algorith](https://github.com/rust-lang/rustc-hash) also used in rustc.
1533
This has lead to [modest but appreciable](https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/rustc-hash.20and.20performance.20of.20rustdoc-types/near/474855731) performace gains for some consumers
1634
([#42](https://github.com/rust-lang/rustdoc-types/pull/42), [rust#131936](https://github.com/rust-lang/rust/pull/131936)).
1735

Diff for: COMMIT.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4b658657da324253a201fc7baf70d106db5df7e0
1+
f33dba028704d108497b8c06943b9bbc3d14c42b

Diff for: Cargo.toml

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

Diff for: src/lib.rs

+17-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use serde::{Deserialize, Serialize};
2929
/// This integer is incremented with every breaking change to the API,
3030
/// and is returned along with the JSON blob as [`Crate::format_version`].
3131
/// Consuming code should assert that this value matches the format version(s) that it supports.
32-
pub const FORMAT_VERSION: u32 = 36;
32+
pub const FORMAT_VERSION: u32 = 37;
3333

3434
/// The root of the emitted JSON blob.
3535
///
@@ -1237,6 +1237,22 @@ pub struct Static {
12371237
///
12381238
/// It's not guaranteed that it'll match the actual source code for the initial value.
12391239
pub expr: String,
1240+
1241+
/// Is the static `unsafe`?
1242+
///
1243+
/// This is only true if it's in an `extern` block, and not explicity marked
1244+
/// as `safe`.
1245+
///
1246+
/// ```rust
1247+
/// unsafe extern {
1248+
/// static A: i32; // unsafe
1249+
/// safe static B: i32; // safe
1250+
/// }
1251+
///
1252+
/// static C: i32 = 0; // safe
1253+
/// static mut D: i32 = 0; // safe
1254+
/// ```
1255+
pub is_unsafe: bool,
12401256
}
12411257

12421258
/// A primitive type declaration. Declarations of this kind can only come from the core library.

0 commit comments

Comments
 (0)