Skip to content

Commit c69f7a9

Browse files
committed
Sort Marker types and add missing language items
1 parent 2867d1f commit c69f7a9

File tree

1 file changed

+54
-22
lines changed

1 file changed

+54
-22
lines changed

src/doc/rust.md

Lines changed: 54 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2146,6 +2146,8 @@ These language items are traits:
21462146
: Elements have a right shift operation.
21472147
* `index`
21482148
: Elements can be indexed.
2149+
* `index_mut`
2150+
: ___Needs filling in___
21492151
* `eq`
21502152
: Elements can be compared for equality.
21512153
* `ord`
@@ -2155,9 +2157,14 @@ These language items are traits:
21552157
* `deref_mut`
21562158
: `*` can be applied, yielding a mutable reference to another type
21572159

2158-
21592160
These are functions:
21602161

2162+
* `fn`
2163+
: ___Needs filling in___
2164+
* `fn_mut`
2165+
: ___Needs filling in___
2166+
* `fn_once`
2167+
: ___Needs filling in___
21612168
* `str_eq`
21622169
: Compare two strings (`&str`) for equality.
21632170
* `strdup_uniq`
@@ -2175,39 +2182,64 @@ These are functions:
21752182

21762183
These types help drive the compiler's analysis
21772184

2178-
* `covariant_type`
2179-
: The type parameter should be considered covariant
2180-
* `contravariant_type`
2181-
: The type parameter should be considered contravariant
2182-
* `invariant_type`
2183-
: The type parameter should be considered invariant
2184-
* `covariant_lifetime`
2185-
: The lifetime parameter should be considered covariant
2186-
* `contravariant_lifetime`
2187-
: The lifetime parameter should be considered contravariant
2188-
* `invariant_lifetime`
2189-
: The lifetime parameter should be considered invariant
2190-
* `no_send_bound`
2191-
: This type does not implement "send", even if eligible
2185+
* `begin_unwind`
2186+
: ___Needs filling in___
21922187
* `no_copy_bound`
21932188
: This type does not implement "copy", even if eligible
2189+
* `no_send_bound`
2190+
: This type does not implement "send", even if eligible
21942191
* `no_sync_bound`
21952192
: This type does not implement "sync", even if eligible
21962193
* `managed_bound`
21972194
: This type implements "managed"
2198-
2195+
* `eh_personality`
2196+
: ___Needs filling in___
2197+
* `exchange_free`
2198+
: Free memory that was allocated on the exchange heap.
2199+
* `exchange_malloc`
2200+
: Allocate memory on the exchange heap.
2201+
* `closure_exchange_malloc`
2202+
: ___Needs filling in___
21992203
* `fail_`
22002204
: Abort the program with an error.
22012205
* `fail_bounds_check`
22022206
: Abort the program with a bounds check error.
2203-
* `exchange_malloc`
2204-
: Allocate memory on the exchange heap.
2205-
* `exchange_free`
2206-
: Free memory that was allocated on the exchange heap.
2207-
* `malloc`
2208-
: Allocate memory on the managed heap.
22092207
* `free`
22102208
: Free memory that was allocated on the managed heap.
2209+
* `gc`
2210+
: ___Needs filling in___
2211+
* `exchange_heap`
2212+
: ___Needs filling in___
2213+
* `managed_heap`
2214+
: ___Needs filling in___
2215+
* `iterator`
2216+
: ___Needs filling in___
2217+
* `contravariant_lifetime`
2218+
: The lifetime parameter should be considered contravariant
2219+
* `covariant_lifetime`
2220+
: The lifetime parameter should be considered covariant
2221+
* `invariant_lifetime`
2222+
: The lifetime parameter should be considered invariant
2223+
* `malloc`
2224+
: Allocate memory on the managed heap.
2225+
* `opaque`
2226+
: ___Needs filling in___
2227+
* `owned_box`
2228+
: ___Needs filling in___
2229+
* `stack_exhausted`
2230+
: ___Needs filling in___
2231+
* `start`
2232+
: ___Needs filling in___
2233+
* `contravariant_type`
2234+
: The type parameter should be considered contravariant
2235+
* `covariant_type`
2236+
: The type parameter should be considered covariant
2237+
* `invariant_type`
2238+
: The type parameter should be considered invariant
2239+
* `ty_desc`
2240+
: ___Needs filling in___
2241+
* `ty_visitor`
2242+
: ___Needs filling in___
22112243

22122244
> **Note:** This list is likely to become out of date. We should auto-generate it
22132245
> from `librustc/middle/lang_items.rs`.

0 commit comments

Comments
 (0)