Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed @no-rustfix annotation and updated suggestions to multipart_suggestion as required by #13099 #13216

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#![deny(clippy::index_refutable_slice)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

fn below_limit() {
let slice: Option<&[u32]> = Some(&[1, 2, 3]);
if let Some(slice) = slice {
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/crashes/ice-3717.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#![deny(clippy::implicit_hasher)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

use std::collections::HashSet;

fn main() {}
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/derivable_impls.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#![allow(dead_code)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

use std::collections::HashMap;

struct FooDefault<'a> {
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/index_refutable_slice/if_let_slice_binding.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#![deny(clippy::index_refutable_slice)]
#![allow(clippy::uninlined_format_args)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

enum SomeEnum<T> {
One(T),
Two(T),
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/index_refutable_slice/slice_indexing_in_macro.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#![deny(clippy::index_refutable_slice)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

extern crate if_chain;
use if_chain::if_chain;

Expand Down
2 changes: 0 additions & 2 deletions tests/ui/let_unit.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#![warn(clippy::let_unit_value)]
#![allow(unused, clippy::no_effect, clippy::needless_late_init, path_statements)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

macro_rules! let_and_return {
($n:expr) => {{
let ret = $n;
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/manual_assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
//@[edition2018] edition:2018
//@[edition2021] edition:2021

//@no-rustfix: need to change the suggestion to a multipart suggestion

#![warn(clippy::manual_assert)]
#![allow(dead_code, unused_doc_comments)]
#![allow(clippy::nonminimal_bool, clippy::uninlined_format_args, clippy::useless_vec)]
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/manual_async_fn.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#![warn(clippy::manual_async_fn)]
#![allow(clippy::needless_pub_self, unused)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

use std::future::Future;

fn fut() -> impl Future<Output = i32> {
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/manual_split_once.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#![warn(clippy::manual_split_once)]
#![allow(unused, clippy::iter_skip_next, clippy::iter_nth_zero)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

extern crate itertools;

#[allow(unused_imports)]
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/match_same_arms2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
clippy::match_like_matches_macro
)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

fn bar<T>(_: T) {}
fn foo() -> bool {
unimplemented!()
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/significant_drop_tightening.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#![warn(clippy::significant_drop_tightening)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

use std::sync::Mutex;

pub fn complex_return_triggers_the_lint() -> i32 {
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/unnecessary_iter_cloned.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#![allow(unused_assignments)]
#![warn(clippy::unnecessary_to_owned)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

#[allow(dead_code)]
#[derive(Clone, Copy)]
enum FileType {
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/unnecessary_to_owned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
)]
#![warn(clippy::unnecessary_to_owned, clippy::redundant_clone)]

//@no-rustfix: need to change the suggestion to a multipart suggestion

use std::borrow::Cow;
use std::ffi::{CStr, CString, OsStr, OsString};
use std::ops::Deref;
Expand Down
Loading