]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lang-item: Add Sync trait
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 25 Dec 2024 11:08:25 +0000 (11:08 +0000)
committerCohenArthur <arthur.cohen@embecosm.com>
Tue, 31 Dec 2024 17:00:14 +0000 (17:00 +0000)
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 0d8a98077d1e99ea2d555a2e8d5e98689225b4c5..5a7bfd5f79c020eb55e6218f0fe764c6dd2cf1d0 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 bcf41df559e5e56a24315491ac13bdf7a9745966..18ba37dc22df0d94f6d683fb3f77bcf0746a22a3 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