Skip to content

Commit f740aab

Browse files
committed
Apply test fixes needed for the update to nightly-2024-06-17
1 parent 8b0d354 commit f740aab

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

tests/ui/crashes/ice-6252.stderr

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ error[E0412]: cannot find type `PhantomData` in this scope
44
LL | _n: PhantomData,
55
| ^^^^^^^^^^^ not found in this scope
66
|
7-
help: consider importing one of these items
8-
|
9-
LL + use core::marker::PhantomData;
7+
help: consider importing this struct
108
|
119
LL + use std::marker::PhantomData;
1210
|

tests/ui/new_ret_no_self.rs

+1
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ impl RetOtherSelf<T> {
363363
}
364364
}
365365

366+
#[allow(dependency_on_unit_never_type_fallback)]
366367
mod issue7344 {
367368
struct RetImplTraitSelf<T>(T);
368369

tests/ui/new_ret_no_self.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ LL | | }
8787
| |_________^
8888

8989
error: methods called `new` usually return `Self`
90-
--> tests/ui/new_ret_no_self.rs:380:9
90+
--> tests/ui/new_ret_no_self.rs:381:9
9191
|
9292
LL | / fn new(t: T) -> impl Into<i32> {
9393
LL | |
@@ -96,7 +96,7 @@ LL | | }
9696
| |_________^
9797

9898
error: methods called `new` usually return `Self`
99-
--> tests/ui/new_ret_no_self.rs:402:9
99+
--> tests/ui/new_ret_no_self.rs:403:9
100100
|
101101
LL | / fn new(t: T) -> impl Trait2<(), i32> {
102102
LL | |

0 commit comments

Comments
 (0)