Make some types and methods related to Polonius + Miri public.

This commit is contained in:
Will Crichton
2024-12-11 16:40:54 -08:00
parent 1f3bf231e1
commit eb10db0a76
4 changed files with 36 additions and 24 deletions

View File

@@ -584,8 +584,10 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
interp_ok(())
}
/// This is public because it is used by [Aquascope](https://github.com/cognitive-engineering-lab/aquascope/)
/// to analyze all the locals in a stack frame.
#[inline(always)]
pub(super) fn layout_of_local(
pub fn layout_of_local(
&self,
frame: &Frame<'tcx, M::Provenance, M::FrameExtra>,
local: mir::Local,