Skip to content

Commit e0e906b

Browse files
committed
Fix UI tests
Some UI tests started failing after moving iterator adapters to different modules.
1 parent 0dc187c commit e0e906b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/test/ui/issues/issue-31173.stderr

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ error[E0599]: no method named `collect` found for struct `Cloned<TakeWhile<&mut
1313
LL | .collect();
1414
| ^^^^^^^ method not found in `Cloned<TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:6:39: 9:6]>>`
1515
|
16-
::: $SRC_DIR/core/src/iter/adapters/mod.rs:LL:COL
16+
::: $SRC_DIR/core/src/iter/adapters/cloned.rs:LL:COL
1717
|
1818
LL | pub struct Cloned<I> {
1919
| -------------------- doesn't satisfy `_: Iterator`
20-
...
20+
|
21+
::: $SRC_DIR/core/src/iter/adapters/take_while.rs:LL:COL
22+
|
2123
LL | pub struct TakeWhile<I, P> {
2224
| -------------------------- doesn't satisfy `<_ as Iterator>::Item = &_`
2325
|

src/test/ui/mismatched_types/issue-36053-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LL | once::<&str>("str").fuse().filter(|a: &str| true).count();
1515
| doesn't satisfy `<_ as FnOnce<(&&str,)>>::Output = bool`
1616
| doesn't satisfy `_: FnMut<(&&str,)>`
1717
|
18-
::: $SRC_DIR/core/src/iter/adapters/mod.rs:LL:COL
18+
::: $SRC_DIR/core/src/iter/adapters/filter.rs:LL:COL
1919
|
2020
LL | pub struct Filter<I, P> {
2121
| ----------------------- doesn't satisfy `_: Iterator`

0 commit comments

Comments
 (0)