Skip to content

Commit 6aa5237

Browse files
committed
Add unused modules to libcoretest
1 parent be3d390 commit 6aa5237

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

src/libcoretest/clone.rs

+3-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -11,8 +11,8 @@
1111
#[test]
1212
fn test_borrowed_clone() {
1313
let x = 5;
14-
let y: &int = &x;
15-
let z: &int = (&y).clone();
14+
let y: &i32 = &x;
15+
let z: &i32 = (&y).clone();
1616
assert_eq!(*z, 5);
1717
}
1818

@@ -23,17 +23,3 @@ fn test_clone_from() {
2323
b.clone_from(&a);
2424
assert_eq!(*b, 5);
2525
}
26-
27-
#[test]
28-
fn test_extern_fn_clone() {
29-
trait Empty {}
30-
impl Empty for int {}
31-
32-
fn test_fn_a() -> f64 { 1.0 }
33-
fn test_fn_b<T: Empty>(x: T) -> T { x }
34-
fn test_fn_c(_: int, _: f64, _: int, _: int, _: int) {}
35-
36-
let _ = test_fn_a.clone();
37-
let _ = test_fn_b::<int>.clone();
38-
let _ = test_fn_c.clone();
39-
}

src/libcoretest/fmt/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
mod num;
1211
mod builders;
12+
mod float;
13+
mod num;
1314

1415
#[test]
1516
fn test_format_flags() {

src/libcoretest/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use core::any::TypeId;
1212

1313
#[test]
1414
fn test_typeid_sized_types() {
15-
struct X; struct Y(uint);
15+
struct X; struct Y(u32);
1616

1717
assert_eq!(TypeId::of::<X>(), TypeId::of::<X>());
1818
assert_eq!(TypeId::of::<Y>(), TypeId::of::<Y>());

src/libcoretest/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ mod array;
5454
mod atomic;
5555
mod cell;
5656
mod char;
57+
mod clone;
5758
mod cmp;
5859
mod fmt;
5960
mod hash;
61+
mod intrinsics;
6062
mod iter;
6163
mod mem;
6264
mod nonzero;

0 commit comments

Comments
 (0)