Skip to content

Commit ed1625f

Browse files
committed
Ignore test hrtb/issue-30786.rs in Polonius compare mode
1 parent 0bd2b32 commit ed1625f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: implementation of `Stream` is not general enough
2-
--> $DIR/issue-30786.rs:107:22
2+
--> $DIR/issue-30786.rs:108:22
33
|
44
LL | let map = source.map(|x: &_| x);
55
| ^^^
66
|
7-
= note: `Stream` would have to be implemented for the type `&'0 mut Map<Repeat, [closure@$DIR/issue-30786.rs:107:26: 107:35]>`, for any lifetime `'0`
8-
= note: but `Stream` is actually implemented for the type `&'1 mut Map<Repeat, [closure@$DIR/issue-30786.rs:107:26: 107:35]>`, for some specific lifetime `'1`
7+
= note: `Stream` would have to be implemented for the type `&'0 mut Map<Repeat, [closure@$DIR/issue-30786.rs:108:26: 108:35]>`, for any lifetime `'0`
8+
= note: but `Stream` is actually implemented for the type `&'1 mut Map<Repeat, [closure@$DIR/issue-30786.rs:108:26: 108:35]>`, for some specific lifetime `'1`
99

1010
error: aborting due to previous error
1111

src/test/ui/hrtb/issue-30786.nll.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: higher-ranked subtype error
2-
--> $DIR/issue-30786.rs:111:18
2+
--> $DIR/issue-30786.rs:112:18
33
|
44
LL | let filter = map.filter(|x: &_| true);
55
| ^^^^^^^^^^^^^^^^^^^^^^^^
66

77
error: higher-ranked subtype error
8-
--> $DIR/issue-30786.rs:113:17
8+
--> $DIR/issue-30786.rs:114:17
99
|
1010
LL | let count = filter.count(); // Assert that we still have a valid stream.
1111
| ^^^^^^^^^^^^^^

src/test/ui/hrtb/issue-30786.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// revisions, don't worry about the --compare-mode=nll on this test.
1313

1414
// ignore-compare-mode-nll
15+
// ignore-compare-mode-polonius
1516

1617
//[nll]compile-flags: -Z borrowck=mir
1718

0 commit comments

Comments
 (0)