Skip to content

Commit c392775

Browse files
authored
Merge pull request #249 from RalfJung/ptr-layout
add note that pointer layout information is preliminary
2 parents 9c4b331 + cd0f553 commit c392775

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

reference/src/layout/pointers.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Layout of reference and pointer types
22

3+
**Disclaimer:** Everything this section says about pointers to dynamically sized
4+
types represents the consensus from issue [#16], but has not been stabilized
5+
through an RFC. As such, this is preliminary information.
6+
7+
[#16]: https://github.com/rust-rfcs/unsafe-code-guidelines/issues/16
8+
39
### Terminology
410

511
Reference types are types of the form `&T`, `&mut T`.

reference/src/layout/scalars.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Layout of scalar types
22

3-
This chapter represents the consensus from issue [#9]. It documents the memory
4-
layout and considerations for `bool`, `char`, floating point types (`f{32, 64}`),
5-
and integral types (`{i,u}{8,16,32,64,128,size}`).
3+
**Disclaimer:** This chapter represents the consensus from issue
4+
[#9]. The statements in here are not (yet) "guaranteed"
5+
not to change until an RFC ratifies them.
66

7+
This documents the memory layout and considerations for `bool`, `char`, floating
8+
point types (`f{32, 64}`), and integral types (`{i,u}{8,16,32,64,128,size}`).
79
These types are all scalar types, representing a single value, and have no
810
layout `#[repr()]` flags.
911

0 commit comments

Comments
 (0)