Skip to content

Commit

Permalink
[UPSTREAM FIRST]: wip: Fix code issues post merge
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenArthur committed Oct 29, 2024
1 parent 54d233b commit f387d3e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
3 changes: 0 additions & 3 deletions gcc/rust/hir/rust-ast-lower-expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ class ASTLoweringExpr : public ASTLoweringBase
// Extra visitor for FormatArgs nodes
void visit (AST::FormatArgs &fmt) override;

// Extra visitor for FormatArgs nodes
void visit (AST::FormatArgs &fmt) override;

private:
ASTLoweringExpr ();

Expand Down
19 changes: 0 additions & 19 deletions gcc/rust/resolve/rust-ast-resolve-implitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,25 +247,6 @@ class ResolveToplevelExternItem : public ResolverBase
mappings.insert_module_child_item (current_module, decl);
}

void visit (AST::ExternalTypeItem &type) override
{
auto decl = CanonicalPath::new_seg (type.get_node_id (),
type.get_identifier ().as_string ());
auto path = prefix.append (decl);

resolver->get_type_scope ().insert (
path, type.get_node_id (), type.get_locus (), false, Rib::ItemType::Type,
[&] (const CanonicalPath &, NodeId, location_t locus) -> void {
rich_location r (line_table, type.get_locus ());
r.add_range (locus);

rust_error_at (r, "redefined multiple times");
});

NodeId current_module = resolver->peek_current_module_scope ();
mappings->insert_module_child_item (current_module, decl);
}

private:
ResolveToplevelExternItem (const CanonicalPath &prefix)
: ResolverBase (), prefix (prefix)
Expand Down

0 comments on commit f387d3e

Please sign in to comment.