]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: lang-item: Add Sync trait
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 25 Dec 2024 11:08:25 +0000 (11:08 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 21 Mar 2025 11:55:43 +0000 (12:55 +0100)
gcc/rust/ChangeLog:

* util/rust-lang-item.h: Add Sync marker trait.
* util/rust-lang-item.cc: Likewise.

gcc/rust/util/rust-lang-item.cc
gcc/rust/util/rust-lang-item.h

index 5ddffaa59d4ba074679f89196b36c1105468afeb..216202af92668ed04f13693899a93598413c0765 100644 (file)
@@ -62,6 +62,7 @@ const BiMap<std::string, LangItem::Kind> Rust::LangItem::lang_items = {{
   {"copy", Kind::COPY},
   {"clone", Kind::CLONE},
   {"sized", Kind::SIZED},
+  {"sync", Kind::SYNC},
   {"slice_alloc", Kind::SLICE_ALLOC},
   {"slice_u8_alloc", Kind::SLICE_U8_ALLOC},
   {"str_alloc", Kind::STR_ALLOC},
index 92c70bbddf4455de456488ce3645779256d328b0..66d26d03907c0db8410ccf1811f1e1edee70b9e6 100644 (file)
@@ -82,6 +82,7 @@ public:
     COPY,
     CLONE,
     SIZED,
+    SYNC,
 
     // https://github.com/Rust-GCC/gccrs/issues/1896
     // https://github.com/rust-lang/rust/commit/afbecc0f68c4dcfc4878ba5bcb1ac942544a1bdc