Skip to content

Commit f2bcf65

Browse files
authored
Merge pull request #731 from workingjubilee/edition-2024-cleanup
edition 2024 and raise MSRV to 1.88
2 parents 55369a2 + 3ae4456 commit f2bcf65

File tree

29 files changed

+55
-52
lines changed

29 files changed

+55
-52
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ jobs:
265265
with:
266266
submodules: true
267267
- name: Install Rust
268-
run: rustup update 1.82.0 --no-self-update && rustup default 1.82.0
268+
run: rustup update 1.88.0 --no-self-update && rustup default 1.88.0
269269
- run: cargo build
270270

271271
miri:

Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ A library to acquire a stack trace (backtrace) at runtime in a Rust program.
1212
"""
1313
autoexamples = true
1414
autotests = true
15-
edition = "2021"
15+
edition = "2024"
1616
exclude = ["/ci/"]
17-
rust-version = "1.82.0"
17+
rust-version = "1.88.0"
1818

1919
[workspace]
2020
members = ['crates/cpp_smoke_test', 'crates/as-if-std']
@@ -99,12 +99,10 @@ required-features = ["std"]
9999
[[test]]
100100
name = "smoke"
101101
required-features = ["std"]
102-
edition = '2021'
103102

104103
[[test]]
105104
name = "accuracy"
106105
required-features = ["std"]
107-
edition = '2021'
108106

109107
[[test]]
110108
name = "concurrent-panics"

crates/as-if-std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "as-if-std"
33
version = "0.1.0"
44
authors = ["Alex Crichton <[email protected]>"]
5-
edition = "2021"
5+
edition = "2024"
66
publish = false
77

88
[lib]

crates/cpp_smoke_test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "cpp_smoke_test"
33
version = "0.1.0"
44
authors = ["Nick Fitzgerald <[email protected]>"]
5-
edition = "2021"
5+
edition = "2024"
66
build = "build.rs"
77
publish = false
88

crates/cpp_smoke_test/tests/smoke.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extern crate cpp_smoke_test;
33

44
use std::sync::atomic::{AtomicBool, Ordering};
55

6-
extern "C" {
6+
unsafe extern "C" {
77
fn cpp_trampoline(func: extern "C" fn()) -> ();
88
}
99

crates/debuglink/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "debuglink"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
publish = false
66

77
[dependencies]

crates/dylib-dep/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "dylib-dep"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
authors = []
66
publish = false
77

crates/dylib-dep/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ macro_rules! pos {
88
};
99
}
1010

11-
#[no_mangle]
11+
#[unsafe(no_mangle)]
1212
pub extern "C" fn foo(outer: Pos, inner: fn(Pos, Pos)) {
1313
inner(outer, pos!());
1414
}

crates/line-tables-only/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "line-tables-only"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
publish = false
66

77
[build-dependencies]

crates/line-tables-only/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mod tests {
77

88
pub type Callback = extern "C" fn(data: *mut c_void);
99

10-
extern "C" {
10+
unsafe extern "C" {
1111
fn foo(cb: Callback, data: *mut c_void);
1212
}
1313

0 commit comments

Comments
 (0)