Skip to content

Commit 0b8cee3

Browse files
committed
Use tests instead of $DIR in stderr expected output
1 parent 4d20f8c commit 0b8cee3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/ui/unused_result_ok.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: ignoring a result with `.ok()` is misleading
2-
--> $DIR/unused_result_ok.rs:9:5
2+
--> tests/ui/unused_result_ok.rs:9:5
33
|
44
LL | x.parse::<u32>().ok();
55
| ^^^^^^^^^^^^^^^^^^^^^
@@ -12,7 +12,7 @@ LL | let _ = x.parse::<u32>();
1212
| ~~~~~~~~~~~~~~~~~~~~~~~~
1313

1414
error: ignoring a result with `.ok()` is misleading
15-
--> $DIR/unused_result_ok.rs:18:5
15+
--> tests/ui/unused_result_ok.rs:18:5
1616
|
1717
LL | x . parse::<i32>() . ok ();
1818
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,7 +23,7 @@ LL | let _ = x . parse::<i32>();
2323
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2424

2525
error: ignoring a result with `.ok()` is misleading
26-
--> $DIR/unused_result_ok.rs:34:5
26+
--> tests/ui/unused_result_ok.rs:34:5
2727
|
2828
LL | v!().ok();
2929
| ^^^^^^^^^
@@ -34,7 +34,7 @@ LL | let _ = v!();
3434
| ~~~~~~~~~~~~
3535

3636
error: ignoring a result with `.ok()` is misleading
37-
--> $DIR/unused_result_ok.rs:29:9
37+
--> tests/ui/unused_result_ok.rs:29:9
3838
|
3939
LL | Ok::<(), ()>(()).ok();
4040
| ^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)