pub struct PrepareTargets<'tcx> {
tcx: TyCtxt<'tcx>,
mode: VerifyMode,
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§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, 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>)
fn log_checkpoint_paths(&self, target: &FunctionTarget<'tcx>)
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> Freeze for PrepareTargets<'tcx>
impl<'tcx> !RefUnwindSafe for PrepareTargets<'tcx>
impl<'tcx> !Send for PrepareTargets<'tcx>
impl<'tcx> !Sync for PrepareTargets<'tcx>
impl<'tcx> Unpin for PrepareTargets<'tcx>
impl<'tcx> !UnwindSafe 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
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