Revert accidental comment deletion · rust-lang/rust@d902179

Original file line numberDiff line numberDiff line change

@@ -821,6 +821,8 @@ impl<'a, 'mir, 'tcx, R> rustc_mir_dataflow::ResultsVisitor<'mir, 'tcx, R>

821821

| TerminatorKind::Return

822822

| TerminatorKind::TailCall { .. }

823823

| TerminatorKind::CoroutineDrop => {

824+

// Returning from the function implicitly kills storage for all locals and statics.

825+

// Often, the storage will already have been killed by an explicit

824826

// StorageDead, but we don't always emit those (notably on unwind paths),

825827

// so this "extra check" serves as a kind of backup.

826828

let borrow_set = self.borrow_set.clone();