Skip to content

Commit a080df4

Browse files
committed
compatibility with edition 2024, mips-rt v0.3.7
1 parent 65c3ff3 commit a080df4

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

mips-rt/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mips-rt"
3-
version = "0.3.6"
3+
version = "0.3.7"
44
authors = ["Stephan <kiffie@mailbox.org"]
55
edition = "2021"
66
repository = "https://github.com/kiffie/pic32-rs"
@@ -11,5 +11,5 @@ keywords = ["mips", "pic32", "runtime", "startup"]
1111
license = "MIT OR Apache-2.0"
1212

1313
[dependencies]
14-
mips-rt-macros = { path = "macros", version = "0.3.4" }
14+
mips-rt-macros = { path = "macros", version = "0.3.5" }
1515

mips-rt/macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mips-rt-macros"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
authors = ["Stephan <kiffie@mailbox.org"]
55
edition = "2021"
66
repository = "https://github.com/kiffie/pic32-rs"

mips-rt/macros/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream {
8181
{
8282
#(#attrs)*
8383
static mut #ident: #ty = #expr;
84-
&mut #ident
84+
unsafe { &mut #ident }
8585
}
8686
}
8787
})
@@ -99,6 +99,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream {
9999
#[doc(hidden)]
100100
#[export_name = "main"]
101101
pub unsafe extern "C" fn #tramp_ident() {
102+
#[allow(static_mut_refs)]
102103
#ident(
103104
#(#resource_args),*
104105
)
@@ -261,7 +262,7 @@ pub fn interrupt(args: TokenStream, input: TokenStream) -> TokenStream {
261262
{
262263
#(#attrs)*
263264
static mut #ident: #ty = #expr;
264-
&mut #ident
265+
unsafe { &mut #ident }
265266
}
266267
}
267268
})
@@ -279,6 +280,7 @@ pub fn interrupt(args: TokenStream, input: TokenStream) -> TokenStream {
279280
#[doc(hidden)]
280281
#[export_name = #ident_s]
281282
pub unsafe extern "C" fn #tramp_ident() {
283+
#[allow(static_mut_refs)]
282284
#ident(
283285
#(#resource_args),*
284286
)

0 commit comments

Comments
 (0)