Skip to content

Commit f718b51

Browse files
committed
Update chalk tests
1 parent caa10dc commit f718b51

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+119
-112
lines changed

src/test/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// NOTE: rustc cannot currently handle bounds of the form `for<'a> <Foo as Bar<'a>>::Assoc: Baz`.
22
// This should hopefully be fixed with Chalk.
3-
// ignore-compare-mode-chalk
43

54
#![feature(associated_type_bounds)]
65

src/test/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: `<<Self as Case1>::C as Iterator>::Item` cannot be sent between threads safely
2-
--> $DIR/bad-bounds-on-assoc-in-trait.rs:27:36
2+
--> $DIR/bad-bounds-on-assoc-in-trait.rs:26:36
33
|
44
LL | type C: Clone + Iterator<Item: Send + Iterator<Item: for<'a> Lam<&'a u8, App: Debug>> + Sync>;
55
| ^^^^ `<<Self as Case1>::C as Iterator>::Item` cannot be sent between threads safely
@@ -11,7 +11,7 @@ LL | trait Case1 where <<Self as Case1>::C as Iterator>::Item: Send {
1111
| ++++++++++++++++++++++++++++++++++++++++++++++++++
1212

1313
error[E0277]: `<<Self as Case1>::C as Iterator>::Item` is not an iterator
14-
--> $DIR/bad-bounds-on-assoc-in-trait.rs:27:43
14+
--> $DIR/bad-bounds-on-assoc-in-trait.rs:26:43
1515
|
1616
LL | type C: Clone + Iterator<Item: Send + Iterator<Item: for<'a> Lam<&'a u8, App: Debug>> + Sync>;
1717
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<<Self as Case1>::C as Iterator>::Item` is not an iterator
@@ -23,7 +23,7 @@ LL | trait Case1 where <<Self as Case1>::C as Iterator>::Item: Iterator {
2323
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++
2424

2525
error[E0277]: `<<Self as Case1>::C as Iterator>::Item` cannot be shared between threads safely
26-
--> $DIR/bad-bounds-on-assoc-in-trait.rs:27:93
26+
--> $DIR/bad-bounds-on-assoc-in-trait.rs:26:93
2727
|
2828
LL | type C: Clone + Iterator<Item: Send + Iterator<Item: for<'a> Lam<&'a u8, App: Debug>> + Sync>;
2929
| ^^^^ `<<Self as Case1>::C as Iterator>::Item` cannot be shared between threads safely

src/test/ui/associated-type-bounds/trait-params.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// build-pass (FIXME(62277): could be check-pass?)
2-
// ignore-compare-mode-chalk
32

43
#![feature(associated_type_bounds)]
54

src/test/ui/associated-type-bounds/union-bounds.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// run-pass
2-
// ignore-compare-mode-chalk
32

43
#![feature(associated_type_bounds)]
54
#![feature(untagged_unions)]

src/test/ui/associated-types/associated-types-stream.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// run-pass
22
// Test references to the trait `Stream` in the bounds for associated
33
// types defined on `Stream`. Issue #20551.
4-
// ignore-compare-mode-chalk
5-
64

75
trait Stream {
86
type Car;

src/test/ui/associated-types/hr-associated-type-bound-param-2.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ignore-compare-mode-chalk
21
trait Z<'a, T: ?Sized>
32
where
43
T: Z<'a, u16>,

src/test/ui/associated-types/hr-associated-type-bound-param-2.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0277]: the trait bound `str: Clone` is not satisfied
2-
--> $DIR/hr-associated-type-bound-param-2.rs:4:8
2+
--> $DIR/hr-associated-type-bound-param-2.rs:3:8
33
|
44
LL | T: Z<'a, u16>,
55
| ^^^^^^^^^^ the trait `Clone` is not implemented for `str`
66
|
77
note: required by a bound in `Z`
8-
--> $DIR/hr-associated-type-bound-param-2.rs:7:35
8+
--> $DIR/hr-associated-type-bound-param-2.rs:6:35
99
|
1010
LL | trait Z<'a, T: ?Sized>
1111
| - required by a bound in this
@@ -14,13 +14,13 @@ LL | for<'b> <T as Z<'b, u16>>::W: Clone,
1414
| ^^^^^ required by this bound in `Z`
1515

1616
error[E0277]: the trait bound `str: Clone` is not satisfied
17-
--> $DIR/hr-associated-type-bound-param-2.rs:4:8
17+
--> $DIR/hr-associated-type-bound-param-2.rs:3:8
1818
|
1919
LL | T: Z<'a, u16>,
2020
| ^^^^^^^^^^ the trait `Clone` is not implemented for `str`
2121
|
2222
note: required by a bound in `Z`
23-
--> $DIR/hr-associated-type-bound-param-2.rs:7:35
23+
--> $DIR/hr-associated-type-bound-param-2.rs:6:35
2424
|
2525
LL | trait Z<'a, T: ?Sized>
2626
| - required by a bound in this
@@ -29,13 +29,13 @@ LL | for<'b> <T as Z<'b, u16>>::W: Clone,
2929
| ^^^^^ required by this bound in `Z`
3030

3131
error[E0277]: the trait bound `str: Clone` is not satisfied
32-
--> $DIR/hr-associated-type-bound-param-2.rs:16:14
32+
--> $DIR/hr-associated-type-bound-param-2.rs:15:14
3333
|
3434
LL | type W = str;
3535
| ^^^ the trait `Clone` is not implemented for `str`
3636
|
3737
note: required by a bound in `Z`
38-
--> $DIR/hr-associated-type-bound-param-2.rs:7:35
38+
--> $DIR/hr-associated-type-bound-param-2.rs:6:35
3939
|
4040
LL | trait Z<'a, T: ?Sized>
4141
| - required by a bound in this

src/test/ui/associated-types/hr-associated-type-bound-param-5.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ignore-compare-mode-chalk
21
trait Cycle: Sized {
32
type Next: Cycle<Next = Self>;
43
}

src/test/ui/associated-types/hr-associated-type-bound-param-5.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0277]: the trait bound `str: Clone` is not satisfied
2-
--> $DIR/hr-associated-type-bound-param-5.rs:27:14
2+
--> $DIR/hr-associated-type-bound-param-5.rs:26:14
33
|
44
LL | type U = str;
55
| ^^^ the trait `Clone` is not implemented for `str`
66
|
77
note: required by a bound in `X`
8-
--> $DIR/hr-associated-type-bound-param-5.rs:18:45
8+
--> $DIR/hr-associated-type-bound-param-5.rs:17:45
99
|
1010
LL | trait X<'a, T: Cycle + for<'b> X<'b, T>>
1111
| - required by a bound in this
@@ -14,13 +14,13 @@ LL | for<'b> <T::Next as X<'b, T::Next>>::U: Clone,
1414
| ^^^^^ required by this bound in `X`
1515

1616
error[E0277]: the trait bound `str: Clone` is not satisfied
17-
--> $DIR/hr-associated-type-bound-param-5.rs:32:14
17+
--> $DIR/hr-associated-type-bound-param-5.rs:31:14
1818
|
1919
LL | type U = str;
2020
| ^^^ the trait `Clone` is not implemented for `str`
2121
|
2222
note: required by a bound in `X`
23-
--> $DIR/hr-associated-type-bound-param-5.rs:18:45
23+
--> $DIR/hr-associated-type-bound-param-5.rs:17:45
2424
|
2525
LL | trait X<'a, T: Cycle + for<'b> X<'b, T>>
2626
| - required by a bound in this

src/test/ui/associated-types/issue-50301.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Tests that HRTBs are correctly accepted -- https://github.com/rust-lang/rust/issues/50301
22
// check-pass
3-
// ignore-compare-mode-chalk
43
trait Trait
54
where
65
for<'a> &'a Self::IntoIter: IntoIterator<Item = u32>,

0 commit comments

Comments
 (0)