rust/src
bors 50fc24d8a1 Auto merge of #72717 - poliorcetics:try-from-int-to-nzint, r=dtolnay
Add TryFrom<{int}> for NonZero{int}

Adds `TryFrom<{int}> for NonZero{int}`.

It uses the existing `NonZero{int}::new()` and `Option::ok_or()` functions, meaning the checks are not repeated.

I also added tests, I tried to follow the convention I saw in the test file.

I also used `#[stable(feature = "nzint_try_from_int_conv", since = "1.46.0")]`, but I have no idea if the feature/version are correctly named or even correct.
2020-06-25 17:37:02 +00:00
..
bootstrap Rollup merge of #73590 - davidtwco:bootstrap-fix-config-env-var, r=Mark-Simulacrum 2020-06-23 00:34:06 -07:00
build_helper
ci Auto merge of #73563 - Manishearth:rollup-oowgwwm, r=Manishearth 2020-06-20 22:53:46 +00:00
doc Update books 2020-06-23 17:56:33 -07:00
etc Implement new gdb/lldb pretty-printers 2020-06-09 16:13:11 +03:00
liballoc Rollup merge of #73616 - pickfire:liballoc-hash, r=joshtriplett 2020-06-25 02:03:36 +02:00
libcore Auto merge of #72717 - poliorcetics:try-from-int-to-nzint, r=dtolnay 2020-06-25 17:37:02 +00:00
libpanic_abort lints: add improper_ctypes_definitions 2020-06-24 12:09:35 +01:00
libpanic_unwind lints: add improper_ctypes_definitions 2020-06-24 12:09:35 +01:00
libproc_macro
libprofiler_builtins
librustc_apfloat Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
librustc_arena Rollup merge of #73378 - matthewjasper:arena-not-special, r=oli-obk 2020-06-20 14:45:00 -07:00
librustc_ast Rollup merge of #73364 - joshtriplett:inline-asm, r=Amanieu 2020-06-19 09:15:14 -07:00
librustc_ast_lowering Rollup merge of #73587 - marmeladema:hir-id-ification-final, r=petrochenkov 2020-06-23 13:10:09 -07:00
librustc_ast_passes [AVR] Add AVR platform support 2020-06-09 17:34:07 +12:00
librustc_ast_pretty Remove unused crate imports in 2018 edition crates 2020-06-23 05:01:20 +02:00
librustc_attr Make things build again 2020-06-02 20:38:24 +03:00
librustc_builtin_macros Run ./x.py fmt 2020-06-20 11:12:43 -07:00
librustc_codegen_llvm Rollup merge of #73665 - alexcrichton:update-wasm-atomics-feature, r=davidtwco 2020-06-23 13:10:19 -07:00
librustc_codegen_ssa rustc: Modernize wasm checks for atomics 2020-06-23 09:41:56 -07:00
librustc_data_structures Remove unused crate imports in 2018 edition crates 2020-06-23 05:01:20 +02:00
librustc_driver Fix -Z unpretty=everybody_loops 2020-06-19 20:27:22 -04:00
librustc_error_codes Auto merge of #73643 - Manishearth:rollup-68dr8fz, r=Manishearth 2020-06-23 07:50:51 +00:00
librustc_errors track caller for delay_span_bug 2020-06-15 18:25:58 -05:00
librustc_expand Always capture tokens for macro_rules! arguments 2020-06-15 11:50:27 -04:00
librustc_feature Rollup merge of #73398 - oli-obk:const_raw_ptr_cmp, r=varkor,RalfJung,nagisa 2020-06-23 00:33:54 -07:00
librustc_fs_util
librustc_graphviz Rename the crates in source code 2020-06-02 20:42:54 +03:00
librustc_hir Implement associated lang items 2020-06-24 19:08:11 -04:00
librustc_hir_pretty Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis 2020-06-15 04:10:24 +00:00
librustc_incremental Remove associated opaque types 2020-06-11 16:24:01 +01:00
librustc_index Make things build again 2020-06-02 20:38:24 +03:00
librustc_infer Rollup merge of #73630 - estebank:fn-item-e0308, r=davidtwco 2020-06-23 13:10:17 -07:00
librustc_interface Rollup merge of #73587 - marmeladema:hir-id-ification-final, r=petrochenkov 2020-06-23 13:10:09 -07:00
librustc_lexer Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay 2020-06-12 12:28:23 +02:00
librustc_lint improper_ctypes: only allow params in defns mode 2020-06-24 12:09:39 +01:00
librustc_llvm lints: add improper_ctypes_definitions 2020-06-24 12:09:35 +01:00
librustc_macros Use min_specialization in the remaining rustc crates 2020-06-10 09:05:52 +01:00
librustc_metadata Rollup merge of #73587 - marmeladema:hir-id-ification-final, r=petrochenkov 2020-06-23 13:10:09 -07:00
librustc_middle Rollup merge of #73488 - richkadel:llvm-coverage-map-gen, r=tmandry 2020-06-23 13:10:05 -07:00
librustc_mir Rollup merge of #73613 - oli-obk:const_prop_miscompile, r=wesleywiser 2020-06-23 13:10:13 -07:00
librustc_mir_build Make is_freeze and is_copy_modulo_regions take TyCtxtAt 2020-06-21 11:47:19 +02:00
librustc_parse Auto merge of #73293 - Aaron1011:feature/macro-rules-arg-capture, r=petrochenkov 2020-06-24 01:24:38 +00:00
librustc_parse_format asm: Allow multiple template strings; interpret them as newline-separated 2020-06-15 12:35:27 -07:00
librustc_passes Implement associated lang items 2020-06-24 19:08:11 -04:00
librustc_plugin_impl
librustc_privacy make all uses of ty::Error or ConstKind::Error delay a span bug 2020-06-15 18:25:58 -05:00
librustc_query_system Remove uses of Vec::remove_item 2020-06-20 12:12:28 +02:00
librustc_resolve Rollup merge of #73652 - da-x:add-reexported-to-use-suggestions, r=petrochenkov 2020-06-24 14:28:43 +02:00
librustc_save_analysis save_analysis: improve handling of enum struct variant 2020-06-19 10:35:44 +01:00
librustc_serialize Use min_specialization in the remaining rustc crates 2020-06-10 09:05:52 +01:00
librustc_session Rollup merge of #73523 - jyn514:everybody_loops, r=ecstatic-morse 2020-06-23 13:10:07 -07:00
librustc_span Rollup merge of #73665 - alexcrichton:update-wasm-atomics-feature, r=davidtwco 2020-06-23 13:10:19 -07:00
librustc_symbol_mangling make all uses of ty::Error or ConstKind::Error delay a span bug 2020-06-15 18:25:58 -05:00
librustc_target Rollup merge of #73516 - Crabapple-iOS:feature/apple-dynamic-linking, r=nikomatsakis 2020-06-25 02:03:34 +02:00
librustc_trait_selection Implement associated lang items 2020-06-24 19:08:11 -04:00
librustc_traits Return type is bound too 2020-06-19 14:05:14 -04:00
librustc_ty Make is_freeze and is_copy_modulo_regions take TyCtxtAt 2020-06-21 11:47:19 +02:00
librustc_typeck Rollup merge of #73630 - estebank:fn-item-e0308, r=davidtwco 2020-06-23 13:10:17 -07:00
librustdoc Auto merge of #73669 - Manishearth:rollup-0n4u7vq, r=Manishearth 2020-06-23 21:33:22 +00:00
libstd Rollup merge of #73688 - poliorcetics:self-keyword, r=joshtriplett 2020-06-25 02:03:40 +02:00
libterm
libtest typo: awailable -> available 2020-06-08 13:37:58 -07:00
libunwind Rollup merge of #73187 - mati865:bootstrap-cleanup, r=Mark-Simulacrum 2020-06-12 00:05:31 +02:00
llvm-project@0ddefeca92 Update LLVM submodule 2020-06-13 19:54:09 +01:00
rtstartup
rustc
rustllvm Rollup merge of #73347 - tmiasko:incompatible-sanitizers, r=nikic 2020-06-19 19:42:55 -07:00
stdarch@45340c0e2f Update stdarch submodule to latest head 2020-05-31 00:12:59 +02:00
test Auto merge of #73711 - Dylan-DPC:rollup-kzx15of, r=Dylan-DPC 2020-06-25 12:43:50 +00:00
tools Auto merge of #73660 - flip1995:clippyup, r=nikomatsakis 2020-06-24 19:33:02 +00:00
README.md
stage0.txt Update bootstrap to rustc 1.45.0-beta.2 (1dc0f6d8e 2020-06-15) 2020-06-20 11:13:47 -07:00

This directory contains the source code of the rust project, including:

  • rustc and its tests
  • libstd
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.