rust/src
Yuki Okushi 829a3635e4
Rollup merge of #68856 - Centril:or-pat-ref-pat, r=matthewjasper
typeck: clarify def_bm adjustments & add tests for or-patterns

Clarify the adjustment algorithm for the expected type / default binding-modes when type checking patterns with more documentation and tweaks that make the algorithm more independent of the pattern forms.

Also resolve the FIXME noted for or-patterns by deciding that the current implementation is correct, noting the rationale and adding tests for the current implementation.

cc https://github.com/rust-lang/rust/issues/54883

r? @oli-obk @varkor
2020-02-15 07:17:47 +09:00
..
bootstrap Rollup merge of #69104 - tmiasko:configure-cmake, r=Mark-Simulacrum 2020-02-13 02:52:59 +01:00
build_helper
ci Rollup merge of #68947 - chrissimpkins:python-fmt, r=alexcrichton 2020-02-12 18:55:41 +09:00
doc Rollup merge of #68824 - ajpaverd:cfguard-rustbuild, r=Mark-Simulacrum 2020-02-11 16:36:57 +01:00
etc Rollup merge of #69049 - pthariensflame:improvement/imgbot, r=GuillaumeGomez 2020-02-13 02:52:53 +01:00
liballoc Rollup merge of #69058 - TimDiekmann:box, r=Amanieu 2020-02-12 18:55:48 +09:00
libarena
libcore Add trait Self filtering to rustc_on_unimplemented 2020-02-12 17:26:49 -08:00
libfmt_macros
libgraphviz Add option to dot::render for monospace font 2020-02-09 10:33:06 -08:00
libpanic_abort
libpanic_unwind Drop cfg(bootstrap) code 2020-01-31 12:31:09 -05:00
libproc_macro
libprofiler_builtins
librustc Rollup merge of #68475 - Aaron1011:fix/forest-caching, r=nikomatsakis 2020-02-15 07:17:45 +09:00
librustc_apfloat
librustc_ast_lowering IsAsync -> enum Async { Yes { span: Span, .. }, No } 2020-02-13 10:39:24 +01:00
librustc_ast_passes ast_validation: tweak diagnostic output 2020-02-13 10:40:17 +01:00
librustc_ast_pretty parser: unify item list parsing. 2020-02-13 15:16:29 +01:00
librustc_attr Auto merge of #68491 - pnkfelix:hide-niches-under-unsafe-cell, r=oli 2020-02-11 20:48:27 +00:00
librustc_builtin_macros rustc_bulltin_macros: tweak span_labels 2020-02-13 10:40:17 +01:00
librustc_codegen_llvm add selfprofiling for new llvm passmanager 2020-02-13 08:02:18 +01:00
librustc_codegen_ssa rename PanicInfo -> AssertKind 2020-02-13 11:04:49 +01:00
librustc_codegen_utils Remove unused feature gates from cg_ssa and cg_utils 2020-02-04 19:18:10 +01:00
librustc_data_structures Rollup merge of #68475 - Aaron1011:fix/forest-caching, r=nikomatsakis 2020-02-15 07:17:45 +09:00
librustc_driver Rollup merge of #69059 - ljedrz:unused_stuff, r=Dylan-DPC 2020-02-12 14:21:14 +01:00
librustc_error_codes Rollup merge of #69055 - GuillaumeGomez:clean-up-e0307, r=Dylan-DPC 2020-02-11 16:37:06 +01:00
librustc_errors Auto merge of #69062 - Dylan-DPC:rollup-7wpjpqu, r=Dylan-DPC 2020-02-11 17:45:49 +00:00
librustc_expand Rollup merge of #69057 - Centril:clean-expand, r=petrochenkov 2020-02-13 21:28:05 +01:00
librustc_feature Add #[repr(no_niche)]. 2020-02-10 14:44:12 -05:00
librustc_fs_util
librustc_hir Make TraitCandidate generic. 2020-02-13 16:47:51 +01:00
librustc_incremental Rollup merge of #66498 - bjorn3:less_feature_flags, r=Dylan-DPC 2020-02-11 16:36:54 +01:00
librustc_index index ReEmpty by universe 2020-02-06 15:58:00 -05:00
librustc_interface Move resolve_instance to rustc_ty. 2020-02-13 18:53:21 +01:00
librustc_lexer Spelling error "represening" to "representing" 2020-02-13 11:14:21 -05:00
librustc_lint Constness -> enum Const { Yes(Span), No } 2020-02-13 10:39:23 +01:00
librustc_llvm
librustc_macros remove some dependencies on itertools 2020-02-11 19:28:38 +01:00
librustc_metadata Rollup merge of #66498 - bjorn3:less_feature_flags, r=Dylan-DPC 2020-02-11 16:36:54 +01:00
librustc_mir Rollup merge of #69126 - RalfJung:exact-div, r=oli-obk 2020-02-13 21:28:09 +01:00
librustc_mir_build rename PanicInfo -> AssertKind 2020-02-13 11:04:49 +01:00
librustc_parse Rollup merge of #69057 - Centril:clean-expand, r=petrochenkov 2020-02-13 21:28:05 +01:00
librustc_passes Rollup merge of #68554 - cjgillot:lang_items, r=Zoxc 2020-02-12 18:55:37 +09:00
librustc_plugin_impl remove rustc_error_codes deps except in rustc_driver 2020-01-18 21:53:53 +01:00
librustc_privacy Move more into decorate functions. 2020-02-11 19:50:26 +10:00
librustc_resolve Rollup merge of #69108 - cjgillot:trait_candidate, r=Zoxc 2020-02-13 21:28:06 +01:00
librustc_save_analysis IsAsync -> enum Async { Yes { span: Span, .. }, No } 2020-02-13 10:39:24 +01:00
librustc_session add selfprofiling for new llvm passmanager 2020-02-13 08:02:18 +01:00
librustc_span Auto merge of #68491 - pnkfelix:hide-niches-under-unsafe-cell, r=oli 2020-02-11 20:48:27 +00:00
librustc_target Properly use the darwin archive format on Apple targets 2020-02-12 12:06:14 +01:00
librustc_traits Reduce the number of RefCells in InferCtxt. 2020-02-10 08:55:34 +11:00
librustc_ty Move resolve_instance to rustc_ty. 2020-02-13 18:53:21 +01:00
librustc_typeck Rollup merge of #68856 - Centril:or-pat-ref-pat, r=matthewjasper 2020-02-15 07:17:47 +09:00
librustdoc Constness -> enum Const { Yes(Span), No } 2020-02-13 10:39:23 +01:00
libserialize Rollup merge of #69050 - nnethercote:micro-optimize-leb128, r=michaelwoerister 2020-02-13 02:52:54 +01:00
libstd Add comment to SGX entry code 2020-02-13 10:16:28 +01:00
libsyntax parser: fuse free fn parsing together. 2020-02-13 10:39:24 +01:00
libterm
libtest Respect --nocapture in panic=abort test mode 2020-02-06 14:43:53 -08:00
libunwind
llvm-project@d7cdb43592 Fix LLVM assertion failure in MSP430 interrupt generation. 2020-01-27 10:42:48 -05:00
rtstartup
rustc
rustllvm Auto merge of #69144 - Dylan-DPC:rollup-apt6zjj, r=Dylan-DPC 2020-02-13 22:20:58 +00:00
stdarch@dea57529b3 stdarch: update submodule. 2020-02-01 22:04:18 -05:00
test Rollup merge of #68856 - Centril:or-pat-ref-pat, r=matthewjasper 2020-02-15 07:17:47 +09:00
tools update miri 2020-02-14 09:41:32 +01:00
README.md
stage0.txt Bump rustfmt and stage0 2020-01-31 12:31:09 -05: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 guide.