Skip to content

Commit bdd1b86

Browse files
privacy: ModuleVis: Constify accessor functions
Co-authored-by: philberty <philip.herron@embecosm.com>
1 parent c3a8113 commit bdd1b86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gcc/rust/privacy/rust-privacy-common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ class ModuleVisibility
4848
return ModuleVisibility (Type::Public, UNKNOWN_DEFID);
4949
}
5050

51-
Type get_kind () { return kind; }
51+
Type get_kind () const { return kind; }
5252

53-
DefId &get_module_id () { return module_id; }
53+
const DefId &get_module_id () const { return module_id; }
5454

5555
private:
5656
ModuleVisibility (Type kind, DefId module_id)

0 commit comments

Comments
 (0)