From bb0d08432ee87054bbbda2cdef977fc5a28ee8de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=BClker?= Date: Thu, 13 Mar 2025 11:28:11 +0100 Subject: Migrate to the 2024 edition (#35755) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Migrate to 2024 edition Signed-off-by: Simon Wülker * Allow unsafe_op_in_unsafe_fn lint This lint warns by default in the 2024 edition, but is *way* too noisy for servo. We might enable it in the future, but not now. Signed-off-by: Simon Wülker * Compile using the 2024 edition Signed-off-by: Simon Wülker --------- Signed-off-by: Simon Wülker --- components/allocator/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/allocator/lib.rs') diff --git a/components/allocator/lib.rs b/components/allocator/lib.rs index 13f1d876eae..ed9ed7fc5fe 100644 --- a/components/allocator/lib.rs +++ b/components/allocator/lib.rs @@ -21,7 +21,7 @@ mod platform { /// /// Passing a non-heap allocated pointer to this function results in undefined behavior. pub unsafe extern "C" fn usable_size(ptr: *const c_void) -> usize { - tikv_jemallocator::usable_size(ptr) + unsafe { tikv_jemallocator::usable_size(ptr) } } /// Memory allocation APIs compatible with libc -- cgit v1.2.3