From e5fb4c4359de527c6807b64cd7855c9fb1b3176a Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Mon, 5 Aug 2013 19:53:42 +1000 Subject: [PATCH] testsuite: remove incorrect section of 2 test cases. (Also, &const is disappearing.) Fixes #7304. --- src/test/run-pass/coerce-reborrow-imm-vec-arg.rs | 6 ------ src/test/run-pass/coerce-reborrow-imm-vec-rcvr.rs | 7 ------- 2 files changed, 13 deletions(-) diff --git a/src/test/run-pass/coerce-reborrow-imm-vec-arg.rs b/src/test/run-pass/coerce-reborrow-imm-vec-arg.rs index 7fb01006844..b31f0eab2e2 100644 --- a/src/test/run-pass/coerce-reborrow-imm-vec-arg.rs +++ b/src/test/run-pass/coerce-reborrow-imm-vec-arg.rs @@ -12,10 +12,4 @@ fn sum_imm(y: &[int]) -> int { sum(y) } -/* FIXME #7304 -fn sum_const(y: &const [int]) -> int { - sum(y) -} -*/ - pub fn main() {} diff --git a/src/test/run-pass/coerce-reborrow-imm-vec-rcvr.rs b/src/test/run-pass/coerce-reborrow-imm-vec-rcvr.rs index 590cd825020..8a271a4d65f 100644 --- a/src/test/run-pass/coerce-reborrow-imm-vec-rcvr.rs +++ b/src/test/run-pass/coerce-reborrow-imm-vec-rcvr.rs @@ -1,9 +1,3 @@ -/* FIXME #7302 -fn foo(v: &const [uint]) -> ~[uint] { - v.to_owned() -} -*/ - fn bar(v: &mut [uint]) -> ~[uint] { v.to_owned() } @@ -14,7 +8,6 @@ fn bip(v: &[uint]) -> ~[uint] { pub fn main() { let mut the_vec = ~[1u, 2, 3, 100]; -// assert_eq!(the_vec.clone(), foo(the_vec)); assert_eq!(the_vec.clone(), bar(the_vec)); assert_eq!(the_vec.clone(), bip(the_vec)); }