Struct rustc_incremental::persist::dirty_clean::DirtyCleanVisitor [−][src]
Fields
tcx: TyCtxt<'tcx>checked_attrs: FxHashSet<AttrId>Implementations
impl<'tcx> DirtyCleanVisitor<'tcx>[src]
fn assertion_maybe(
&mut self,
item_id: LocalDefId,
attr: &Attribute
) -> Option<Assertion>[src]
&mut self,
item_id: LocalDefId,
attr: &Attribute
) -> Option<Assertion>
Possibly “deserialize” the attribute into a clean/dirty assertion
fn assertion_auto(
&mut self,
item_id: LocalDefId,
attr: &Attribute,
is_clean: bool
) -> Assertion[src]
&mut self,
item_id: LocalDefId,
attr: &Attribute,
is_clean: bool
) -> Assertion
Gets the “auto” assertion on pre-validated attr, along with the except labels.
fn labels(&self, attr: &Attribute) -> Option<FxHashSet<String>>[src]
fn except(&self, attr: &Attribute) -> FxHashSet<String>[src]
except= attribute value
fn auto_labels(
&mut self,
item_id: LocalDefId,
attr: &Attribute
) -> (&'static str, FxHashSet<String>)[src]
&mut self,
item_id: LocalDefId,
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
fn resolve_labels(
&self,
item: &NestedMetaItem,
value: Symbol
) -> FxHashSet<String>[src]
&self,
item: &NestedMetaItem,
value: Symbol
) -> FxHashSet<String>
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
fn dep_node_str(&self, dep_node: &DepNode) -> String[src]
fn assert_dirty(&self, item_span: Span, dep_node: DepNode)[src]
fn get_fingerprint(&self, dep_node: &DepNode) -> Option<Fingerprint>[src]
fn assert_clean(&self, item_span: Span, dep_node: DepNode)[src]
fn check_item(&mut self, item_id: LocalDefId, item_span: Span)[src]
Trait Implementations
impl<'tcx> ItemLikeVisitor<'tcx> for DirtyCleanVisitor<'tcx>[src]
fn visit_item(&mut self, item: &'tcx Item<'tcx>)[src]
fn visit_trait_item(&mut self, item: &TraitItem<'_>)[src]
fn visit_impl_item(&mut self, item: &ImplItem<'_>)[src]
fn visit_foreign_item(&mut self, item: &ForeignItem<'_>)[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>,