Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ed12b18

Browse files
add explanation for the new scope info on drop terminators
1 parent 081c77f commit ed12b18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/mir/syntax.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,8 @@ pub enum TerminatorKind<'tcx> {
708708
place: Place<'tcx>,
709709
target: BasicBlock,
710710
unwind: UnwindAction,
711+
/// The HIR region scope that this drop is issued for when the evaluation exits the said scope.
712+
/// It is provided at best effort and may come from foreign sources due to inlining.
711713
scope: Option<(DefId, ItemLocalId)>,
712714
replace: bool,
713715
},

0 commit comments

Comments
 (0)