From: kennytm Date: Sat, 28 Jul 2018 08:25:04 +0000 (+0800) Subject: Rollup merge of #52769 - sinkuu:stray_test, r=alexcrichton X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=2c088cb03ed3da331e9c4535027be74feb5fb581;hp=-c;p=rust.git Rollup merge of #52769 - sinkuu:stray_test, r=alexcrichton Incorporate a stray test `liballoc/repeat-generic-slice.rs` doesn't seem to be tested (I think it was intended to be placed in `run-pass`). This PR incorporates the test into `liballoc/tests`. --- 2c088cb03ed3da331e9c4535027be74feb5fb581 diff --combined src/liballoc/tests/lib.rs index 91bc778ad4c,d3cbad0284b..618aff963f2 --- a/src/liballoc/tests/lib.rs +++ b/src/liballoc/tests/lib.rs @@@ -24,6 -24,7 +24,7 @@@ #![feature(try_reserve)] #![feature(unboxed_closures)] #![feature(exact_chunks)] + #![feature(repeat_generic_slice)] extern crate alloc_system; extern crate core; @@@ -63,7 -64,7 +64,7 @@@ fn test_boxed_hasher() 5u32.hash(&mut hasher_1); assert_eq!(ordinary_hash, hasher_1.finish()); - let mut hasher_2 = Box::new(DefaultHasher::new()) as Box; + let mut hasher_2 = Box::new(DefaultHasher::new()) as Box; 5u32.hash(&mut hasher_2); assert_eq!(ordinary_hash, hasher_2.finish()); }