From: Arthur Cohen Date: Wed, 25 Dec 2024 11:08:25 +0000 (+0000) Subject: gccrs: lang-item: Add Sync trait X-Git-Tag: basepoints/gcc-16~973 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed75c2b000afe0a3c82c696554122bbcdad2b727;p=thirdparty%2Fgcc.git gccrs: lang-item: Add Sync trait gcc/rust/ChangeLog: * util/rust-lang-item.h: Add Sync marker trait. * util/rust-lang-item.cc: Likewise. --- diff --git a/gcc/rust/util/rust-lang-item.cc b/gcc/rust/util/rust-lang-item.cc index 5ddffaa59d4..216202af926 100644 --- a/gcc/rust/util/rust-lang-item.cc +++ b/gcc/rust/util/rust-lang-item.cc @@ -62,6 +62,7 @@ const BiMap 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}, diff --git a/gcc/rust/util/rust-lang-item.h b/gcc/rust/util/rust-lang-item.h index 92c70bbddf4..66d26d03907 100644 --- a/gcc/rust/util/rust-lang-item.h +++ b/gcc/rust/util/rust-lang-item.h @@ -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