Skip to content

Commit fcd1f53

Browse files
committed
Add some missing Copy implementations
1 parent a16f60b commit fcd1f53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustrt/unwind.rs

+6
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,18 @@ pub mod eabi {
400400
#[allow(non_camel_case_types, non_snake_case)]
401401
pub mod eabi {
402402
pub use self::EXCEPTION_DISPOSITION::*;
403+
use core::prelude::*;
403404
use libunwind as uw;
404405
use libc::{c_void, c_int};
405406

406407
#[repr(C)]
408+
#[allow(missing_copy_implementations)]
407409
pub struct EXCEPTION_RECORD;
408410
#[repr(C)]
411+
#[allow(missing_copy_implementations)]
409412
pub struct CONTEXT;
410413
#[repr(C)]
414+
#[allow(missing_copy_implementations)]
411415
pub struct DISPATCHER_CONTEXT;
412416

413417
#[repr(C)]
@@ -418,6 +422,8 @@ pub mod eabi {
418422
ExceptionCollidedUnwind
419423
}
420424

425+
impl Copy for EXCEPTION_DISPOSITION {}
426+
421427
type _Unwind_Personality_Fn =
422428
extern "C" fn(
423429
version: c_int,

0 commit comments

Comments
 (0)