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
I have #7138 open about potentially adding an attribute to omit the drop flag by zeroing the struct instead and just calling the destructor multiple times - letting the Drop implementation deal with it. Seems like it would be usable for this too.
…n, r=flip1995
Add machine applicable suggestion for `needless_lifetimes`
changelog: [`needless_lifetimes`]: Add machine applicable suggestion
Fixesrust-lang#9360
It doesn't make suggestions for async functions as the input lifetime spans are funky there
The examples in rust-lang#5787 and rust-lang#7271 no longer seem to FP this PR aside, I added tests for them rather than disabling the lint entirely for async functions, I don't know if there are further FPs there though
Closesrust-lang#5787Closesrust-lang#7271
AtomicOption
is an atomic, nullable unique pointer, but because it has a dtor it does not have pointer size:It would be very convenient if this type was freely castable to pointer-size types.
The text was updated successfully, but these errors were encountered: