aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-07-28 15:14:43 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2022-07-28 15:15:36 +0200
commit69430668781eb4fc7126b61d2717478338daa27a (patch)
tree58819cd0ed3370b5bfc63b6b96dd04efa6563fff
parent1d86619909ec3d30b1363d66a6caff2f2b279ad2 (diff)
downloadgcc-69430668781eb4fc7126b61d2717478338daa27a.zip
gcc-69430668781eb4fc7126b61d2717478338daa27a.tar.gz
gcc-69430668781eb4fc7126b61d2717478338daa27a.tar.bz2
unsafe: Take references on mappings and name resolver instead of copies
Co-authored-by: philberty <philp.herron@embecosm.com>
-rw-r--r--gcc/rust/checks/errors/rust-unsafe-checker.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/checks/errors/rust-unsafe-checker.h b/gcc/rust/checks/errors/rust-unsafe-checker.h
index 38b9019..21ec0f4 100644
--- a/gcc/rust/checks/errors/rust-unsafe-checker.h
+++ b/gcc/rust/checks/errors/rust-unsafe-checker.h
@@ -59,8 +59,8 @@ private:
void check_use_of_static (HirId node_id, Location locus);
Resolver::TypeCheckContext &context;
- Resolver::Resolver resolver;
- Analysis::Mappings mappings;
+ Resolver::Resolver &resolver;
+ Analysis::Mappings &mappings;
virtual void visit (IdentifierExpr &ident_expr) override;
virtual void visit (Lifetime &lifetime) override;