]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lang-items: Add ManuallyDrop<T>
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 8 Apr 2025 15:04:09 +0000 (17:04 +0200)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 14 Apr 2025 12:35:00 +0000 (12:35 +0000)
gcc/rust/ChangeLog:

* util/rust-lang-item.h: Add new manually_drop lang item.
* util/rust-lang-item.cc: Likewise.

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

index 4b552e2b0b2c9f6dd626803104d6e1c494304084..0bd74b2bad9c6c8fc2136d2255147ad062869b5c 100644 (file)
@@ -118,6 +118,7 @@ const BiMap<std::string, LangItem::Kind> Rust::LangItem::lang_items = {{
 
   {"discriminant_kind", Kind::DISCRIMINANT_KIND},
   {"discriminant_type", Kind::DISCRIMINANT_TYPE},
+  {"manually_drop", Kind::MANUALLY_DROP},
 }};
 
 tl::optional<LangItem::Kind>
index 1aaa88728e9cf7822cd7bc99ec3de2f9d7e2378b..c7dff939c18fe8167102f23dc17a77b667b5d6d3 100644 (file)
@@ -150,6 +150,8 @@ public:
 
     DISCRIMINANT_TYPE,
     DISCRIMINANT_KIND,
+
+    MANUALLY_DROP,
   };
 
   static const BiMap<std::string, Kind> lang_items;