diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-01-27 22:24:02 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-01-27 22:24:02 +0530 |
| commit | 51ff9e82ec4ffe4d80765707e7348f34cecdc250 (patch) | |
| tree | a71aba9870dda909a76530b8765da538c6c2907b /src/libstd | |
| parent | 8418725b0daf6defc98137695e4fcc660f3cdb8f (diff) | |
| parent | bff462302b3e0a8f68c14cad2806c7ff5005364e (diff) | |
| download | rust-51ff9e82ec4ffe4d80765707e7348f34cecdc250.tar.gz rust-51ff9e82ec4ffe4d80765707e7348f34cecdc250.zip | |
Rollup merge of #21602 - japaric:derive-copy, r=alexcrichton
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/os.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index f041d2799ab..6dde65854d7 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -815,6 +815,8 @@ pub struct MemoryMap { } /// Type of memory map +#[allow(raw_pointer_derive)] +#[derive(Copy)] pub enum MemoryMapKind { /// Virtual memory map. Usually used to change the permissions of a given /// chunk of memory. Corresponds to `VirtualAlloc` on Windows. @@ -825,9 +827,9 @@ pub enum MemoryMapKind { MapVirtual } -impl Copy for MemoryMapKind {} - /// Options the memory map is created with +#[allow(raw_pointer_derive)] +#[derive(Copy)] pub enum MapOption { /// The memory should be readable MapReadable, @@ -854,8 +856,6 @@ pub enum MapOption { MapNonStandardFlags(c_int), } -impl Copy for MapOption {} - /// Possible errors when creating a map. #[derive(Copy, Show)] pub enum MapError { |
