make clear that invalidate just replaces with default

This commit is contained in:
Niko Matsakis 2019-09-19 10:30:46 -04:00
parent 9a447a232e
commit e35698371d

View file

@ -189,8 +189,7 @@ pub enum BreakableTarget {
impl CachedBlock {
fn invalidate(&mut self) {
self.generator_drop = None;
self.unwind = None;
*self = CachedBlock::default();
}
fn get(&self, generator_drop: bool) -> Option<BasicBlock> {