os-rust/src
bors 46914715e2 Auto merge of #59195 - estebank:for-loop-move, r=petrochenkov
When moving out of a for loop head, suggest borrowing it

When encountering code like the following, suggest borrowing the for loop
head to avoid moving it into the for loop pattern:

```
fn main() {
    let a = vec![1, 2, 3];
    for i in &a {
        for j in a {
            println!("{} * {} = {}", i, j, i * j);
        }
    }
}
```

Fix #25534.
2019-03-25 00:38:15 +00:00
..
bootstrap Rollup merge of #59309 - o01eg:verbose-copy-files, r=alexcrichton 2019-03-22 19:31:31 +01:00
build_helper rustc: doc comments 2019-02-10 23:42:32 +00:00
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 libarena => 2018 2019-02-11 23:49:48 +01:00
libcore Rollup merge of #59328 - koalatux:iter-nth-back, r=scottmcm 2019-03-24 19:00:10 +08:00
libfmt_macros Revert removed #![feature(nll)] 2019-02-10 16:13:30 +09:00
libgraphviz Auto merge of #58051 - SimonSapin:str_escape, r=alexcrichton 2019-02-12 23:30:16 +00:00
libpanic_abort SGX target: fix panic = abort 2019-02-14 12:39:54 +05:30
libpanic_unwind libpanic_unwind => 2018: remove unused extern crate. 2019-02-13 18:09:09 +01:00
libproc_macro Use ? in some macros 2019-02-24 21:59:44 +09:00
libprofiler_builtins Revert removed #![feature(nll)] 2019-02-10 16:13:30 +09:00
librustc Auto merge of #59195 - estebank:for-loop-move, r=petrochenkov 2019-03-25 00:38:15 +00:00
librustc_allocator Auto merge of #58098 - oli-obk:maybe_allow_internal_unstable, r=petrochenkov 2019-02-12 12:10:10 +00:00
librustc_apfloat Stabilize TryFrom and TryInto 2019-02-13 18:00:18 +01:00
librustc_asan Revert removed #![feature(nll)] 2019-02-10 16:13:30 +09:00
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_cratesio_shim => 2018 2019-02-08 20:55:12 +09:00
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 rustc: doc comments 2019-02-10 23:42:32 +00:00
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 Revert removed #![feature(nll)] 2019-02-10 16:13:30 +09:00
librustc_lsan Revert removed #![feature(nll)] 2019-02-10 16:13:30 +09:00
librustc_macros Preprocess query modifiers 2019-03-18 14:19:52 +01:00
librustc_metadata Re-order fields in Def::Ctor. 2019-03-24 19:16:44 +01:00
librustc_mir Auto merge of #59382 - davidtwco:rfc-2008-refactoring, r=petrochenkov 2019-03-24 21:26:57 +00:00
librustc_msan Revert removed #![feature(nll)] 2019-02-10 16:13:30 +09:00
librustc_passes Remove methods is_struct/is_tuple/is_unit from VariantData 2019-03-24 12:10:16 +03:00
librustc_plugin Refactor away NestedMetaItemKind 2019-03-16 23:14:42 +03:00
librustc_privacy Remove CtorOf from Node::Ctor. 2019-03-24 18:21:59 +01:00
librustc_resolve Auto merge of #59382 - davidtwco:rfc-2008-refactoring, r=petrochenkov 2019-03-24 21:26:57 +00: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 Revert removed #![feature(nll)] 2019-02-10 16:13:30 +09:00
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 Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik 2019-02-12 19:09:24 +00:00
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 Revert removed #![feature(nll)] 2019-02-10 16:13:30 +09:00
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 Auto merge of #59195 - estebank:for-loop-move, r=petrochenkov 2019-03-25 00:38:15 +00: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: