aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
-rw-r--r--gcc/rust/backend/rust-compile-expr.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h
index e596d17..a6db70e 100644
--- a/gcc/rust/backend/rust-compile-expr.h
+++ b/gcc/rust/backend/rust-compile-expr.h
@@ -92,11 +92,11 @@ public:
protected:
tree get_fn_addr_from_dyn (const TyTy::DynamicObjectType *dyn,
TyTy::BaseType *receiver, TyTy::FnType *fntype,
- tree receiver_ref, Location expr_locus);
+ tree receiver_ref, location_t expr_locus);
tree get_receiver_from_dyn (const TyTy::DynamicObjectType *dyn,
TyTy::BaseType *receiver, TyTy::FnType *fntype,
- tree receiver_ref, Location expr_locus);
+ tree receiver_ref, location_t expr_locus);
tree
resolve_operator_overload (Analysis::RustLangItem::ItemType lang_item_type,
@@ -126,10 +126,11 @@ protected:
tree type_cast_expression (tree type_to_cast_to, tree expr, location_t locus);
- tree array_value_expr (Location expr_locus, const TyTy::ArrayType &array_tyty,
- tree array_type, HIR::ArrayElemsValues &elems);
+ tree array_value_expr (location_t expr_locus,
+ const TyTy::ArrayType &array_tyty, tree array_type,
+ HIR::ArrayElemsValues &elems);
- tree array_copied_expr (Location expr_locus,
+ tree array_copied_expr (location_t expr_locus,
const TyTy::ArrayType &array_tyty, tree array_type,
HIR::ArrayElemsCopied &elems);