Skip to content

Commit 7e7613f

Browse files
dingxiangfei2009compiler-errors
authored andcommitted
add explanation for the new scope info on drop terminators
1 parent 1b9e575 commit 7e7613f

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
@@ -709,6 +709,8 @@ pub enum TerminatorKind<'tcx> {
709709
place: Place<'tcx>,
710710
target: BasicBlock,
711711
unwind: UnwindAction,
712+
/// The HIR region scope that this drop is issued for when the evaluation exits the said scope.
713+
/// It is provided at best effort and may come from foreign sources due to inlining.
712714
scope: Option<(DefId, ItemLocalId)>,
713715
replace: bool,
714716
},

0 commit comments

Comments
 (0)