Skip to content

Commit 3186514

Browse files
committed
test: Remove @str from the test suite
1 parent cd214ad commit 3186514

14 files changed

+1
-66
lines changed

src/test/compile-fail/estr-subtyping.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,15 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[feature(managed_boxes)];
12-
13-
fn wants_box(x: @str) { }
1411
fn wants_uniq(x: ~str) { }
1512
fn wants_slice(x: &str) { }
1613

17-
fn has_box(x: @str) {
18-
wants_box(x);
19-
wants_uniq(x); //~ ERROR str storage differs: expected `~` but found `@`
20-
wants_slice(x);
21-
}
22-
2314
fn has_uniq(x: ~str) {
24-
wants_box(x); //~ ERROR str storage differs: expected `@` but found `~`
2515
wants_uniq(x);
2616
wants_slice(x);
2717
}
2818

2919
fn has_slice(x: &str) {
30-
wants_box(x); //~ ERROR str storage differs: expected `@` but found `&`
3120
wants_uniq(x); //~ ERROR str storage differs: expected `~` but found `&`
3221
wants_slice(x);
3322
}

src/test/compile-fail/lint-heap-memory.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ fn main() {
2525
@[1]; //~ ERROR type uses managed
2626
//~^ ERROR type uses managed
2727
fn f(_: @Clone) {} //~ ERROR type uses managed
28-
@""; //~ ERROR type uses managed
2928
//~^ ERROR type uses managed
3029

3130
~2; //~ ERROR type uses owned

src/test/run-pass/auto-ref-slice-plus-ref.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ pub fn main() {
3434
(&[1]).test_imm();
3535
("test").test_imm();
3636
(~"test").test_imm();
37-
(@"test").test_imm();
3837
(&"test").test_imm();
3938

4039
// FIXME: Other types of mutable vecs don't currently exist

src/test/run-pass/borrowed-ptr-pattern-infallible.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
#[feature(managed_boxes)];
1212

1313
pub fn main() {
14-
let (&x, &y, &z) = (&3, &'a', &@"No pets!");
14+
let (&x, &y) = (&3, &'a');
1515
assert_eq!(x, 3);
1616
assert_eq!(y, 'a');
17-
assert_eq!(z, @"No pets!");
1817
}

src/test/run-pass/borrowed-ptr-pattern.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ fn foo<T:Clone>(x: &T) -> T{
1717
pub fn main() {
1818
assert_eq!(foo(&3), 3);
1919
assert_eq!(foo(&'a'), 'a');
20-
assert_eq!(foo(&@"Dogs rule, cats drool"), @"Dogs rule, cats drool");
2120
}

src/test/run-pass/estr-shared.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/test/run-pass/ifmt.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ pub fn main() {
5858
t!(format!("{}", 1.0f64), "1");
5959
t!(format!("{}", "a"), "a");
6060
t!(format!("{}", ~"a"), "a");
61-
t!(format!("{}", @"a"), "a");
6261
t!(format!("{}", false), "false");
6362
t!(format!("{}", 'a'), "a");
6463
@@ -73,7 +72,6 @@ pub fn main() {
7372
t!(format!("{:X}", 10u), "A");
7473
t!(format!("{:s}", "foo"), "foo");
7574
t!(format!("{:s}", ~"foo"), "foo");
76-
t!(format!("{:s}", @"foo"), "foo");
7775
t!(format!("{:p}", 0x1234 as *int), "0x1234");
7876
t!(format!("{:p}", 0x1234 as *mut int), "0x1234");
7977
t!(format!("{:d}", A), "aloha");

src/test/run-pass/issue-3574.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ pub fn main()
2626
{
2727
assert!(compare("foo", "foo"));
2828
assert!(compare(~"foo", ~"foo"));
29-
assert!(compare(@"foo", @"foo"));
3029
}

src/test/run-pass/issue-4092.rs

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/test/run-pass/match-borrowed_str.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,15 @@ fn g2(ref_1: &str, ref_2: &str) -> ~str {
4343
}
4444

4545
pub fn main() {
46-
assert_eq!(f1(@"a"), ~"found a");
4746
assert_eq!(f1(~"b"), ~"found b");
4847
assert_eq!(f1(&"c"), ~"not found");
4948
assert_eq!(f1("d"), ~"not found");
50-
assert_eq!(f2(@"a"), ~"found a");
5149
assert_eq!(f2(~"b"), ~"found b");
5250
assert_eq!(f2(&"c"), ~"not found (c)");
5351
assert_eq!(f2("d"), ~"not found (d)");
54-
assert_eq!(g1(@"a", @"b"), ~"found a,b");
5552
assert_eq!(g1(~"b", ~"c"), ~"found b,c");
5653
assert_eq!(g1(&"c", &"d"), ~"not found");
5754
assert_eq!(g1("d", "e"), ~"not found");
58-
assert_eq!(g2(@"a", @"b"), ~"found a,b");
5955
assert_eq!(g2(~"b", ~"c"), ~"found b,c");
6056
assert_eq!(g2(&"c", &"d"), ~"not found (c, d)");
6157
assert_eq!(g2("d", "e"), ~"not found (d, e)");

src/test/run-pass/nullable-pointer-iotareduction.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ pub fn main() {
7979
check_type!(~18: ~int);
8080
check_type!(@19: @int);
8181
check_type!(~"foo": ~str);
82-
check_type!(@"bar": @str);
8382
check_type!(~[20, 22]: ~[int]);
8483
check_type!(@[]: @[int]);
8584
check_type!(@[24, 26]: @[int]);

src/test/run-pass/nullable-pointer-size.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ pub fn main() {
4141
check_type!(~int);
4242
check_type!(@int);
4343
check_type!(~str);
44-
check_type!(@str);
4544
check_type!(~[int]);
4645
check_type!(@[int]);
4746
check_type!(extern fn());

src/test/run-pass/reflect-visit-data.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ impl<V:TyVisitor + movable_ptr> TyVisitor for ptr_visit_adaptor<V> {
180180
}
181181

182182
fn visit_estr_box(&mut self) -> bool {
183-
self.align_to::<@str>();
184-
if ! self.inner().visit_estr_box() { return false; }
185-
self.bump_past::<@str>();
186183
true
187184
}
188185

src/test/run-pass/send_str_hashmap.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ pub fn main() {
6363
assert_eq!(map.find_equiv(&(~"cde")), Some(&c));
6464
assert_eq!(map.find_equiv(&(~"def")), Some(&d));
6565
66-
assert_eq!(map.find_equiv(&(@"abc")), Some(&a));
67-
assert_eq!(map.find_equiv(&(@"bcd")), Some(&b));
68-
assert_eq!(map.find_equiv(&(@"cde")), Some(&c));
69-
assert_eq!(map.find_equiv(&(@"def")), Some(&d));
70-
7166
assert_eq!(map.find_equiv(&SendStrStatic("abc")), Some(&a));
7267
assert_eq!(map.find_equiv(&SendStrStatic("bcd")), Some(&b));
7368
assert_eq!(map.find_equiv(&SendStrStatic("cde")), Some(&c));

0 commit comments

Comments
 (0)