You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#91087 - rukai:fix_test_nll_revisions, r=jackh726
Remove all migrate.nll.stderr files
There are a few ui tests that setup the revisions like:
```rust
// revisions: migrate nll`
// [nll]compile-flags: -Zborrowck=mir
```
However most of them fail to disable the nll compare mode like this:
```rust
// ignore-compare-mode-nll
```
This ends up generating confusing files ending in `.migrate.nll.stderr` because the nll compare mode is run on top of the migrate revision.
This PR fixes this by adding `ignore-compare-mode-nll` to these tests.
I would have just made these tests use compare modes instead but I assume the reason these tests are messing around with revisions instead of just letting the nll compare mode do its thing is to enforce error annotations for both migrate and nll.
Relying on just compare modes would only have the error annotations for migrate.
Copy file name to clipboardExpand all lines: src/test/ui/hrtb/issue-30786.migrate.stderr
+14-14
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
error[E0599]: the method `filterx` exists for struct `Map<Repeat, [closure@$DIR/issue-30786.rs:127:27: 127:36]>`, but its trait bounds were not satisfied
2
-
--> $DIR/issue-30786.rs:128:22
1
+
error[E0599]: the method `filterx` exists for struct `Map<Repeat, [closure@$DIR/issue-30786.rs:126:27: 126:36]>`, but its trait bounds were not satisfied
2
+
--> $DIR/issue-30786.rs:127:22
3
3
|
4
4
LL | pub struct Map<S, F> {
5
5
| --------------------
@@ -8,19 +8,19 @@ LL | pub struct Map<S, F> {
8
8
| doesn't satisfy `_: StreamExt`
9
9
...
10
10
LL | let filter = map.filterx(|x: &_| true);
11
-
| ^^^^^^^ method cannot be called on `Map<Repeat, [closure@$DIR/issue-30786.rs:127:27: 127:36]>` due to unsatisfied trait bounds
11
+
| ^^^^^^^ method cannot be called on `Map<Repeat, [closure@$DIR/issue-30786.rs:126:27: 126:36]>` due to unsatisfied trait bounds
12
12
|
13
13
note: the following trait bounds were not satisfied because of the requirements of the implementation of `StreamExt` for `_`:
LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
20
20
| ^^^^^^^^^ ^
21
21
22
-
error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:140:30: 140:42]>`, but its trait bounds were not satisfied
23
-
--> $DIR/issue-30786.rs:141:24
22
+
error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:139:30: 139:42]>`, but its trait bounds were not satisfied
| ^^^^^^ method cannot be called on `Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:140:30: 140:42]>` due to unsatisfied trait bounds
32
+
| ^^^^^^ method cannot be called on `Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:139:30: 139:42]>` due to unsatisfied trait bounds
33
33
|
34
34
note: the following trait bounds were not satisfied because of the requirements of the implementation of `StreamExt` for `_`:
0 commit comments