Skip to content

Commit dc2b3ac

Browse files
committed
Remove lang items from the reference.
Fixes #19759
1 parent b7930d9 commit dc2b3ac

File tree

1 file changed

+1
-130
lines changed

1 file changed

+1
-130
lines changed

src/doc/reference.md

+1-130
Original file line numberDiff line numberDiff line change
@@ -2279,136 +2279,7 @@ The name `str_eq` has a special meaning to the Rust compiler, and the presence
22792279
of this definition means that it will use this definition when generating calls
22802280
to the string equality function.
22812281

2282-
A complete list of the built-in language items follows:
2283-
2284-
#### Built-in Traits
2285-
2286-
* `copy`
2287-
: Types that do not move ownership when used by-value.
2288-
* `drop`
2289-
: Have destructors.
2290-
* `send`
2291-
: Able to be sent across thread boundaries.
2292-
* `sized`
2293-
: Has a size known at compile time.
2294-
* `sync`
2295-
: Able to be safely shared between threads when aliased.
2296-
2297-
#### Operators
2298-
2299-
These language items are traits:
2300-
2301-
* `add`
2302-
: Elements can be added (for example, integers and floats).
2303-
* `sub`
2304-
: Elements can be subtracted.
2305-
* `mul`
2306-
: Elements can be multiplied.
2307-
* `div`
2308-
: Elements have a division operation.
2309-
* `rem`
2310-
: Elements have a remainder operation.
2311-
* `neg`
2312-
: Elements can be negated arithmetically.
2313-
* `not`
2314-
: Elements can be negated logically.
2315-
* `bitxor`
2316-
: Elements have an exclusive-or operation.
2317-
* `bitand`
2318-
: Elements have a bitwise `and` operation.
2319-
* `bitor`
2320-
: Elements have a bitwise `or` operation.
2321-
* `shl`
2322-
: Elements have a left shift operation.
2323-
* `shr`
2324-
: Elements have a right shift operation.
2325-
* `index`
2326-
: Elements can be indexed.
2327-
* `index_mut`
2328-
: ___Needs filling in___
2329-
* `eq`
2330-
: Elements can be compared for equality.
2331-
* `ord`
2332-
: Elements have a partial ordering.
2333-
* `deref`
2334-
: `*` can be applied, yielding a reference to another type.
2335-
* `deref_mut`
2336-
: `*` can be applied, yielding a mutable reference to another type.
2337-
2338-
These are functions:
2339-
2340-
* `fn`
2341-
: ___Needs filling in___
2342-
* `fn_mut`
2343-
: ___Needs filling in___
2344-
* `fn_once`
2345-
: ___Needs filling in___
2346-
* `str_eq`
2347-
: Compare two strings (`&str`) for equality.
2348-
* `strdup_uniq`
2349-
: Return a new unique string
2350-
containing a copy of the contents of a unique string.
2351-
2352-
#### Types
2353-
2354-
* `type_id`
2355-
: The type returned by the `type_id` intrinsic.
2356-
* `unsafe`
2357-
: A type whose contents can be mutated through an immutable reference.
2358-
2359-
#### Marker types
2360-
2361-
These types help drive the compiler's analysis
2362-
2363-
* `begin_unwind`
2364-
: ___Needs filling in___
2365-
* `no_copy_bound`
2366-
: This type does not implement "copy", even if eligible.
2367-
* `eh_personality`
2368-
: ___Needs filling in___
2369-
* `exchange_free`
2370-
: Free memory that was allocated on the exchange heap.
2371-
* `exchange_malloc`
2372-
: Allocate memory on the exchange heap.
2373-
* `closure_exchange_malloc`
2374-
: ___Needs filling in___
2375-
* `panic`
2376-
: Abort the program with an error.
2377-
* `fail_bounds_check`
2378-
: Abort the program with a bounds check error.
2379-
* `free`
2380-
: Free memory that was allocated on the managed heap.
2381-
* `gc`
2382-
: ___Needs filling in___
2383-
* `exchange_heap`
2384-
: ___Needs filling in___
2385-
* `iterator`
2386-
: ___Needs filling in___
2387-
* `contravariant_lifetime`
2388-
: The lifetime parameter should be considered contravariant.
2389-
* `covariant_lifetime`
2390-
: The lifetime parameter should be considered covariant.
2391-
* `invariant_lifetime`
2392-
: The lifetime parameter should be considered invariant.
2393-
* `malloc`
2394-
: Allocate memory on the managed heap.
2395-
* `owned_box`
2396-
: ___Needs filling in___
2397-
* `stack_exhausted`
2398-
: ___Needs filling in___
2399-
* `start`
2400-
: ___Needs filling in___
2401-
* `contravariant_type`
2402-
: The type parameter should be considered contravariant.
2403-
* `covariant_type`
2404-
: The type parameter should be considered covariant.
2405-
* `invariant_type`
2406-
: The type parameter should be considered invariant.
2407-
* `ty_desc`
2408-
: ___Needs filling in___
2409-
2410-
> **Note:** This list is likely to become out of date. We should auto-generate
2411-
> it from `librustc/middle/lang_items.rs`.
2282+
A complete list of the built-in language items will be added in the future.
24122283

24132284
### Inline attributes
24142285

0 commit comments

Comments
 (0)