Skip to content

Commit

Permalink
Apply test fixes needed for the update to nightly-2024-06-17
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jun 18, 2024
1 parent 8b0d354 commit f740aab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions tests/ui/crashes/ice-6252.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ error[E0412]: cannot find type `PhantomData` in this scope
LL | _n: PhantomData,
| ^^^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
LL + use core::marker::PhantomData;
help: consider importing this struct
|
LL + use std::marker::PhantomData;
|
Expand Down
1 change: 1 addition & 0 deletions tests/ui/new_ret_no_self.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ impl RetOtherSelf<T> {
}
}

#[allow(dependency_on_unit_never_type_fallback)]
mod issue7344 {
struct RetImplTraitSelf<T>(T);

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/new_ret_no_self.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ LL | | }
| |_________^

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

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

0 comments on commit f740aab

Please sign in to comment.