Skip to content

Commit 9f3679f

Browse files
committed
Apply review feedback
1 parent 04f24b7 commit 9f3679f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libpanic_unwind/seh.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static mut TYPE_DESCRIPTOR: _TypeDescriptor = _TypeDescriptor {
237237
macro_rules! define_cleanup {
238238
($abi:tt) => {
239239
unsafe extern $abi fn exception_cleanup(e: *mut Exception) {
240-
if let Some(b) = e.read().data {
240+
if let Exception { data: Some(b) } = e.read() {
241241
drop(b);
242242
super::__rust_drop_panic();
243243
}

src/librustc_codegen_llvm/intrinsic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ fn codegen_gnu_try(
10241024
// Codegens the shims described above:
10251025
//
10261026
// bx:
1027-
// invoke %func(%data) normal %normal unwind %catch
1027+
// invoke %try_func(%data) normal %normal unwind %catch
10281028
//
10291029
// normal:
10301030
// ret 0

0 commit comments

Comments
 (0)