Revert accidental comment deletion
This commit is contained in:
parent
bcf1f6db45
commit
d9021791eb
@ -821,6 +821,8 @@ fn visit_terminator_after_primary_effect(
|
|||||||
| TerminatorKind::Return
|
| TerminatorKind::Return
|
||||||
| TerminatorKind::TailCall { .. }
|
| TerminatorKind::TailCall { .. }
|
||||||
| TerminatorKind::CoroutineDrop => {
|
| TerminatorKind::CoroutineDrop => {
|
||||||
|
// Returning from the function implicitly kills storage for all locals and statics.
|
||||||
|
// Often, the storage will already have been killed by an explicit
|
||||||
// StorageDead, but we don't always emit those (notably on unwind paths),
|
// StorageDead, but we don't always emit those (notably on unwind paths),
|
||||||
// so this "extra check" serves as a kind of backup.
|
// so this "extra check" serves as a kind of backup.
|
||||||
let borrow_set = self.borrow_set.clone();
|
let borrow_set = self.borrow_set.clone();
|
||||||
|
Loading…
Reference in New Issue
Block a user