]> 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)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 28 Apr 2025 14:18:53 +0000 (16:18 +0200)
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 2ee0d0833e82145bb65d1856a1bbc8409fb2fd88..14b8ab8635e1f417baf5ccb2aa3ae1d201f49116 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 9897c30fc278534c8aeb9595cf83e64ad4d1ee6e..030968377524148d2cf924f695f683c9229fcee4 100644 (file)
@@ -719,7 +719,6 @@ public:
     ALIGN,
     PACKED,
     // TRANSPARENT,
-    // PACKED,
     // SIMD,
     // ...
   };