pub struct PrepareTargets<'tcx> {
tcx: TyCtxt<'tcx>,
mode: VerifyMode,
skip_invariant: bool,
crate_filter: Option<String>,
module_filter: Option<String>,
}Expand description
Analysis pass that finds all verification targets.
In targeted mode, only functions annotated with #[rapx::verify] are listed.
In scan mode, all functions with unsafe callees or struct invariants are listed.
Fields§
§tcx: TyCtxt<'tcx>§mode: VerifyMode§skip_invariant: bool§crate_filter: Option<String>§module_filter: Option<String>Implementations§
Source§impl<'tcx> PrepareTargets<'tcx>
impl<'tcx> PrepareTargets<'tcx>
pub fn new( tcx: TyCtxt<'tcx>, mode: VerifyMode, skip_invariant: bool, crate_filter: Option<String>, module_filter: Option<String>, ) -> Self
fn log_struct_invariants(&self, struct_target: &StructTarget<'tcx>)
fn log_trait_ensurance(&self, trait_target: &TraitEnsurance<'tcx>)
fn log_method_target(&self, target: &FunctionTarget<'tcx>)
fn log_free_function_unsafe_callees(&self, target: &FunctionTarget<'tcx>)
fn log_unsafe_callees_and_contracts( &self, target: &FunctionTarget<'tcx>, path_map: &FxHashMap<DefId, Vec<(usize, Vec<String>)>>, )
fn build_checkpoint_path_map( &self, target: &FunctionTarget<'tcx>, ) -> FxHashMap<DefId, Vec<(usize, Vec<String>)>>
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for PrepareTargets<'tcx>
impl<'tcx> !Send for PrepareTargets<'tcx>
impl<'tcx> !Sync for PrepareTargets<'tcx>
impl<'tcx> !UnwindSafe for PrepareTargets<'tcx>
impl<'tcx> DynSend for PrepareTargets<'tcx>
impl<'tcx> DynSync for PrepareTargets<'tcx>
impl<'tcx> Freeze for PrepareTargets<'tcx>
impl<'tcx> Unpin for PrepareTargets<'tcx>
impl<'tcx> UnsafeUnpin for PrepareTargets<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more