Skip to content

Tracking Issue: Fix auto-applicable lint suggestions by using multipart suggestions #13099

Open
@flip1995

Description

@flip1995

Description

#13098 introduced @no-rustfix annotations, that can be removed by changing the suggestion to a multipart suggestion:

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

The affected test files are:

  • ui-toml/max_suggested_slice_pattern_length/index_refutable_slice.rs
  • ui/crashes/ice-3717.rs
  • ui/derivable_impls.rs
  • ui/index_refutable_slice/if_let_slice_binding.rs
  • ui/index_refutable_slice/slice_indexing_in_macro.rs
  • ui/let_unit.rs
  • ui/manual_assert.rs
  • ui/manual_async_fn.rs
  • ui/manual_split_once.rs
  • ui/match_same_arms2.rs
  • ui/significant_drop_tightening.rs
  • ui/unnecessary_iter_cloned.rs
  • ui/unnecessary_to_owned.rs

To fix some of those:

  1. Pick one test and leave a comment about it
  2. Remove the @no-rustfix annotation
  3. Change the lint suggestion building to use multipart_suggestion over the current implementation
  4. write a comment here or mention this issue in the PR so that it gets marked as resolved.

Version

No response

Additional Labels

No response

Metadata

Metadata

Assignees

Labels

C-tracking-issueCategory: Tracking IssueE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.good first issueThese issues are a good way to get started with Clippy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions