-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
C-bugCategory: bugCategory: bugCommand-fixS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Description
Problem
Two suggestions all making changes to the same span have the potential to cause a syntax error.
Steps
cargo new --lib test-crate
- Write the following code into
src/lib.rs
:
struct Foo(i64);
impl Into<i64> for Foo {
fn into(self) -> i64 {
self.0.clone()
}
}`
cargo clippy --fix
Possible Solution(s)
Making sure that a spans don't overlap each other when having made a suggestion. See more context in the linked issue
Notes
No response
Version
cargo version --verbose
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bugCommand-fixS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review