@@ -1120,7 +1120,8 @@ impl<T: ?Sized> *const T {
1120
1120
/// Behavior:
1121
1121
///
1122
1122
/// * Both the starting and resulting pointer must be either in bounds or one
1123
- /// byte past the end of the same allocated object.
1123
+ /// byte past the end of the same allocated object. Note that in Rust,
1124
+ /// every (stack-allocated) variable is considered a separate allocated object.
1124
1125
///
1125
1126
/// * The computed offset, **in bytes**, cannot overflow an `isize`.
1126
1127
///
@@ -1223,7 +1224,8 @@ impl<T: ?Sized> *const T {
1223
1224
/// Behavior:
1224
1225
///
1225
1226
/// * Both the starting and other pointer must be either in bounds or one
1226
- /// byte past the end of the same allocated object.
1227
+ /// byte past the end of the same allocated object. Note that in Rust,
1228
+ /// every (stack-allocated) variable is considered a separate allocated object.
1227
1229
///
1228
1230
/// * The distance between the pointers, **in bytes**, cannot overflow an `isize`.
1229
1231
///
@@ -1338,7 +1340,8 @@ impl<T: ?Sized> *const T {
1338
1340
/// Behavior:
1339
1341
///
1340
1342
/// * Both the starting and resulting pointer must be either in bounds or one
1341
- /// byte past the end of the same allocated object.
1343
+ /// byte past the end of the same allocated object. Note that in Rust,
1344
+ /// every (stack-allocated) variable is considered a separate allocated object.
1342
1345
///
1343
1346
/// * The computed offset, **in bytes**, cannot overflow an `isize`.
1344
1347
///
@@ -1395,7 +1398,8 @@ impl<T: ?Sized> *const T {
1395
1398
/// Behavior:
1396
1399
///
1397
1400
/// * Both the starting and resulting pointer must be either in bounds or one
1398
- /// byte past the end of the same allocated object.
1401
+ /// byte past the end of the same allocated object. Note that in Rust,
1402
+ /// every (stack-allocated) variable is considered a separate allocated object.
1399
1403
///
1400
1404
/// * The computed offset cannot exceed `isize::MAX` **bytes**.
1401
1405
///
@@ -1755,7 +1759,8 @@ impl<T: ?Sized> *mut T {
1755
1759
/// Behavior:
1756
1760
///
1757
1761
/// * Both the starting and resulting pointer must be either in bounds or one
1758
- /// byte past the end of the same allocated object.
1762
+ /// byte past the end of the same allocated object. Note that in Rust,
1763
+ /// every (stack-allocated) variable is considered a separate allocated object.
1759
1764
///
1760
1765
/// * The computed offset, **in bytes**, cannot overflow an `isize`.
1761
1766
///
@@ -1901,7 +1906,8 @@ impl<T: ?Sized> *mut T {
1901
1906
/// Behavior:
1902
1907
///
1903
1908
/// * Both the starting and other pointer must be either in bounds or one
1904
- /// byte past the end of the same allocated object.
1909
+ /// byte past the end of the same allocated object. Note that in Rust,
1910
+ /// every (stack-allocated) variable is considered a separate allocated object.
1905
1911
///
1906
1912
/// * The distance between the pointers, **in bytes**, cannot overflow an `isize`.
1907
1913
///
@@ -2005,7 +2011,8 @@ impl<T: ?Sized> *mut T {
2005
2011
/// Behavior:
2006
2012
///
2007
2013
/// * Both the starting and resulting pointer must be either in bounds or one
2008
- /// byte past the end of the same allocated object.
2014
+ /// byte past the end of the same allocated object. Note that in Rust,
2015
+ /// every (stack-allocated) variable is considered a separate allocated object.
2009
2016
///
2010
2017
/// * The computed offset, **in bytes**, cannot overflow an `isize`.
2011
2018
///
@@ -2062,7 +2069,8 @@ impl<T: ?Sized> *mut T {
2062
2069
/// Behavior:
2063
2070
///
2064
2071
/// * Both the starting and resulting pointer must be either in bounds or one
2065
- /// byte past the end of the same allocated object.
2072
+ /// byte past the end of the same allocated object. Note that in Rust,
2073
+ /// every (stack-allocated) variable is considered a separate allocated object.
2066
2074
///
2067
2075
/// * The computed offset cannot exceed `isize::MAX` **bytes**.
2068
2076
///
0 commit comments