Skip to content

Commit 7d52b2a

Browse files
update to edition 2024 and MSRV 1.88
This allows using let-chains in the code, but requires a repo-wide fmt.
1 parent c671dab commit 7d52b2a

File tree

24 files changed

+49
-46
lines changed

24 files changed

+49
-46
lines changed

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/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/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/macos_frames_test/Cargo.toml

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

88
[dependencies.backtrace]

crates/without_debuginfo/Cargo.toml

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

88
[dependencies.backtrace]

src/capture.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#![allow(clippy::from_over_into)]
22

3+
use crate::PrintFmt;
34
#[cfg(feature = "serde")]
45
use crate::resolve;
5-
use crate::PrintFmt;
6-
use crate::{resolve_frame, trace, BacktraceFmt, Symbol, SymbolName};
6+
use crate::{BacktraceFmt, Symbol, SymbolName, resolve_frame, trace};
77
use core::ffi::c_void;
88
use std::fmt;
99
use std::path::{Path, PathBuf};

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ extern crate std;
105105
#[allow(unused_extern_crates)]
106106
extern crate alloc;
107107

108-
pub use self::backtrace::{trace_unsynchronized, Frame};
108+
pub use self::backtrace::{Frame, trace_unsynchronized};
109109
mod backtrace;
110110

111111
pub use self::symbolize::resolve_frame_unsynchronized;
112-
pub use self::symbolize::{resolve_unsynchronized, Symbol, SymbolName};
112+
pub use self::symbolize::{Symbol, SymbolName, resolve_unsynchronized};
113113
mod symbolize;
114114

115115
pub use self::types::BytesOrWideString;

0 commit comments

Comments
 (0)