Skip to content

Commit 09126e9

Browse files
authored
Merge pull request #142 from ayrtonm/eh_personality
Add no-op eh_personality function to silence CI errors
2 parents f997edb + 67f25a6 commit 09126e9

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ implementations of graphics functions, and the addition of missing libraries.
5656
## Dependencies
5757

5858
To compile for the PSP, you will need a Rust **nightly** version equal to or
59-
later than `2022-06-11` and the `rust-src` component. Please install Rust using
59+
later than `2022-09-04` and the `rust-src` component. Please install Rust using
6060
https://rustup.rs/
6161

6262
Use the following if you are new to Rust. (Feel free to set an override manually

cargo-psp/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ impl fmt::Display for CommitDate {
120120
}
121121
}
122122

123-
// Minimum 2022-06-11, remember to update both commit date and version too,
123+
// Minimum 2022-09-03, remember to update both commit date and version too,
124124
// below. Note that the `day` field lags by one day, as the toolchain always
125125
// contains the previous days' nightly rustc.
126126
const MINIMUM_COMMIT_DATE: CommitDate = CommitDate {
127127
year: 2022,
128-
month: 06,
129-
day: 10,
128+
month: 09,
129+
day: 03,
130130
};
131131
const MINIMUM_RUSTC_VERSION: Version = Version {
132132
major: 1,

ci/concourse/build-rust-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
platform: darwin
22

33
params:
4-
RUSTUP_TOOLCHAIN: nightly-2022-06-11
4+
RUSTUP_TOOLCHAIN: nightly-2022-09-04
55

66
inputs:
77
- name: repo

ci/concourse/build-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ image_resource:
1111
tag: 1.44-slim
1212

1313
params:
14-
RUSTUP_TOOLCHAIN: nightly-2022-06-11
14+
RUSTUP_TOOLCHAIN: nightly-2022-09-04
1515

1616
inputs:
1717
- name: repo

psp/src/panic.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,13 @@ pub fn catch_unwind<R, F: FnOnce() -> R>(f: F) -> Result<R, Box<dyn Any + Send>>
215215
}
216216
}
217217

218+
// TODO: EH personality was moved from the panic_unwind crate to std in
219+
// https://github.com/rust-lang/rust/pull/92845. This no-op implementation
220+
// should be replaced with the version from std when using no_std.
221+
#[cfg(not(feature = "std"))]
222+
#[lang = "eh_personality"]
223+
unsafe extern "C" fn rust_eh_personality() {}
224+
218225
/// These symbols and functions should not actually be used. `libunwind`,
219226
/// however, requires them to be present so that it can link.
220227
// TODO: Patch these out of libunwind instead.

0 commit comments

Comments
 (0)