File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 84
84
- { rust: stable, vendor: Toshiba, options: all }
85
85
- { rust: stable, vendor: Toshiba, options: "" }
86
86
# Test MSRV
87
- - { rust: 1.74 .0, vendor: Nordic, options: "" }
87
+ - { rust: 1.76 .0, vendor: Nordic, options: "" }
88
88
# Use nightly for architectures which don't support stable
89
89
- { rust: nightly, vendor: MSP430, options: "--atomics" }
90
90
- { rust: nightly, vendor: MSP430, options: "" }
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ - Bump MSRV of generated code to 1.76
11
+
10
12
## [ v0.33.3] - 2024-05-10
11
13
12
14
- Yet more clean field & register ` Debug `
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ This project is developed and maintained by the [Tools team][team].
17
17
18
18
## Minimum Supported Rust Version (MSRV)
19
19
20
- The ** generated code** is guaranteed to compile on stable Rust 1.65 .0 and up.
20
+ The ** generated code** is guaranteed to compile on stable Rust 1.76 .0 and up.
21
21
22
- If you encounter compilation errors on any stable version newer than 1.65 .0, please open an issue.
22
+ If you encounter compilation errors on any stable version newer than 1.76 .0, please open an issue.
23
23
24
24
# Testing Locally
25
25
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ impl ToTokens for RawRegAccessor {
118
118
#[ doc = #doc]
119
119
#[ inline( always) ]
120
120
pub const fn #name( & self ) -> & #ty {
121
- unsafe { & * ( self as * const Self ) . cast:: <u8 >( ) . add( #offset) . cast( ) }
121
+ unsafe { & * core :: ptr :: from_ref ( self ) . cast:: <u8 >( ) . add( #offset) . cast( ) }
122
122
}
123
123
}
124
124
. to_tokens ( tokens) ;
@@ -177,7 +177,7 @@ impl ToTokens for RawArrayAccessor {
177
177
increment,
178
178
} = self ;
179
179
let name_iter = Ident :: new ( & format ! ( "{name}_iter" ) , Span :: call_site ( ) ) ;
180
- let cast = quote ! { unsafe { & * ( self as * const Self ) . cast:: <u8 >( ) . add( #offset) . add( #increment * n) . cast( ) } } ;
180
+ let cast = quote ! { unsafe { & * core :: ptr :: from_ref ( self ) . cast:: <u8 >( ) . add( #offset) . add( #increment * n) . cast( ) } } ;
181
181
quote ! {
182
182
#[ doc = #doc]
183
183
#[ inline( always) ]
You can’t perform that action at this time.
0 commit comments