We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
intrinsics::const_deallocate
1 parent 33eb941 commit a492e33Copy full SHA for a492e33
core/src/intrinsics.rs
@@ -1918,6 +1918,12 @@ extern "rust-intrinsic" {
1918
#[rustc_const_unstable(feature = "const_heap", issue = "79597")]
1919
pub fn const_allocate(size: usize, align: usize) -> *mut u8;
1920
1921
+ /// Deallocate a memory which allocated by `intrinsics::const_allocate` at compile time.
1922
+ /// Should not be called at runtime.
1923
+ #[rustc_const_unstable(feature = "const_heap", issue = "79597")]
1924
+ #[cfg(not(bootstrap))]
1925
+ pub fn const_deallocate(ptr: *mut u8, size: usize, align: usize);
1926
+
1927
/// Determines whether the raw bytes of the two values are equal.
1928
///
1929
/// This is particularly handy for arrays, since it allows things like just
0 commit comments