Skip to main content

set_phase_persistent

Function set_phase_persistent 

Source
pub fn set_phase_persistent(phase: AnalysisPhase)
Expand description

Set the current analysis phase without returning a guard.

Unlike set_phase, this function does not restore the previous phase when the function returns. Use this for top-level phase transitions where you want the phase to persist until explicitly changed.

§Example

// Phase persists until next set_phase_persistent call
set_phase_persistent(AnalysisPhase::CallGraphBuilding);
// ... do work ...
set_phase_persistent(AnalysisPhase::DebtScoring);