File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ r[undefined.asm]
79
79
r[ undefined.const-transmute-ptr2int]
80
80
* ** In [ const context] ( const_eval.md#const-context ) ** : transmuting or otherwise
81
81
reinterpreting a pointer (reference, raw pointer, or function pointer) into
82
- some allocated object as a non-pointer type (such as integers).
82
+ some allocation as a non-pointer type (such as integers).
83
83
'Reinterpreting' refers to loading the pointer value at integer type without a
84
84
cast, e.g. by doing raw pointer casts or using a union.
85
85
Original file line number Diff line number Diff line change @@ -10,18 +10,18 @@ StaticItem ->
10
10
[ ^ extern-safety ] : The ` safe ` and ` unsafe ` function qualifiers are only allowed semantically within ` extern ` blocks.
11
11
12
12
r[ items.static.intro]
13
- A * static item* is similar to a [ constant] , except that it represents an allocated object in the
13
+ A * static item* is similar to a [ constant] , except that it represents an allocation in the
14
14
program that is initialized with the initializer expression. All references and raw pointers to the
15
- static refer to the same allocated object .
15
+ static refer to the same allocation .
16
16
17
17
r[ items.static.lifetime]
18
18
Static items have the ` static ` lifetime, which outlives all other lifetimes in a Rust program.
19
19
Static items do not call [ ` drop ` ] at the end of the program.
20
20
21
21
r[ items.static.storage-disjointness]
22
- If the ` static ` has a size of at least 1 byte, this allocated object is disjoint from all other such
23
- ` static ` objects as well as heap allocations and stack-allocated variables. However, the storage of
24
- immutable ` static ` items can overlap with objects that do not themselves have a unique address, such
22
+ If the ` static ` has a size of at least 1 byte, this allocation is disjoint from all other such
23
+ ` static ` allocations as well as heap allocations and stack-allocated variables. However, the storage of
24
+ immutable ` static ` items can overlap with allocations that do not themselves have a unique address, such
25
25
as [ promoteds] and [ ` const ` items] [ constant ] .
26
26
27
27
r[ items.static.namespace]
You can’t perform that action at this time.
0 commit comments