@@ -2099,10 +2099,6 @@ unless they contain managed boxes, managed closures, or references.
2099
2099
These are types that are safe to be used across several threads with access to
2100
2100
a `&T` pointer. `MutexArc` is an example of a *sharable* type with internal mutable data.
2101
2101
2102
- * `Freeze` - Constant (immutable) types.
2103
- These are types that do not contain anything intrinsically mutable.
2104
- Intrinsically mutable values include `Cell` in the standard library.
2105
-
2106
2102
* `'static` - Non-borrowed types.
2107
2103
These are types that do not contain any data whose lifetime is bound to
2108
2104
a particular stack frame. These are types that do not contain any
@@ -2152,7 +2148,7 @@ We say that the `Printable` trait _provides_ a `print` method with the
2152
2148
given signature. This means that we can call `print` on an argument
2153
2149
of any type that implements the `Printable` trait.
2154
2150
2155
- Rust's built-in `Send` and `Freeze ` types are examples of traits that
2151
+ Rust's built-in `Send` and `Share ` types are examples of traits that
2156
2152
don't provide any methods.
2157
2153
2158
2154
Traits may be implemented for specific types with [impls]. An impl for
@@ -2444,15 +2440,15 @@ Consequently, the trait objects themselves automatically fulfill their
2444
2440
respective kind bounds. However, this default behavior can be overridden by
2445
2441
specifying a list of bounds on the trait type, for example, by writing `~Trait:`
2446
2442
(which indicates that the contents of the owned trait need not fulfill any
2447
- bounds), or by writing `~Trait:Send+Freeze `, which indicates that in addition
2448
- to fulfilling `Send`, contents must also fulfill `Freeze `, and as a consequence,
2449
- the trait itself fulfills `Freeze `.
2443
+ bounds), or by writing `~Trait:Send+Share `, which indicates that in addition
2444
+ to fulfilling `Send`, contents must also fulfill `Share `, and as a consequence,
2445
+ the trait itself fulfills `Share `.
2450
2446
2451
2447
* `~Trait:Send` is equivalent to `~Trait`.
2452
2448
* `&Trait:` is equivalent to `&Trait`.
2453
2449
2454
2450
Builtin kind bounds can also be specified on closure types in the same way (for
2455
- example, by writing `fn:Freeze ()`), and the default behaviours are the same as
2451
+ example, by writing `fn:Send ()`), and the default behaviours are the same as
2456
2452
for traits of the same storage class.
2457
2453
2458
2454
## Trait inheritance
0 commit comments