@@ -2279,136 +2279,7 @@ The name `str_eq` has a special meaning to the Rust compiler, and the presence
2279
2279
of this definition means that it will use this definition when generating calls
2280
2280
to the string equality function.
2281
2281
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.
2412
2283
2413
2284
### Inline attributes
2414
2285
0 commit comments