-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
A-layoutTopic: Related to data structure layout (`#[repr]`)Topic: Related to data structure layout (`#[repr]`)C-terminologyCategory: Discussing terminology -- which term to use, how to define it, adding it to the glossaryCategory: Discussing terminology -- which term to use, how to define it, adding it to the glossary
Description
The current definition of layout (https://github.com/rust-lang/unsafe-code-guidelines/blob/master/reference/src/glossary.md#layout) does not consider "niches" part of the type layout.
In this thread (#120 (comment)) it was argued that maybe we might want to change that and make them part of the layout of a type.
If we do that, we need to change the glossary, and distinguish that &mut T
and *mut T
don't have the same layout, because they don't have the same "niches".
cc @eddyb
Metadata
Metadata
Assignees
Labels
A-layoutTopic: Related to data structure layout (`#[repr]`)Topic: Related to data structure layout (`#[repr]`)C-terminologyCategory: Discussing terminology -- which term to use, how to define it, adding it to the glossaryCategory: Discussing terminology -- which term to use, how to define it, adding it to the glossary