Updated to rustc 1.91.0-nightly (7ad23f43a 2025-09-09).

This commit is contained in:
Filipe Rodrigues 2025-09-23 19:24:37 +01:00
parent c852c5a116
commit 5da16e661f
Signed by: zenithsiz
SSH Key Fingerprint: SHA256:Mb5ppb3Sh7IarBO/sBTXLHbYEOz37hJAlslLQPPAPaU
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ where
/// Converts a handle to an opaque handle
#[must_use]
pub fn to_opaque<T>(handle: Handle<T>) -> OpaqueHandle
pub const fn to_opaque<T>(handle: Handle<T>) -> OpaqueHandle
where
T: 'static,
{

View File

@ -23,7 +23,7 @@ pub struct Handle<T: 'static> {
impl<T: 'static> Handle<T> {
/// Converts this handle to an opaque handle
pub fn into_opaque(self) -> OpaqueHandle {
pub const fn into_opaque(self) -> OpaqueHandle {
// Create the opaque handle and forget ourselves
// Note: This is to ensure we don't try to take the value in the [`Drop`] impl
let handle = OpaqueHandle {