Skip to content

Commit 3e741ce

Browse files
committed
Another test fix
1 parent 277fb54 commit 3e741ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_arena/src/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub fn bench_copy(b: &mut Bencher) {
9393
#[bench]
9494
pub fn bench_copy_nonarena(b: &mut Bencher) {
9595
b.iter(|| {
96-
let _: Box<_> = box (Point { x: 1, y: 2, z: 3 });
96+
let _: Box<_> = Box::new(Point { x: 1, y: 2, z: 3 });
9797
})
9898
}
9999

@@ -227,6 +227,6 @@ pub fn bench_noncopy(b: &mut Bencher) {
227227
pub fn bench_noncopy_nonarena(b: &mut Bencher) {
228228
b.iter(|| {
229229
let _: Box<_> =
230-
box (Noncopy { string: "hello world".to_string(), array: vec![1, 2, 3, 4, 5] });
230+
Box::new(Noncopy { string: "hello world".to_string(), array: vec![1, 2, 3, 4, 5] });
231231
})
232232
}

0 commit comments

Comments
 (0)