Skip to content

Commit d4936ed

Browse files
committed
Add Copy to bitflags-generated structures
1 parent c38e73f commit d4936ed

File tree

6 files changed

+1
-8
lines changed

6 files changed

+1
-8
lines changed

src/librustc/middle/resolve.rs

-2
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,6 @@ bitflags! {
633633
}
634634
}
635635

636-
impl Copy for DefModifiers {}
637-
638636
// Records a possibly-private type definition.
639637
#[deriving(Clone)]
640638
struct TypeNsDef {

src/librustc/middle/ty.rs

-2
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,6 @@ bitflags! {
800800
}
801801
}
802802

803-
impl Copy for TypeFlags {}
804-
805803
#[deriving(Show)]
806804
pub struct TyS<'tcx> {
807805
pub sty: sty<'tcx>,

src/librustc_llvm/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ bitflags! {
149149
}
150150
}
151151

152-
impl Copy for Attribute {}
153152

154153
#[repr(u64)]
155154
pub enum OtherAttribute {

src/libstd/bitflags.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ macro_rules! bitflags {
121121
($(#[$attr:meta])* flags $BitFlags:ident: $T:ty {
122122
$($(#[$Flag_attr:meta])* const $Flag:ident = $value:expr),+
123123
}) => {
124-
#[deriving(PartialEq, Eq, Clone, PartialOrd, Ord, Hash)]
124+
#[deriving(Copy, PartialEq, Eq, Clone, PartialOrd, Ord, Hash)]
125125
$(#[$attr])*
126126
pub struct $BitFlags {
127127
bits: $T,

src/libstd/io/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,6 @@ bitflags! {
19041904
}
19051905
}
19061906

1907-
impl Copy for FilePermission {}
19081907

19091908
impl Default for FilePermission {
19101909
#[inline]

src/libsyntax/parse/parser.rs

-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ bitflags! {
9898
}
9999
}
100100

101-
impl Copy for Restrictions {}
102101

103102
type ItemInfo = (Ident, Item_, Option<Vec<Attribute> >);
104103

0 commit comments

Comments
 (0)