Skip to content

Commit

Permalink
HIR: fix typo
Browse files Browse the repository at this point in the history
gcc/rust/ChangeLog:

	* hir/rust-ast-lower-expr.cc (ASTLoweringExpr::visit): Fix typo.

Signed-off-by: Jakub Dupak <[email protected]>
  • Loading branch information
jdupak authored and philberty committed Nov 2, 2023
1 parent e489a69 commit 16182dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gcc/rust/hir/rust-ast-lower-expr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -632,16 +632,16 @@ ASTLoweringExpr::visit (AST::BorrowExpr &expr)
mappings->get_next_hir_id (crate_num),
UNKNOWN_LOCAL_DEFID);

HIR::BorrowExpr *borrow_expr
auto *borrow_expr
= new HIR::BorrowExpr (mapping, std::unique_ptr<HIR::Expr> (borrow_lvalue),
expr.get_is_mut () ? Mutability::Mut
: Mutability::Imm,
expr.get_outer_attrs (), expr.get_locus ());

if (expr.get_is_double_borrow ())
{
NodeId artifical_bouble_borrow_id = mappings->get_next_node_id ();
Analysis::NodeMapping mapping (crate_num, artifical_bouble_borrow_id,
NodeId artificial_double_borrow_id = mappings->get_next_node_id ();
Analysis::NodeMapping mapping (crate_num, artificial_double_borrow_id,
mappings->get_next_hir_id (crate_num),
UNKNOWN_LOCAL_DEFID);

Expand Down

0 comments on commit 16182dc

Please sign in to comment.