Fix single_range_in_vec_init FP for explicit Range#16043
Fix single_range_in_vec_init FP for explicit Range#16043samueltardieu merged 2 commits intorust-lang:masterfrom
single_range_in_vec_init FP for explicit Range#16043Conversation
|
rustbot has assigned @samueltardieu. Use |
|
Also closes #16044 |
|
imo it would be better to preserve what the user wrote, i.e. if the original expression was a range, then we should use that in the suggestion as well |
|
We shouldn't be linting the explicit constructor. The lint is meant to catch |
This comment has been minimized.
This comment has been minimized.
|
You are right. It should be considered as a FP instead |
single_range_in_vec_init wrongly showed field name when using Rangesingle_range_in_vec_init FP for explicit Range
|
Also, it looks like the |
|
@samueltardieu Updated. Thank you! |
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Closes #16042
Closes #16044
changelog: [
single_range_in_vec_init] fix FP for explicitRange