Skip to content

Commit 1ca3c29

Browse files
saethlinRalfJung
andauthored
Document is_user_relevant
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 23270ae commit 1ca3c29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/miri/src/helpers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,7 @@ impl<'mir, 'tcx> MiriMachine<'mir, 'tcx> {
968968
self.threads.active_thread_ref().top_user_relevant_frame()
969969
}
970970

971+
/// This is the source of truth for the `is_user_relevant` flag in our `FrameExtra`.
971972
pub fn is_user_relevant(&self, frame: &Frame<'mir, 'tcx, Provenance>) -> bool {
972973
let def_id = frame.instance.def_id();
973974
(def_id.is_local() || self.local_crates.contains(&def_id.krate))

0 commit comments

Comments
 (0)