File tree 4 files changed +38
-4
lines changed
4 files changed +38
-4
lines changed Original file line number Diff line number Diff line change
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
+
1
19
<a name =" v0.32.2 " ></a >
2
20
# [ v0.32.2] ( https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.32.2 ) - 2024-10-23
3
21
11
29
# [ v0.32.1] ( https://github.com/aDotInTheVoid/rustdoc-types/releases/tag/v0.32.1 ) - 2024-10-20
12
30
13
31
** 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.
15
33
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
16
34
([ #42 ] ( https://github.com/rust-lang/rustdoc-types/pull/42 ) , [ rust #131936 ] ( https://github.com/rust-lang/rust/pull/131936 ) ).
17
35
Original file line number Diff line number Diff line change 1
- 4b658657da324253a201fc7baf70d106db5df7e0
1
+ f33dba028704d108497b8c06943b9bbc3d14c42b
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " rustdoc-types"
3
- version = " 0.32.2 "
3
+ version = " 0.33.0 "
4
4
edition = " 2018"
5
5
license = " MIT OR Apache-2.0"
6
6
description = " Types for rustdoc's json output"
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ use serde::{Deserialize, Serialize};
29
29
/// This integer is incremented with every breaking change to the API,
30
30
/// and is returned along with the JSON blob as [`Crate::format_version`].
31
31
/// 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 ;
33
33
34
34
/// The root of the emitted JSON blob.
35
35
///
@@ -1237,6 +1237,22 @@ pub struct Static {
1237
1237
///
1238
1238
/// It's not guaranteed that it'll match the actual source code for the initial value.
1239
1239
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 ,
1240
1256
}
1241
1257
1242
1258
/// A primitive type declaration. Declarations of this kind can only come from the core library.
You can’t perform that action at this time.
0 commit comments