@@ -110,7 +110,7 @@ impl Layout {
110
110
111
111
/// Creates a layout, bypassing all checks.
112
112
///
113
- /// # Unsafety
113
+ /// # Safety
114
114
///
115
115
/// This function is unsafe as it does not verify that `align` is
116
116
/// a power-of-two that is also less than or equal to 2^31, nor
@@ -485,7 +485,7 @@ pub unsafe trait Alloc {
485
485
/// behavior, e.g. to ensure initialization to particular sets of
486
486
/// bit patterns.)
487
487
///
488
- /// # Unsafety
488
+ /// # Safety
489
489
///
490
490
/// This function is unsafe because undefined behavior can result
491
491
/// if the caller does not ensure that `layout` has non-zero size.
@@ -513,7 +513,7 @@ pub unsafe trait Alloc {
513
513
514
514
/// Deallocate the memory referenced by `ptr`.
515
515
///
516
- /// # Unsafety
516
+ /// # Safety
517
517
///
518
518
/// This function is unsafe because undefined behavior can result
519
519
/// if the caller does not ensure all of the following:
@@ -617,7 +617,7 @@ pub unsafe trait Alloc {
617
617
/// behavior is well-defined (though underspecified) when this
618
618
/// constraint is violated; further discussion below.
619
619
///
620
- /// # Unsafety
620
+ /// # Safety
621
621
///
622
622
/// This function is unsafe because undefined behavior can result
623
623
/// if the caller does not ensure all of the following:
@@ -688,7 +688,7 @@ pub unsafe trait Alloc {
688
688
/// Behaves like `alloc`, but also ensures that the contents
689
689
/// are set to zero before being returned.
690
690
///
691
- /// # Unsafety
691
+ /// # Safety
692
692
///
693
693
/// This function is unsafe for the same reasons that `alloc` is.
694
694
///
@@ -714,7 +714,7 @@ pub unsafe trait Alloc {
714
714
/// the returned block. For some `layout` inputs, like arrays, this
715
715
/// may include extra storage usable for additional data.
716
716
///
717
- /// # Unsafety
717
+ /// # Safety
718
718
///
719
719
/// This function is unsafe for the same reasons that `alloc` is.
720
720
///
@@ -736,7 +736,7 @@ pub unsafe trait Alloc {
736
736
/// the returned block. For some `layout` inputs, like arrays, this
737
737
/// may include extra storage usable for additional data.
738
738
///
739
- /// # Unsafety
739
+ /// # Safety
740
740
///
741
741
/// This function is unsafe for the same reasons that `realloc` is.
742
742
///
@@ -770,7 +770,7 @@ pub unsafe trait Alloc {
770
770
/// memory block referenced by `ptr` has not been transferred, and
771
771
/// the contents of the memory block are unaltered.
772
772
///
773
- /// # Unsafety
773
+ /// # Safety
774
774
///
775
775
/// This function is unsafe because undefined behavior can result
776
776
/// if the caller does not ensure all of the following:
@@ -827,7 +827,7 @@ pub unsafe trait Alloc {
827
827
/// the memory block has not been transferred, and the contents of
828
828
/// the memory block are unaltered.
829
829
///
830
- /// # Unsafety
830
+ /// # Safety
831
831
///
832
832
/// This function is unsafe because undefined behavior can result
833
833
/// if the caller does not ensure all of the following:
@@ -920,7 +920,7 @@ pub unsafe trait Alloc {
920
920
///
921
921
/// Captures a common usage pattern for allocators.
922
922
///
923
- /// # Unsafety
923
+ /// # Safety
924
924
///
925
925
/// This function is unsafe because undefined behavior can result
926
926
/// if the caller does not ensure both:
@@ -993,7 +993,7 @@ pub unsafe trait Alloc {
993
993
/// The returned block is suitable for passing to the
994
994
/// `alloc`/`realloc` methods of this allocator.
995
995
///
996
- /// # Unsafety
996
+ /// # Safety
997
997
///
998
998
/// This function is unsafe because undefined behavior can result
999
999
/// if the caller does not ensure all of the following:
@@ -1037,7 +1037,7 @@ pub unsafe trait Alloc {
1037
1037
///
1038
1038
/// Captures a common usage pattern for allocators.
1039
1039
///
1040
- /// # Unsafety
1040
+ /// # Safety
1041
1041
///
1042
1042
/// This function is unsafe because undefined behavior can result
1043
1043
/// if the caller does not ensure both:
0 commit comments