Skip to content

Commit 890ed5c

Browse files
committed
Fallout in tests
1 parent c4edd0c commit 890ed5c

File tree

108 files changed

+154
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+154
-142
lines changed

src/test/auxiliary/issue-14422.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mod src {
2323
pub mod hidden_core {
2424
use super::aliases::B;
2525

26-
#[derive(Copy)]
26+
#[derive(Copy, Clone)]
2727
pub struct A;
2828

2929
pub fn make() -> B { A }

src/test/auxiliary/issue13213aux.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
pub use private::P;
1515

16-
#[derive(Copy)]
16+
#[derive(Copy, Clone)]
1717
pub struct S {
1818
p: P,
1919
}
2020

2121
mod private {
22-
#[derive(Copy)]
22+
#[derive(Copy, Clone)]
2323
pub struct P {
2424
p: i32,
2525
}

src/test/auxiliary/method_self_arg1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static mut COUNT: u64 = 1;
1717

1818
pub fn get_count() -> u64 { unsafe { COUNT } }
1919

20-
#[derive(Copy)]
20+
#[derive(Copy, Clone)]
2121
pub struct Foo;
2222

2323
impl Foo {

src/test/auxiliary/method_self_arg2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static mut COUNT: u64 = 1;
1717

1818
pub fn get_count() -> u64 { unsafe { COUNT } }
1919

20-
#[derive(Copy)]
20+
#[derive(Copy, Clone)]
2121
pub struct Foo;
2222

2323
impl Foo {

src/test/auxiliary/struct_variant_xc_aux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![crate_name="struct_variant_xc_aux"]
1212
#![crate_type = "lib"]
1313

14-
#[derive(Copy)]
14+
#[derive(Copy, Clone)]
1515
pub enum Enum {
1616
Variant(u8),
1717
StructVariant { arg: u8 }

src/test/auxiliary/xcrate_unit_struct.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@
1212

1313
// used by the rpass test
1414

15-
#[derive(Copy)]
15+
#[derive(Copy, Clone)]
1616
pub struct Struct;
1717

18-
#[derive(Copy)]
18+
#[derive(Copy, Clone)]
1919
pub enum Unit {
2020
UnitVariant,
2121
Argument(Struct)
2222
}
2323

24-
#[derive(Copy)]
24+
#[derive(Copy, Clone)]
2525
pub struct TupleStruct(pub usize, pub &'static str);
2626

2727
// used by the cfail test
2828

29-
#[derive(Copy)]
29+
#[derive(Copy, Clone)]
3030
pub struct StructWithFields {
3131
foo: isize,
3232
}
3333

34-
#[derive(Copy)]
34+
#[derive(Copy, Clone)]
3535
pub enum EnumWithVariants {
3636
EnumVariant,
3737
EnumVariantArg(isize)

src/test/bench/noise.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use std::f32::consts::PI;
1818
use std::num::Float;
1919
use std::rand::{Rng, StdRng};
2020

21-
#[derive(Copy)]
21+
#[derive(Copy, Clone)]
2222
struct Vec2 {
2323
x: f32,
2424
y: f32,

src/test/bench/shootout-chameneos-redux.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn print_complements() {
5454
}
5555
}
5656

57-
#[derive(Copy)]
57+
#[derive(Copy, Clone)]
5858
enum Color {
5959
Red,
6060
Yellow,
@@ -72,7 +72,7 @@ impl fmt::Debug for Color {
7272
}
7373
}
7474

75-
#[derive(Copy)]
75+
#[derive(Copy, Clone)]
7676
struct CreatureInfo {
7777
name: usize,
7878
color: Color

src/test/bench/shootout-fannkuch-redux.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ fn next_permutation(perm: &mut [i32], count: &mut [i32]) {
6363
}
6464
}
6565

66-
#[derive(Copy)]
66+
#[derive(Copy, Clone)]
6767
struct P {
6868
p: [i32; 16],
6969
}
7070

71-
#[derive(Copy)]
71+
#[derive(Copy, Clone)]
7272
struct Perm {
7373
cnt: [i32; 16],
7474
fact: [u32; 16],

src/test/bench/shootout-fasta-redux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ fn sum_and_scale(a: &'static [AminoAcid]) -> Vec<AminoAcid> {
105105
result
106106
}
107107

108-
#[derive(Copy)]
108+
#[derive(Copy, Clone)]
109109
struct AminoAcid {
110110
c: u8,
111111
p: f32,

0 commit comments

Comments
 (0)