]> gcc.gnu.org Git - gcc.git/commitdiff
rib: Add Namespace enum
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 17 Aug 2023 12:06:50 +0000 (14:06 +0200)
committerCohenArthur <arthur.cohen@embecosm.com>
Tue, 21 Nov 2023 10:10:42 +0000 (10:10 +0000)
gcc/rust/ChangeLog:

* resolve/rust-rib.h: Add Namespace enum.

gcc/rust/resolve/rust-rib.h

index 37bd90f1f75eb43e48cbbf815da9f618ee067ee0..4ffd00a5d6c33e99f41477c4a52cfae964b5cd23 100644 (file)
 namespace Rust {
 namespace Resolver2_0 {
 
+/**
+
+pub enum Namespace {
+   /// The type namespace includes `struct`s, `enum`s, `union`s, `trait`s, and
+`mod`s
+   /// (and, by extension, crates).
+   ///
+   /// Note that the type namespace includes other items; this is not an
+   /// exhaustive list.
+   TypeNS,
+   /// The value namespace includes `fn`s, `const`s, `static`s, and local
+variables (including function arguments). ValueNS,
+   /// The macro namespace includes `macro_rules!` macros, declarative `macro`s,
+   /// procedural macros, attribute macros, `derive` macros, and non-macro
+attributes
+   /// like `#[inline]` and `#[rustfmt::skip]`.
+   MacroNS,
+}
+
+*/
+
+// FIXME: There's no `labels` namespace, not sure if we need one or how to keep
+// one
+// FIXME: And where are things like loop labels kept?
+
 /**
  * All namespaces that Rust's name resolution needs to handle
  */
This page took 0.055713 seconds and 5 git commands to generate.