diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-12-13 16:20:57 +0800 |
---|---|---|
committer | SimplyTheOther <simplytheother@gmail.com> | 2020-12-13 16:20:57 +0800 |
commit | 4490d49331a092775ebd3d38bec14b2eb7d98998 (patch) | |
tree | 4070cf90673dc8e0eda088bf043a12b11bdcd4a0 /gcc | |
parent | 6ee2c06c47a905b11ee5b674710df187126203bc (diff) | |
download | gcc-4490d49331a092775ebd3d38bec14b2eb7d98998.zip gcc-4490d49331a092775ebd3d38bec14b2eb7d98998.tar.gz gcc-4490d49331a092775ebd3d38bec14b2eb7d98998.tar.bz2 |
Fixed SimplePath's operator == not being const
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index 1ad0cf9..bdc1f12 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -327,7 +327,7 @@ public: // does this need visitor if not polymorphic? probably not // path-to-string comparison operator - bool operator== (const std::string &rhs) + bool operator== (const std::string &rhs) const { return !has_opening_scope_resolution && segments.size () == 1 && segments[0].as_string () == rhs; |