pub struct AliasAnalyzer<'tcx> {
pub tcx: TyCtxt<'tcx>,
pub fn_map: FxHashMap<DefId, MopFnAliasPairs>,
path_analyzer: PathAnalyzer<'tcx>,
}Fields§
§tcx: TyCtxt<'tcx>§fn_map: FxHashMap<DefId, MopFnAliasPairs>§path_analyzer: PathAnalyzer<'tcx>Implementations§
Source§impl<'tcx> AliasAnalyzer<'tcx>
impl<'tcx> AliasAnalyzer<'tcx>
pub fn new(tcx: TyCtxt<'tcx>) -> Self
fn handle_conor_cases(&mut self)
fn query_alias_graph(&mut self, def_id: DefId)
pub fn get_all_fn_alias_raw(&mut self) -> MopFnAliasMap
pub fn take_path_analyzer(&mut self) -> PathAnalyzer<'tcx>
Trait Implementations§
Source§impl<'tcx> AliasAnalysis for AliasAnalyzer<'tcx>
impl<'tcx> AliasAnalysis for AliasAnalyzer<'tcx>
Source§fn get_fn_alias(&self, def_id: DefId) -> Option<FnAliasPairs>
fn get_fn_alias(&self, def_id: DefId) -> Option<FnAliasPairs>
Return the aliases among the function arguments and return value of a specific function.
Source§fn get_all_fn_alias(&self) -> FnAliasMap
fn get_all_fn_alias(&self) -> FnAliasMap
Return the aliases among the function arguments and return value for all functions.
Source§fn get_local_fn_alias(&self) -> FnAliasMap
fn get_local_fn_alias(&self) -> FnAliasMap
Return the aliases among the function arguments and return value for functions of the local
crate.
Source§fn get_local_origins(&self, _def_id: DefId) -> LocalOriginMap
fn get_local_origins(&self, _def_id: DefId) -> LocalOriginMap
Return the intra-procedural local → origin mapping for a function.
Default returns empty; analyser implementations may override with cached
or MoP-based results.
Source§fn get_self_field_origin(
&self,
_def_id: DefId,
_local: usize,
_fields: &[usize],
) -> Option<FieldOrigin>
fn get_self_field_origin( &self, _def_id: DefId, _local: usize, _fields: &[usize], ) -> Option<FieldOrigin>
If a place (local + field projections) in a method body resolves to a
struct’s
self.field, return the field identity.Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for AliasAnalyzer<'tcx>
impl<'tcx> !Send for AliasAnalyzer<'tcx>
impl<'tcx> !Sync for AliasAnalyzer<'tcx>
impl<'tcx> !UnwindSafe for AliasAnalyzer<'tcx>
impl<'tcx> DynSend for AliasAnalyzer<'tcx>
impl<'tcx> DynSync for AliasAnalyzer<'tcx>
impl<'tcx> Freeze for AliasAnalyzer<'tcx>
impl<'tcx> Unpin for AliasAnalyzer<'tcx>
impl<'tcx> UnsafeUnpin for AliasAnalyzer<'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