about summary refs log tree commit diff
path: root/compiler/rustc_hir/src/lang_items.rs
diff options
context:
space:
mode:
authorAapo Alasuutari <aapo.alasuutari@gmail.com>2025-08-29 23:29:46 +0300
committerAapo Alasuutari <aapo.alasuutari@gmail.com>2025-09-15 20:23:26 +0300
commitc8663eec6a667ae6e7571297cb15192425311c33 (patch)
treef7da2335268880cd2383948f70991481c7c2ae40 /compiler/rustc_hir/src/lang_items.rs
parentf3fd3efe4f698ad9dc2ccd6b46a3b07e1bc911da (diff)
downloadrust-c8663eec6a667ae6e7571297cb15192425311c33.tar.gz
rust-c8663eec6a667ae6e7571297cb15192425311c33.zip
Introduce CoerceShared lang item and trait
Diffstat (limited to 'compiler/rustc_hir/src/lang_items.rs')
-rw-r--r--compiler/rustc_hir/src/lang_items.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/lang_items.rs b/compiler/rustc_hir/src/lang_items.rs
index 67d2f15d414..889b16a7a2b 100644
--- a/compiler/rustc_hir/src/lang_items.rs
+++ b/compiler/rustc_hir/src/lang_items.rs
@@ -441,6 +441,7 @@ language_item_table! {
 
     // Reborrowing related lang-items
     Reborrow,                sym::reborrow,            reborrow,                   Target::Trait,          GenericRequirement::Exact(0);
+    CoerceShared,            sym::coerce_shared,       coerce_shared,              Target::Trait,          GenericRequirement::Exact(0);
 }
 
 /// The requirement imposed on the generics of a lang item