contracts: added lang items that act as hooks for rustc-injected code to invoke.

see test for an example of the kind of injected code that is anticipated here.
This commit is contained in:
Felix S. Klock II
2024-12-02 21:16:35 +00:00
committed by Celina G. Val
parent bcb8565f30
commit 777def87d5
5 changed files with 90 additions and 0 deletions

View File

@@ -114,6 +114,7 @@
#![feature(bstr)]
#![feature(bstr_internals)]
#![feature(const_carrying_mul_add)]
#![feature(closure_track_caller)]
#![feature(const_eval_select)]
#![feature(core_intrinsics)]
#![feature(coverage_attribute)]
@@ -246,6 +247,10 @@ pub mod autodiff {
pub use crate::macros::builtin::autodiff;
}
#[cfg(not(bootstrap))]
#[unstable(feature = "rustc_contracts", issue = "none")]
pub mod contracts;
#[unstable(feature = "cfg_match", issue = "115585")]
pub use crate::macros::cfg_match;