Commit 6b524b36 authored by Dan Gohman's avatar Dan Gohman

Don't make opaque types like FILE and DIR copyable.

Also, locale_t is a typedef for a pointer to an opaque struct, so
represent it that way explicitly.
parent 49c0dc98
......@@ -68,30 +68,17 @@ pub type __wasi_userdata_t = u64;
pub type __wasi_whence_t = u8;
pub type __wasi_preopentype_t = u8;
#[allow(missing_copy_implementations)]
#[cfg_attr(feature = "extra_traits", derive(Debug))]
pub enum FILE {}
impl ::Copy for FILE {}
impl ::Clone for FILE {
fn clone(&self) -> FILE {
*self
}
}
#[allow(missing_copy_implementations)]
#[cfg_attr(feature = "extra_traits", derive(Debug))]
pub enum DIR {}
impl ::Copy for DIR {}
impl ::Clone for DIR {
fn clone(&self) -> DIR {
*self
}
}
#[allow(missing_copy_implementations)]
#[cfg_attr(feature = "extra_traits", derive(Debug))]
pub enum locale_t {}
impl ::Copy for locale_t {}
impl ::Clone for locale_t {
fn clone(&self) -> locale_t {
*self
}
}
pub enum __locale_struct {}
pub type locale_t = *mut __locale_struct;
s! {
#[repr(align(8))]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment