make clear that invalidate
just replaces with default
This commit is contained in:
parent
9a447a232e
commit
e35698371d
1 changed files with 1 additions and 2 deletions
|
@ -189,8 +189,7 @@ pub enum BreakableTarget {
|
||||||
|
|
||||||
impl CachedBlock {
|
impl CachedBlock {
|
||||||
fn invalidate(&mut self) {
|
fn invalidate(&mut self) {
|
||||||
self.generator_drop = None;
|
*self = CachedBlock::default();
|
||||||
self.unwind = None;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get(&self, generator_drop: bool) -> Option<BasicBlock> {
|
fn get(&self, generator_drop: bool) -> Option<BasicBlock> {
|
||||||
|
|
Loading…
Reference in a new issue