You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
running clippy --fix is deleting comments while fixing useless_vec lint. I think this might be similar to #8528 ( not sure about the fix implementation though )
ps: i would love to work on the fix if I can get little pointers! thanks :)
Reproducer
I tried this code:
let _some_variable = vec![1, 2, // i'm here to stay3, 4, // but this one going away ;-;];// that is life anyways
I expected to see this happen:
let _some_variable = [1,2,// i'm here to stay3,4];// but this one going away ;-;// that is life anyways
Instead, this happened:
let _some_variable = [1,2,// i'm here to stay3,4];// that is life anyways
Summary
running clippy --fix is deleting comments while fixing
useless_vec
lint. I think this might be similar to #8528 ( not sure about the fix implementation though )ps: i would love to work on the fix if I can get little pointers! thanks :)
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: