File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,10 @@ points to are part of the same allocation (so in particular they all have to be
5050part of * some* allocation). The span of bytes it points to is determined by the
5151pointer value and the size of the pointee type. As a consequence, if the span is
5252empty, "dangling" is the same as "non-null". Note that slices point to their
53- entire range, so it's very important that the length metadata is never too
54- large. If for some reason this is too cumbersome, consider using raw pointers.
53+ entire range, so it's very important that the length metadata is never too large
54+ (in particular, allocations and therefore slices cannot be bigger than
55+ ` isize::MAX ` bytes). If for some reason this is too cumbersome, consider using
56+ raw pointers.
5557
5658That's it. That's all the causes of Undefined Behavior baked into Rust. Of
5759course, unsafe functions and traits are free to declare arbitrary other
You can’t perform that action at this time.
0 commit comments