Skip to content

Commit 1287300

Browse files
committed
List of all lang items in unstable book.
1 parent a4af930 commit 1287300

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

src/doc/unstable-book/src/language-features/lang-items.md

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,95 @@ A third function, `rust_eh_unwind_resume`, is also needed if the `custom_unwind_
227227
flag is set in the options of the compilation target. It allows customizing the
228228
process of resuming unwind at the end of the landing pads. The language item's name
229229
is `eh_unwind_resume`.
230+
231+
## List of all language items
232+
233+
This is a list of all language items in Rust along with where they are located in
234+
the source code.
235+
236+
- Primitives
237+
- `i8`: `libcore/num/mod.rs`
238+
- `i16`: `libcore/num/mod.rs`
239+
- `i32`: `libcore/num/mod.rs`
240+
- `i64`: `libcore/num/mod.rs`
241+
- `i128`: `libcore/num/mod.rs`
242+
- `isize`: `libcore/num/mod.rs`
243+
- `u8`: `libcore/num/mod.rs`
244+
- `u16`: `libcore/num/mod.rs`
245+
- `u32`: `libcore/num/mod.rs`
246+
- `u64`: `libcore/num/mod.rs`
247+
- `u128`: `libcore/num/mod.rs`
248+
- `usize`: `libcore/num/mod.rs`
249+
- `f32`: `libstd/f32.rs`
250+
- `f64`: `libstd/f64.rs`
251+
- `char`: `libstd_unicode/char.rs`
252+
- `slice`: `liballoc/slice.rs`
253+
- `str`: `liballoc/str.rs`
254+
- `const_ptr`: `libcore/ptr.rs`
255+
- `mut_ptr`: `libcore/ptr.rs`
256+
- `unsafe_cell`: `libcore/cell.rs`
257+
- Runtime
258+
- `start`: `libstd/rt.rs`
259+
- `eh_personality`: `libpanic_unwind/emcc.rs` (EMCC)
260+
- `eh_personality`: `libpanic_unwind/seh64_gnu.rs` (SEH64 GNU)
261+
- `eh_personality`: `libpanic_unwind/seh.rs` (SEH)
262+
- `eh_unwind_resume`: `libpanic_unwind/seh64_gnu.rs` (SEH64 GNU)
263+
- `eh_unwind_resume`: `libpanic_unwind/gcc.rs` (GCC)
264+
- `msvc_try_filter`: `libpanic_unwind/seh.rs` (SEH)
265+
- `panic`: `libcore/panicking.rs`
266+
- `panic_bounds_check`: `libcore/panicking.rs`
267+
- `panic_fmt`: `libcore/panicking.rs`
268+
- `panic_fmt`: `libstd/panicking.rs`
269+
- Allocations
270+
- `owned_box`: `liballoc/boxed.rs`
271+
- `exchange_malloc`: `liballoc/heap.rs`
272+
- `box_free`: `liballoc/heap.rs`
273+
- Operands
274+
- `not`: `libcore/ops/bit.rs`
275+
- `bitand`: `libcore/ops/bit.rs`
276+
- `bitor`: `libcore/ops/bit.rs`
277+
- `bitxor`: `libcore/ops/bit.rs`
278+
- `shl`: `libcore/ops/bit.rs`
279+
- `shr`: `libcore/ops/bit.rs`
280+
- `bitand_assign`: `libcore/ops/bit.rs`
281+
- `bitor_assign`: `libcore/ops/bit.rs`
282+
- `bitxor_assign`: `libcore/ops/bit.rs`
283+
- `shl_assign`: `libcore/ops/bit.rs`
284+
- `shr_assign`: `libcore/ops/bit.rs`
285+
- `deref`: `libcore/ops/deref.rs`
286+
- `deref_mut`: `libcore/ops/deref.rs`
287+
- `index`: `libcore/ops/index.rs`
288+
- `index_mut`: `libcore/ops/index.rs`
289+
- `add`: `libcore/ops/arith.rs`
290+
- `sub`: `libcore/ops/arith.rs`
291+
- `mul`: `libcore/ops/arith.rs`
292+
- `div`: `libcore/ops/arith.rs`
293+
- `rem`: `libcore/ops/arith.rs`
294+
- `neg`: `libcore/ops/arith.rs`
295+
- `add_assign`: `libcore/ops/arith.rs`
296+
- `sub_assign`: `libcore/ops/arith.rs`
297+
- `mul_assign`: `libcore/ops/arith.rs`
298+
- `div_assign`: `libcore/ops/arith.rs`
299+
- `rem_assign`: `libcore/ops/arith.rs`
300+
- `eq`: `libcore/cmp.rs`
301+
- `ord`: `libcore/cmp.rs`
302+
- Functions
303+
- `fn`: `libcore/ops/function.rs`
304+
- `fn_mut`: `libcore/ops/function.rs`
305+
- `fn_once`: `libcore/ops/function.rs`
306+
- `generator_state`: `libcore/ops/generator.rs`
307+
- `generator`: `libcore/ops/generator.rs`
308+
- Other
309+
- `coerce_unsized`: `libcore/ops/unsize.rs`
310+
- `drop`: `libcore/ops/drop.rs`
311+
- `drop_in_place`: `libcore/ptr.rs`
312+
- `clone`: `libcore/clone.rs`
313+
- `copy`: `libcore/marker.rs`
314+
- `send`: `libcore/marker.rs`
315+
- `sized`: `libcore/marker.rs`
316+
- `unsize`: `libcore/marker.rs`
317+
- `sync`: `libcore/marker.rs`
318+
- `phantom_data`: `libcore/marker.rs`
319+
- `freeze`: `libcore/marker.rs`
320+
- `debug_trait`: `libcore/fmt/mod.rs`
321+
- `non_zero`: `libcore/nonzero.rs`

0 commit comments

Comments
 (0)