File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -395,34 +395,32 @@ pub const unsafe trait Allocator {
395395 }
396396}
397397
398- /// Internal trait for enabling dyn-compatible allocators.
398+ /// Internal trait for enabling dyn-compatible allocators. Do not manually call
399+ /// these methods; use their equivalents on `Allocator` instead.
399400///
400401/// # Safety
401402///
402403/// Same as [`Allocator`].
403404#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
405+ #[ rust_analyzer:: skip]
406+ #[ expect( missing_docs) ]
407+ #[ expect( clippy:: missing_safety_doc) ]
404408pub impl( self ) unsafe trait DynAllocator {
405- #[ doc( hidden) ]
406409 fn __dyn_allocate ( & self , layout : Layout ) -> Result < NonNull < [ u8 ] > , AllocError > ;
407- #[ doc( hidden) ]
408410 fn __dyn_allocate_zeroed ( & self , layout : Layout ) -> Result < NonNull < [ u8 ] > , AllocError > ;
409- #[ doc( hidden) ]
410411 unsafe fn __dyn_deallocate ( & self , ptr : NonNull < u8 > , layout : Layout ) ;
411- #[ doc( hidden) ]
412412 unsafe fn __dyn_grow (
413413 & self ,
414414 ptr : NonNull < u8 > ,
415415 old_layout : Layout ,
416416 new_layout : Layout ,
417417 ) -> Result < NonNull < [ u8 ] > , AllocError > ;
418- #[ doc( hidden) ]
419418 unsafe fn __dyn_grow_zeroed (
420419 & self ,
421420 ptr : NonNull < u8 > ,
422421 old_layout : Layout ,
423422 new_layout : Layout ,
424423 ) -> Result < NonNull < [ u8 ] > , AllocError > ;
425- #[ doc( hidden) ]
426424 unsafe fn __dyn_shrink (
427425 & self ,
428426 ptr : NonNull < u8 > ,
You can’t perform that action at this time.
0 commit comments