Struct rustc_resolve::build_reduced_graph::BuildReducedGraphVisitor[−][src]

struct BuildReducedGraphVisitor<'a, 'b> {
    r: &'b mut Resolver<'a>,
    parent_scope: ParentScope<'a>,
}

Fields

r: &'b mut Resolver<'a>parent_scope: ParentScope<'a>

Implementations

impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b>[src]

fn resolve_visibility(&mut self, vis: &Visibility) -> Visibility[src]

fn resolve_visibility_speculative<'ast>(
    &mut self,
    vis: &'ast Visibility,
    speculative: bool
) -> Result<Visibility, VisResolutionError<'ast>>
[src]

fn insert_field_names_local(&mut self, def_id: DefId, vdata: &VariantData)[src]

fn insert_field_names(
    &mut self,
    def_id: DefId,
    field_names: Vec<Spanned<Symbol>>
)
[src]

fn block_needs_anonymous_module(&mut self, block: &Block) -> bool[src]

fn add_import(
    &mut self,
    module_path: Vec<Segment>,
    kind: ImportKind<'a>,
    span: Span,
    id: NodeId,
    item: &Item,
    root_span: Span,
    root_id: NodeId,
    vis: Visibility
)
[src]

fn build_reduced_graph_for_use_tree(
    &mut self,
    use_tree: &UseTree,
    id: NodeId,
    parent_prefix: &[Segment],
    nested: bool,
    item: &Item,
    vis: Visibility,
    root_span: Span
)
[src]

fn build_reduced_graph_for_item(&mut self, item: &'b Item)[src]

Constructs the reduced graph for one item.

fn build_reduced_graph_for_foreign_item(&mut self, item: &ForeignItem)[src]

Constructs the reduced graph for one foreign item.

fn build_reduced_graph_for_block(&mut self, block: &Block)[src]

fn build_reduced_graph_for_external_crate_res(&mut self, child: Export<NodeId>)[src]

Builds the reduced graph for a single item in an external crate.

fn add_macro_use_binding(
    &mut self,
    name: Symbol,
    binding: &'a NameBinding<'a>,
    span: Span,
    allow_shadowing: bool
)
[src]

fn process_macro_use_imports(
    &mut self,
    item: &Item,
    module: &'a ModuleData<'a>
) -> bool
[src]

Returns true if we should consider the underlying extern crate to be used.

fn contains_macro_use(&mut self, attrs: &[Attribute]) -> bool[src]

Returns true if this attribute list contains macro_use.

fn visit_invoc(&mut self, id: NodeId) -> ExpnId[src]

fn visit_invoc_in_module(
    &mut self,
    id: NodeId
) -> PtrKey<'a, Cell<MacroRulesScope<'a>>>
[src]

Visit invocation in context in which it can emit a named item (possibly macro_rules) directly into its parent scope’s module.

fn proc_macro_stub(&self, item: &Item) -> Option<(MacroKind, Ident, Span)>[src]

fn insert_unused_macro(
    &mut self,
    ident: Ident,
    def_id: LocalDefId,
    node_id: NodeId,
    span: Span
)
[src]

fn define_macro(&mut self, item: &Item) -> PtrKey<'a, Cell<MacroRulesScope<'a>>>[src]

Trait Implementations

impl<'a> AsMut<Resolver<'a>> for BuildReducedGraphVisitor<'a, '_>[src]

impl<'a, 'b> Visitor<'b> for BuildReducedGraphVisitor<'a, 'b>[src]

Auto Trait Implementations

impl<'a, 'b> !RefUnwindSafe for BuildReducedGraphVisitor<'a, 'b>

impl<'a, 'b> !Send for BuildReducedGraphVisitor<'a, 'b>

impl<'a, 'b> !Sync for BuildReducedGraphVisitor<'a, 'b>

impl<'a, 'b> Unpin for BuildReducedGraphVisitor<'a, 'b> where
    'a: 'b, 

impl<'a, 'b> !UnwindSafe for BuildReducedGraphVisitor<'a, 'b>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.