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
This should be fixed by @nikomatsakis's new patch even if the code isn't changed, but I thought it would be nice to track too.
use std::fmt;structNoisyDrop<T: fmt::Debug>(T);impl<T: fmt::Debug>DropforNoisyDrop<T>{fndrop(&mutself){let _ = vec!["0wned"];println!("dropping {:?}",self.0)}}fnfoo(){let(w,v);
v = vec![0usize];
w = {let u = NoisyDrop(&v);move || u.0.len()};}fnmain(){foo()}
After this, the only non-trivial variants dropck correctly handles are TySlice and TyTuple - I guess even a stopped clock is right twice a day.
The text was updated successfully, but these errors were encountered:
This should be fixed by @nikomatsakis's new patch even if the code isn't changed, but I thought it would be nice to track too.
After this, the only non-trivial variants dropck correctly handles are
TySlice
andTyTuple
- I guess even a stopped clock is right twice a day.The text was updated successfully, but these errors were encountered: