Rollup merge of #21602 - japaric:derive-copy, r=alexcrichton
This commit is contained in:
commit
51ff9e82ec
99 changed files with 136 additions and 289 deletions
|
|
@ -115,6 +115,7 @@
|
|||
#![feature(box_syntax)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
|
||||
#[derive(Copy)]
|
||||
struct Struct<T> {
|
||||
x: T
|
||||
}
|
||||
|
|
@ -150,5 +151,3 @@ fn main() {
|
|||
|
||||
fn zzz() {()}
|
||||
|
||||
impl<T:Copy> Copy for Struct<T> {}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@
|
|||
#![feature(box_syntax)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
|
||||
#[derive(Copy)]
|
||||
enum Enum {
|
||||
Variant1 { x: u16, y: u16 },
|
||||
Variant2 (u32)
|
||||
|
|
@ -152,5 +153,3 @@ fn main() {
|
|||
|
||||
fn zzz() {()}
|
||||
|
||||
impl Copy for Enum {}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@
|
|||
#![feature(box_syntax)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
|
||||
#[derive(Copy)]
|
||||
struct Struct<T> {
|
||||
x: T
|
||||
}
|
||||
|
|
@ -151,5 +152,3 @@ fn main() {
|
|||
|
||||
fn zzz() {()}
|
||||
|
||||
impl<T:Copy> Copy for Struct<T> {}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@
|
|||
#![feature(box_syntax)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
|
||||
#[derive(Copy)]
|
||||
struct Struct {
|
||||
x: int
|
||||
}
|
||||
|
|
@ -151,5 +152,3 @@ fn main() {
|
|||
|
||||
fn zzz() {()}
|
||||
|
||||
impl Copy for Struct {}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@
|
|||
#![feature(box_syntax)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
|
||||
#[derive(Copy)]
|
||||
struct Struct {
|
||||
x: int
|
||||
}
|
||||
|
|
@ -157,5 +158,3 @@ fn main() {
|
|||
|
||||
fn zzz() {()}
|
||||
|
||||
impl Copy for Struct {}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@
|
|||
#![feature(box_syntax)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
|
||||
#[derive(Copy)]
|
||||
struct TupleStruct(int, f64);
|
||||
|
||||
impl TupleStruct {
|
||||
|
|
@ -149,5 +150,3 @@ fn main() {
|
|||
|
||||
fn zzz() {()}
|
||||
|
||||
impl Copy for TupleStruct {}
|
||||
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@
|
|||
#![feature(box_syntax)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
|
||||
#[derive(Copy)]
|
||||
struct Struct {
|
||||
x: int
|
||||
}
|
||||
|
|
@ -151,5 +152,3 @@ fn main() {
|
|||
|
||||
fn zzz() {()}
|
||||
|
||||
impl Copy for Struct {}
|
||||
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@
|
|||
#![feature(box_syntax)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
|
||||
#[derive(Copy)]
|
||||
struct Struct {
|
||||
x: int
|
||||
}
|
||||
|
|
@ -152,5 +153,3 @@ fn main() {
|
|||
|
||||
fn zzz() {()}
|
||||
|
||||
impl Copy for Struct {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue