The suggestion emitted at
|
err.span_suggestion( |
|
swap_call.span, |
|
"use `.swap()` to swap elements at the specified indices instead", |
|
format!("{obj_str}.swap({index1_str}, {index2_str})"), |
|
Applicability::MachineApplicable, |
|
); |
doesn't seem to have a corresponding .stderr test. Closest I could found is https://github.com/rust-lang/rust/blob/abdb64d4eaa989ff5ef96099f6e1585472de1622/tests/ui/suggestions/suggest-split-at-mut.stderr
We should figure out whether we can trigger it, adjust it if needed or remove it if impossible, add a test and make it verbose.
The suggestion emitted at
rust/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
Lines 2421 to 2426 in 8b9ee86
doesn't seem to have a corresponding
.stderrtest. Closest I could found is https://github.com/rust-lang/rust/blob/abdb64d4eaa989ff5ef96099f6e1585472de1622/tests/ui/suggestions/suggest-split-at-mut.stderrWe should figure out whether we can trigger it, adjust it if needed or remove it if impossible, add a test and make it verbose.