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
vec.iter()// a lovely comment explaining the code in very detail.map(|x| x.iter())// the answer to life, the universe and everything could be here.flatten();
This is especially annoying when running --fix, clippy will just transform this vec.iter().flat_map(|x| x.iter());
and eat all the comments.
Hi~ Sorry I keep mentioning this issue and deleting it cuz I was very sleepy and couldn't make up my mind🤦, you might wondering why there were many notifications or something...
Anyway, I just wanna mention that after PR #8520 , the comment above .map() should not be removed, but the one between it and .flatten() will still be removed. I can try find a way to keep it, but will that still make sense after the code below it is technically gone? 🤔
Summary
.
Reproducer
I tried this code:
This is especially annoying when running
--fix
, clippy will just transform thisvec.iter().flat_map(|x| x.iter());
and eat all the comments.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: