rust/src
David Wood 3a88cd7778
Implement #[non_exhaustive] on variants.
This commit removes the check that disallows the `#[non_exhaustive]`
attribute from being placed on enum variants and removes the associated
tests.

Further, this commit lowers the visibility of enum variant constructors
when the variant is marked as non-exhaustive.
2019-03-28 22:29:02 +01:00
..
bootstrap Rollup merge of #59309 - o01eg:verbose-copy-files, r=alexcrichton 2019-03-22 19:31:31 +01:00
build_helper
ci Auto merge of #58791 - denzp:asm-compile-tests, r=alexcrichton 2019-03-20 17:54:27 +00:00
doc Track changes to robots.txt 2019-03-15 15:05:12 +00:00
etc rust-lldb: fix crash when printing empty string 2019-03-06 12:28:38 -05:00
grammar
liballoc Rollup merge of #59328 - koalatux:iter-nth-back, r=scottmcm 2019-03-24 19:00:10 +08:00
libarena
libcore Rollup merge of #59328 - koalatux:iter-nth-back, r=scottmcm 2019-03-24 19:00:10 +08:00
libfmt_macros
libgraphviz
libpanic_abort SGX target: fix panic = abort 2019-02-14 12:39:54 +05:30
libpanic_unwind
libproc_macro Use ? in some macros 2019-02-24 21:59:44 +09:00
libprofiler_builtins
librustc Implement #[non_exhaustive] on variants. 2019-03-28 22:29:02 +01:00
librustc_allocator
librustc_apfloat
librustc_asan
librustc_borrowck Auto merge of #59195 - estebank:for-loop-move, r=petrochenkov 2019-03-25 00:38:15 +00:00
librustc_codegen_llvm Rollup merge of #59377 - smaeul:patch/system-llvm, r=nikic 2019-03-24 22:43:48 +08:00
librustc_codegen_ssa Revert the LazyConst PR 2019-03-16 21:04:10 +01:00
librustc_codegen_utils Merge DefPathData::VariantCtor and DefPathData::StructCtor 2019-03-24 17:59:18 +03:00
librustc_cratesio_shim
librustc_data_structures Use derive macro for HashStable 2019-03-13 00:03:13 +01:00
librustc_driver Rollup merge of #59251 - matthewjasper:fix-graphviz, r=petrochenkov 2019-03-24 18:59:42 +08:00
librustc_errors Tweak unsupported negative trait bounds message 2019-03-23 13:05:30 -07:00
librustc_fs_util
librustc_incremental Add load_cached query modifier and keep dep node names consistent with query names 2019-03-18 08:20:09 +01:00
librustc_interface Do not track_errors in register_plugins 2019-03-22 20:15:32 -07:00
librustc_lint Separate variant id and variant constructor id. 2019-03-24 12:10:16 +03:00
librustc_llvm
librustc_lsan
librustc_macros Preprocess query modifiers 2019-03-18 14:19:52 +01:00
librustc_metadata Implement #[non_exhaustive] on variants. 2019-03-28 22:29:02 +01:00
librustc_mir Auto merge of #59382 - davidtwco:rfc-2008-refactoring, r=petrochenkov 2019-03-24 21:26:57 +00:00
librustc_msan
librustc_passes Implement #[non_exhaustive] on variants. 2019-03-28 22:29:02 +01:00
librustc_plugin Refactor away NestedMetaItemKind 2019-03-16 23:14:42 +03:00
librustc_privacy Implement #[non_exhaustive] on variants. 2019-03-28 22:29:02 +01:00
librustc_resolve Implement #[non_exhaustive] on variants. 2019-03-28 22:29:02 +01:00
librustc_save_analysis Re-order fields in Def::Ctor. 2019-03-24 19:16:44 +01:00
librustc_target Rollup merge of #58976 - phil-opp:patch-2, r=alexcrichton 2019-03-16 14:56:25 +08:00
librustc_traits Fix a bug in implied bounds 2019-03-20 20:09:26 +01:00
librustc_tsan
librustc_typeck Re-order fields in Def::Ctor. 2019-03-24 19:16:44 +01:00
librustdoc Remove VariantDef::parent_did 2019-03-24 14:41:35 +03:00
libserialize
libstd Auto merge of #59370 - Centril:rollup, r=Centril 2019-03-22 21:00:07 +00:00
libsyntax Remove methods is_struct/is_tuple/is_unit from VariantData 2019-03-24 12:10:16 +03:00
libsyntax_ext Remove methods is_struct/is_tuple/is_unit from VariantData 2019-03-24 12:10:16 +03:00
libsyntax_pos Do not encode gensymed imports in metadata 2019-03-19 22:50:46 +03:00
libtest Move some bench tests back from libtest 2019-03-20 01:22:19 +01:00
libunwind
llvm-emscripten@7f23313edf
llvm-project@4fc9fb8245 Add back in MSVC version check for LLVM 2019-03-01 11:26:19 -08:00
rtstartup
rustc Make the rustc driver and interface demand driven 2019-03-10 04:49:45 +01:00
rustllvm Implement ffi_returns_twice attribute 2019-02-23 15:48:40 +01:00
stdsimd@359845eb7c Update stdsimd 2019-02-24 11:31:49 +01:00
test Implement #[non_exhaustive] on variants. 2019-03-28 22:29:02 +01:00
tools Rename miri component to miri-preview 2019-03-22 12:39:59 +01:00
.gitignore
README.md
stage0.txt Bootstrap compiler update for 1.35 release 2019-03-02 09:05:34 -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 guide.

There is also useful content in the following READMEs, which are gradually being moved over to the guide: