Skip to content

Commit 76b535c

Browse files
committed
Adjust clippy
1 parent ca70b9c commit 76b535c

File tree

6 files changed

+5
-11
lines changed

6 files changed

+5
-11
lines changed

src/tools/clippy/tests/ui/crashes/ice-10972-tait.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/tools/clippy/tests/ui/implied_bounds_in_impls.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ impl Atpit for () {
192192

193193
type Tait = impl DerefMut;
194194
//~^ implied_bounds_in_impls
195+
#[define_opaques(Tait)]
195196
fn define() -> Tait {
196197
&mut [] as &mut [()]
197198
}

src/tools/clippy/tests/ui/implied_bounds_in_impls.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ impl Atpit for () {
192192

193193
type Tait = impl Deref + DerefMut;
194194
//~^ implied_bounds_in_impls
195+
#[define_opaques(Tait)]
195196
fn define() -> Tait {
196197
&mut [] as &mut [()]
197198
}

src/tools/clippy/tests/ui/missing_const_for_fn/cant_be_const.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ mod msrv {
207207
mod with_ty_alias {
208208
type Foo = impl std::fmt::Debug;
209209

210+
#[define_opaques(Foo)]
210211
fn foo(_: Foo) {
211212
let _: Foo = 1;
212213
}

src/tools/clippy/tests/ui/new_ret_no_self_overflow.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mod issue10041 {
1717
struct Bomb2;
1818

1919
impl Bomb2 {
20+
#[define_opaques(X)]
2021
pub fn new() -> X {
2122
//~^ ERROR: overflow evaluating the requirement
2223
0i32

src/tools/clippy/tests/ui/new_ret_no_self_overflow.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0275]: overflow evaluating the requirement `<i32 as std::ops::Add>::Output == issue10041::X`
2-
--> tests/ui/new_ret_no_self_overflow.rs:20:25
2+
--> tests/ui/new_ret_no_self_overflow.rs:21:25
33
|
44
LL | pub fn new() -> X {
55
| ^

0 commit comments

Comments
 (0)