From: Pierre-Emmanuel Patry <[email protected]>
gcc/rust/ChangeLog:
* util/rust-util-path.h: Move UtilPath class to Rust namespace.
Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github:
https://github.com/Rust-GCC/gccrs/commit/7564074c39eba65fc3bba0dcc91854f7be4d971a
The commit has NOT been mentioned in any issue.
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/5030
gcc/rust/util/rust-util-path.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/rust/util/rust-util-path.h b/gcc/rust/util/rust-util-path.h
index f612afd9f..f597e0aba 100644
--- a/gcc/rust/util/rust-util-path.h
+++ b/gcc/rust/util/rust-util-path.h
@@ -21,6 +21,8 @@
#ifndef RUST_UTIL_PATH_H
#define RUST_UTIL_PATH_H
+namespace Rust {
+
// Simple path container class to keep segments and opening scope flag together
// whilst keeping the segment type generic.
//
@@ -38,4 +40,6 @@ template <typename Segment> struct UtilPath
const std::vector<Segment> &get_segments () const { return segments; }
};
+} // namespace Rust
+
#endif
--
2.56.0