Struct rustc_incremental::persist::dirty_clean::DirtyCleanVisitor [−][src]
Fields
tcx: TyCtxt<'tcx>checked_attrs: FxHashSet<AttrId>Implementations
impl<'tcx> DirtyCleanVisitor<'tcx>[src]
impl<'tcx> DirtyCleanVisitor<'tcx>[src]fn assertion_maybe(
&mut self,
item_id: LocalDefId,
attr: &Attribute
) -> Option<Assertion>[src]
fn assertion_maybe(
&mut self,
item_id: LocalDefId,
attr: &Attribute
) -> Option<Assertion>[src]Possibly “deserialize” the attribute into a clean/dirty assertion
fn assertion_auto(
&mut self,
item_id: LocalDefId,
attr: &Attribute,
is_clean: bool
) -> Assertion[src]
fn assertion_auto(
&mut self,
item_id: LocalDefId,
attr: &Attribute,
is_clean: bool
) -> Assertion[src]Gets the “auto” assertion on pre-validated attr, along with the except labels.
fn labels(&self, attr: &Attribute) -> Option<FxHashSet<String>>[src]
fn auto_labels(
&mut self,
item_id: LocalDefId,
attr: &Attribute
) -> (&'static str, FxHashSet<String>)[src]
fn auto_labels(
&mut self,
item_id: LocalDefId,
attr: &Attribute
) -> (&'static str, FxHashSet<String>)[src]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 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]
impl<'tcx> ItemLikeVisitor<'tcx> for DirtyCleanVisitor<'tcx>[src]