diff options
Diffstat (limited to 'gcc/rust/checks/lints/rust-lint-scan-deadcode.h')
-rw-r--r-- | gcc/rust/checks/lints/rust-lint-scan-deadcode.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/rust/checks/lints/rust-lint-scan-deadcode.h b/gcc/rust/checks/lints/rust-lint-scan-deadcode.h index efe6c3e..e6ef1392 100644 --- a/gcc/rust/checks/lints/rust-lint-scan-deadcode.h +++ b/gcc/rust/checks/lints/rust-lint-scan-deadcode.h @@ -53,10 +53,9 @@ public: HirId hirId = function.get_mappings ().get_hirid (); if (should_warn (hirId) && !function.get_visibility ().is_public ()) { - if (mappings->is_impl_item (hirId)) + if (mappings.is_impl_item (hirId)) { - HIR::ImplBlock *implBlock - = mappings->lookup_associated_impl (hirId); + HIR::ImplBlock *implBlock = mappings.lookup_associated_impl (hirId); if (!implBlock->has_trait_ref ()) { rust_warning_at ( @@ -136,7 +135,7 @@ public: private: std::set<HirId> live_symbols; Resolver::Resolver *resolver; - Analysis::Mappings *mappings; + Analysis::Mappings &mappings; ScanDeadcode (std::set<HirId> &live_symbols) : live_symbols (live_symbols), resolver (Resolver::Resolver::get ()), |