File tree 4 files changed +6
-7
lines changed
4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 72
72
- { rust: stable, vendor: Toshiba, options: all }
73
73
- { rust: stable, vendor: Toshiba, options: "" }
74
74
# Test MSRV
75
- - { rust: 1.60 .0, vendor: Nordic, options: "" }
75
+ - { rust: 1.61 .0, vendor: Nordic, options: "" }
76
76
# Use nightly for architectures which don't support stable
77
77
- { rust: nightly, vendor: MSP430, options: "--nightly" }
78
78
- { rust: nightly, vendor: MSP430, options: "" }
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ - mark alternate register accessors with ` const ` , bump ` pac ` MSRV to 1.61
10
11
- ` fields ` fn refactoring
11
12
- Test patched STM32
12
13
- simplify ci strategy
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ This project is developed and maintained by the [Tools team][team].
13
13
14
14
## Minimum Supported Rust Version (MSRV)
15
15
16
- The ** generated code** is guaranteed to compile on stable Rust 1.60 .0 and up.
16
+ The ** generated code** is guaranteed to compile on stable Rust 1.61 .0 and up.
17
17
18
- If you encounter compilation errors on any stable version newer than 1.60 .0, please open an issue.
18
+ If you encounter compilation errors on any stable version newer than 1.61 .0, please open an issue.
19
19
20
20
# Testing Locally
21
21
Original file line number Diff line number Diff line change @@ -535,10 +535,8 @@ fn register_or_cluster_block(
535
535
accessors. extend ( quote ! {
536
536
#[ doc = #comment]
537
537
#[ inline( always) ]
538
- pub fn #name( & self ) -> & #ty {
539
- unsafe {
540
- & * ( ( ( self as * const Self ) as * const u8 ) . add( #offset) as * const #ty)
541
- }
538
+ pub const fn #name( & self ) -> & #ty {
539
+ unsafe { & * ( self as * const Self ) . cast:: <u8 >( ) . add( #offset) . cast( ) }
542
540
}
543
541
} ) ;
544
542
} else {
You can’t perform that action at this time.
0 commit comments