Skip to content

Commit 5c64794

Browse files
committed
lang-item: Add Sync trait
gcc/rust/ChangeLog: * util/rust-lang-item.h: Add Sync marker trait. * util/rust-lang-item.cc: Likewise.
1 parent 1d8041b commit 5c64794

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const BiMap<std::string, LangItem::Kind> Rust::LangItem::lang_items = {{
6262
{"copy", Kind::COPY},
6363
{"clone", Kind::CLONE},
6464
{"sized", Kind::SIZED},
65+
{"sync", Kind::SYNC},
6566
{"slice_alloc", Kind::SLICE_ALLOC},
6667
{"slice_u8_alloc", Kind::SLICE_U8_ALLOC},
6768
{"str_alloc", Kind::STR_ALLOC},

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

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class LangItem
8282
COPY,
8383
CLONE,
8484
SIZED,
85+
SYNC,
8586

8687
// https://github.com/Rust-GCC/gccrs/issues/1896
8788
// https://github.com/rust-lang/rust/commit/afbecc0f68c4dcfc4878ba5bcb1ac942544a1bdc

0 commit comments

Comments
 (0)