Skip to content

Commit 4483ac2

Browse files
committed
Fix windows test that has different stderr output
1 parent 8d92c99 commit 4483ac2

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

tests/ui/inference/issue-71584.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-windows different list of satisfying impls
12
fn main() {
23
let n: u32 = 1;
34
let mut d: u64 = 2;

tests/ui/inference/issue-71584.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0284]: type annotations needed
2-
--> $DIR/issue-71584.rs:4:15
2+
--> $DIR/issue-71584.rs:5:15
33
|
44
LL | d = d % n.into();
55
| - ^^^^

tests/ui/traits/issue-77982.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ignore-windows different list of satisfying impls
12
use std::collections::HashMap;
23

34
fn what() {

tests/ui/traits/issue-77982.stderr

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0283]: type annotations needed
2-
--> $DIR/issue-77982.rs:8:10
2+
--> $DIR/issue-77982.rs:9:10
33
|
44
LL | opts.get(opt.as_ref());
55
| ^^^ ------------ type must be known at this point
@@ -18,7 +18,7 @@ LL | opts.get::<Q>(opt.as_ref());
1818
| +++++
1919

2020
error[E0283]: type annotations needed
21-
--> $DIR/issue-77982.rs:8:10
21+
--> $DIR/issue-77982.rs:9:10
2222
|
2323
LL | opts.get(opt.as_ref());
2424
| ^^^ ------ type must be known at this point
@@ -36,7 +36,7 @@ LL | opts.get::<Q>(opt.as_ref());
3636
| +++++
3737

3838
error[E0283]: type annotations needed
39-
--> $DIR/issue-77982.rs:13:59
39+
--> $DIR/issue-77982.rs:14:59
4040
|
4141
LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(0u32.into())).collect();
4242
| --- ^^^^
@@ -56,13 +56,13 @@ LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(<u32 as Into<T>>::into
5656
| +++++++++++++++++++++++ ~
5757

5858
error[E0283]: type annotations needed for `Box<T>`
59-
--> $DIR/issue-77982.rs:36:9
59+
--> $DIR/issue-77982.rs:37:9
6060
|
6161
LL | let _ = ().foo();
6262
| ^ --- type must be known at this point
6363
|
6464
note: multiple `impl`s satisfying `(): Foo<'_, _>` found
65-
--> $DIR/issue-77982.rs:29:1
65+
--> $DIR/issue-77982.rs:30:1
6666
|
6767
LL | impl Foo<'static, u32> for () {}
6868
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -74,13 +74,13 @@ LL | let _: Box<T> = ().foo();
7474
| ++++++++
7575

7676
error[E0283]: type annotations needed for `Box<T>`
77-
--> $DIR/issue-77982.rs:40:9
77+
--> $DIR/issue-77982.rs:41:9
7878
|
7979
LL | let _ = (&()).bar();
8080
| ^ --- type must be known at this point
8181
|
8282
note: multiple `impl`s satisfying `&(): Bar<'_, _>` found
83-
--> $DIR/issue-77982.rs:32:1
83+
--> $DIR/issue-77982.rs:33:1
8484
|
8585
LL | impl<'a> Bar<'static, u32> for &'a () {}
8686
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)