]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Update comments in repr parsing code
authorYap Zhi Heng <yapzhhg@gmail.com>
Fri, 4 Apr 2025 11:37:03 +0000 (19:37 +0800)
committerPhilip Herron <philip.herron@embecosm.com>
Wed, 16 Apr 2025 11:03:05 +0000 (11:03 +0000)
gcc/rust/ChangeLog:

* typecheck/rust-tyty.h: Remove extra redundant comment.
* typecheck/rust-hir-type-check-base.cc: Update comment on repr
handling.

Signed-off-by: Yap Zhi Heng <yapzhhg@gmail.com>
gcc/rust/typecheck/rust-hir-type-check-base.cc
gcc/rust/typecheck/rust-tyty.h

index 51c1ae78ec0fd1ef32cddfe4b18b03f357c71089..2f0b86a0a6cec0d8493c6fca4099032581b3e822 100644 (file)
@@ -308,7 +308,8 @@ TypeCheckBase::parse_repr_options (const AST::AttrVec &attrs, location_t locus)
   repr.pack = 0;
   repr.align = 0;
 
-  // FIXME handle non-integer repr types....
+  // Default repr for enums is isize, but we now check for other repr in the
+  // attributes.
   bool ok = context->lookup_builtin ("isize", &repr.repr);
   rust_assert (ok);
 
index cd7bf24585ee851501c59a46675290b53ab4e42e..e1370e0964db0056a7648f1eeee37f58b394c5bc 100644 (file)
@@ -719,7 +719,6 @@ public:
     ALIGN,
     PACKED,
     // TRANSPARENT,
-    // PACKED,
     // SIMD,
     // ...
   };