diff options
| author | Aapo Alasuutari <aapo.alasuutari@gmail.com> | 2025-08-21 23:42:46 +0300 |
|---|---|---|
| committer | Aapo Alasuutari <aapo.alasuutari@gmail.com> | 2025-08-21 23:53:25 +0300 |
| commit | 5af359162e5ebf6c9ad318e7e45ac2f2b47b4b74 (patch) | |
| tree | 821d9e67a6720d313cef07375e8a883f8a9438cf /compiler/rustc_hir/src | |
| parent | 719880dd2a3081ca69fd41eac82f45d84b90bb06 (diff) | |
| download | rust-5af359162e5ebf6c9ad318e7e45ac2f2b47b4b74.tar.gz rust-5af359162e5ebf6c9ad318e7e45ac2f2b47b4b74.zip | |
Introduce Reborrow lang item and trait
Diffstat (limited to 'compiler/rustc_hir/src')
| -rw-r--r-- | compiler/rustc_hir/src/lang_items.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/lang_items.rs b/compiler/rustc_hir/src/lang_items.rs index 905b84a8cbe..0464665b41f 100644 --- a/compiler/rustc_hir/src/lang_items.rs +++ b/compiler/rustc_hir/src/lang_items.rs @@ -437,6 +437,9 @@ language_item_table! { DefaultTrait1, sym::default_trait1, default_trait1_trait, Target::Trait, GenericRequirement::None; ContractCheckEnsures, sym::contract_check_ensures, contract_check_ensures_fn, Target::Fn, GenericRequirement::None; + + // Reborrowing related lang-items + Reborrow, sym::reborrow, reborrow, Target::Trait, GenericRequirement::Exact(0); } /// The requirement imposed on the generics of a lang item |
