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
fn resolve_visibility_speculative<'ast>(
&mut self,
vis: &'ast Visibility,
speculative: bool
) -> Result<Visibility, VisResolutionError<'ast>>
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
)
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
)
Constructs the reduced graph for one item.
Constructs the reduced graph for one foreign item.
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
)
Returns true
if we should consider the underlying extern crate
to be used.
Returns true
if this attribute list contains macro_use
.
Visit invocation in context in which it can emit a named item (possibly macro_rules
)
directly into its parent scope’s module.
fn insert_unused_macro(
&mut self,
ident: Ident,
def_id: LocalDefId,
node_id: NodeId,
span: Span
)
Trait Implementations
fn visit_enum_def(
&mut self,
enum_definition: &'ast EnumDef,
generics: &'ast Generics,
item_id: NodeId,
Span
)
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
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes