Do not use clippy_utils from UI tests

This commit is contained in:
Samuel Tardieu 2025-05-12 18:23:44 +02:00
parent 2ce5451850
commit 01e08a4c5b
No known key found for this signature in database
GPG key ID: BDDC3208C6FEAFA8
3 changed files with 10 additions and 12 deletions

View file

@ -47,7 +47,6 @@ pulldown-cmark = { version = "0.11", default-features = false, features = ["html
askama = { version = "0.13", default-features = false, features = ["alloc", "config", "derive"] }
# UI test dependencies
clippy_utils = { path = "clippy_utils" }
if_chain = "1.0"
quote = "1.0.25"
syn = { version = "2.0", features = ["full"] }

View file

@ -6,7 +6,6 @@
extern crate proc_macros;
use proc_macros::with_span;
use clippy_utils::is_from_proc_macro;
use std::boxed::Box;
use std::fmt::Display;
use std::future::Future;

View file

@ -1,11 +1,11 @@
error: non-binding `let` without a type annotation
--> tests/ui/let_underscore_untyped.rs:51:5
--> tests/ui/let_underscore_untyped.rs:50:5
|
LL | let _ = a();
| ^^^^^^^^^^^^
|
help: consider adding a type annotation
--> tests/ui/let_underscore_untyped.rs:51:10
--> tests/ui/let_underscore_untyped.rs:50:10
|
LL | let _ = a();
| ^
@ -13,49 +13,49 @@ LL | let _ = a();
= help: to override `-D warnings` add `#[allow(clippy::let_underscore_untyped)]`
error: non-binding `let` without a type annotation
--> tests/ui/let_underscore_untyped.rs:53:5
--> tests/ui/let_underscore_untyped.rs:52:5
|
LL | let _ = b(1);
| ^^^^^^^^^^^^^
|
help: consider adding a type annotation
--> tests/ui/let_underscore_untyped.rs:53:10
--> tests/ui/let_underscore_untyped.rs:52:10
|
LL | let _ = b(1);
| ^
error: non-binding `let` without a type annotation
--> tests/ui/let_underscore_untyped.rs:56:5
--> tests/ui/let_underscore_untyped.rs:55:5
|
LL | let _ = d(&1);
| ^^^^^^^^^^^^^^
|
help: consider adding a type annotation
--> tests/ui/let_underscore_untyped.rs:56:10
--> tests/ui/let_underscore_untyped.rs:55:10
|
LL | let _ = d(&1);
| ^
error: non-binding `let` without a type annotation
--> tests/ui/let_underscore_untyped.rs:58:5
--> tests/ui/let_underscore_untyped.rs:57:5
|
LL | let _ = e();
| ^^^^^^^^^^^^
|
help: consider adding a type annotation
--> tests/ui/let_underscore_untyped.rs:58:10
--> tests/ui/let_underscore_untyped.rs:57:10
|
LL | let _ = e();
| ^
error: non-binding `let` without a type annotation
--> tests/ui/let_underscore_untyped.rs:60:5
--> tests/ui/let_underscore_untyped.rs:59:5
|
LL | let _ = f();
| ^^^^^^^^^^^^
|
help: consider adding a type annotation
--> tests/ui/let_underscore_untyped.rs:60:10
--> tests/ui/let_underscore_untyped.rs:59:10
|
LL | let _ = f();
| ^