Skip to content

Commit 9dc4151

Browse files
committed
Fix semicolon after some namespace
Remove namespace comment after classes and structs. gcc/rust/ChangeLog: * checks/errors/borrowck/rust-bir-fact-collector.h: Remove spurious comment. * checks/errors/rust-feature.cc: Likewise. * util/optional.h: Likewise. * expand/rust-token-tree-desugar.cc (TokenTreeDesugar::visit): Remove semicolons on namespace. * expand/rust-token-tree-desugar.h: Likewise. Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
1 parent d7cb261 commit 9dc4151

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

gcc/rust/checks/errors/borrowck/rust-bir-fact-collector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ class FactCollector : public Visitor
883883

884884
return region_end;
885885
}
886-
}; // namespace BIR
886+
};
887887

888888
} // namespace BIR
889889
} // namespace Rust

gcc/rust/checks/errors/rust-feature.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const std::map<std::string, Feature::Name> Feature::name_hash_map = {
8484
{"exclusive_range_pattern", Feature::Name::EXCLUSIVE_RANGE_PATTERN},
8585
{"prelude_import", Feature::Name::PRELUDE_IMPORT},
8686
{"min_specialization", Feature::Name::MIN_SPECIALIZATION},
87-
}; // namespace Rust
87+
};
8888

8989
tl::optional<Feature::Name>
9090
Feature::as_name (const std::string &name)

gcc/rust/expand/rust-token-tree-desugar.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ TokenTreeDesugar::visit (Token &tts)
6868
}
6969
}
7070

71-
}; // namespace AST
72-
}; // namespace Rust
71+
} // namespace AST
72+
} // namespace Rust

gcc/rust/expand/rust-token-tree-desugar.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class TokenTreeDesugar : public DefaultASTVisitor
4949
virtual void visit (Token &tts) override;
5050
};
5151

52-
}; // namespace AST
53-
}; // namespace Rust
52+
} // namespace AST
53+
} // namespace Rust
5454

5555
#endif //! RUST_TOKEN_TREE_DESUGAR_H

gcc/rust/util/optional.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ class optional : private detail::optional_move_assign_base<T>,
13641364
this->m_has_value = false;
13651365
}
13661366
}
1367-
}; // namespace tl
1367+
};
13681368

13691369
/// Compares two optional objects
13701370
template <class T, class U>
@@ -2110,7 +2110,7 @@ template <class T> class optional<T &> {
21102110

21112111
private:
21122112
T *m_value;
2113-
}; // namespace tl
2113+
};
21142114

21152115

21162116

@@ -2128,4 +2128,4 @@ template <class T> struct hash<tl::optional<T>> {
21282128
};
21292129
} // namespace std
21302130

2131-
#endif
2131+
#endif

0 commit comments

Comments
 (0)