[−][src]Struct rustc_incremental::persist::dirty_clean::DirtyCleanVisitor
Fields
tcx: TyCtxt<'tcx>checked_attrs: FxHashSet<AttrId>Implementations
impl<'tcx> DirtyCleanVisitor<'tcx>[src]
pub(in persist::dirty_clean) fn assertion_maybe(
&mut self,
item_id: HirId,
attr: &Attribute
) -> Option<Assertion>[src]
&mut self,
item_id: HirId,
attr: &Attribute
) -> Option<Assertion>
Possibly "deserialize" the attribute into a clean/dirty assertion
pub(in persist::dirty_clean) fn assertion_auto(
&mut self,
item_id: HirId,
attr: &Attribute,
is_clean: bool
) -> Assertion[src]
&mut self,
item_id: HirId,
attr: &Attribute,
is_clean: bool
) -> Assertion
Gets the "auto" assertion on pre-validated attr, along with the except labels.
pub(in persist::dirty_clean) fn labels(
&self,
attr: &Attribute
) -> Option<FxHashSet<String>>[src]
&self,
attr: &Attribute
) -> Option<FxHashSet<String>>
pub(in persist::dirty_clean) fn except(
&self,
attr: &Attribute
) -> FxHashSet<String>[src]
&self,
attr: &Attribute
) -> FxHashSet<String>
except= attribute value
pub(in persist::dirty_clean) fn auto_labels(
&mut self,
item_id: HirId,
attr: &Attribute
) -> (&'static str, FxHashSet<String>)[src]
&mut self,
item_id: HirId,
attr: &Attribute
) -> (&'static str, FxHashSet<String>)
Return all DepNode labels that should be asserted for this item. index=0 is the "name" used for error messages
pub(in persist::dirty_clean) fn resolve_labels(
&self,
item: &NestedMetaItem,
value: Symbol
) -> FxHashSet<String>[src]
&self,
item: &NestedMetaItem,
value: Symbol
) -> FxHashSet<String>
pub(in persist::dirty_clean) fn dep_nodes<'l>(
&self,
labels: &'l FxHashSet<String>,
def_id: DefId
) -> impl Iterator<Item = DepNode> + 'l[src]
&self,
labels: &'l FxHashSet<String>,
def_id: DefId
) -> impl Iterator<Item = DepNode> + 'l
pub(in persist::dirty_clean) fn dep_node_str(
&self,
dep_node: &DepNode
) -> String[src]
&self,
dep_node: &DepNode
) -> String
pub(in persist::dirty_clean) fn assert_dirty(
&self,
item_span: Span,
dep_node: DepNode
)[src]
&self,
item_span: Span,
dep_node: DepNode
)
pub(in persist::dirty_clean) fn get_fingerprint(
&self,
dep_node: &DepNode
) -> Option<Fingerprint>[src]
&self,
dep_node: &DepNode
) -> Option<Fingerprint>
pub(in persist::dirty_clean) fn assert_clean(
&self,
item_span: Span,
dep_node: DepNode
)[src]
&self,
item_span: Span,
dep_node: DepNode
)
pub(in persist::dirty_clean) fn check_item(
&mut self,
item_id: HirId,
item_span: Span
)[src]
&mut self,
item_id: HirId,
item_span: Span
)
Trait Implementations
impl<'tcx> ItemLikeVisitor<'tcx> for DirtyCleanVisitor<'tcx>[src]
pub fn visit_item(&mut self, item: &'tcx Item<'tcx>)[src]
pub fn visit_trait_item(&mut self, item: &TraitItem<'_>)[src]
pub fn visit_impl_item(&mut self, item: &ImplItem<'_>)[src]
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for DirtyCleanVisitor<'tcx>
impl<'tcx> !Send for DirtyCleanVisitor<'tcx>
impl<'tcx> !Sync for DirtyCleanVisitor<'tcx>
impl<'tcx> Unpin for DirtyCleanVisitor<'tcx>
impl<'tcx> !UnwindSafe for DirtyCleanVisitor<'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,