rust/src
bors 19ecce332e Auto merge of #74948 - lzutao:stalize-result-as-deref, r=dtolnay
Stabilize `Result::as_deref` and `as_deref_mut`

FCP completed in https://github.com/rust-lang/rust/issues/50264#issuecomment-645681400.

This PR stabilizes two new APIs for `std::result::Result`:
```rust
fn as_deref(&self) -> Result<&T::Target, &E> where T: Deref;
fn as_deref_mut(&mut self) -> Result<&mut T::Target, &mut E> where T: DerefMut;
```

This PR also removes two rarely used unstable APIs from `Result`:
```rust
fn as_deref_err(&self) -> Result<&T, &E::Target> where E: Deref;
fn as_deref_mut_err(&mut self) -> Result<&mut T, &mut E::Target> where E: DerefMut;
```

Closes #50264
2020-08-02 23:55:12 +00:00
..
bootstrap Rollup merge of #75064 - petrochenkov:llvmtarg, r=Mark-Simulacrum 2020-08-02 13:08:48 -07:00
build_helper build: Harden env var tracking in build scripts 2020-07-22 19:51:19 +03:00
ci Auto merge of #74675 - pietroalbini:aarch64-ci-fallible, r=Mark-Simulacrum 2020-08-02 14:08:48 +00:00
doc Rollup merge of #74981 - giraffate:fix_sample_codes_in_unstable_book_plugin, r=GuilliameGomez 2020-08-01 09:30:13 -07:00
etc Run all tests if have no specified tests 2020-07-31 04:20:27 +00:00
librustc_apfloat
librustc_arena
librustc_ast Auto merge of #74826 - matklad:mbe-fragment, r=petrochenkov 2020-08-02 19:48:44 +00:00
librustc_ast_lowering Auto merge of #74963 - JohnTitor:ptn-ice, r=petrochenkov 2020-08-02 18:01:27 +00:00
librustc_ast_passes Replace from log to tracing in libsrustrustc_ast_lowering, librustc_ast_passes, librustc_ast_pretty 2020-08-02 12:21:39 +05:30
librustc_ast_pretty Rollup merge of #74980 - davidtwco:issue-74745-pprust-regression-test, r=petrochenkov 2020-08-02 13:08:42 -07:00
librustc_attr Rollup merge of #74572 - Mark-Simulacrum:unify-rustc-depr, r=petrochenkov 2020-07-24 18:56:27 +09:00
librustc_builtin_macros Auto merge of #74948 - lzutao:stalize-result-as-deref, r=dtolnay 2020-08-02 23:55:12 +00:00
librustc_codegen_llvm Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_codegen_ssa Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_data_structures Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_driver Remove chrono feature from tracing 2020-08-01 16:24:52 +02:00
librustc_error_codes Rollup merge of #75044 - GuillaumeGomez:cleanup-e0744, r=pickfire 2020-08-03 01:05:25 +09:00
librustc_errors Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_expand Auto merge of #74826 - matklad:mbe-fragment, r=petrochenkov 2020-08-02 19:48:44 +00:00
librustc_feature Rollup merge of #73868 - ecstatic-morse:fix-stable-version, r=jonas-schievink 2020-07-22 16:34:37 -07:00
librustc_fs_util
librustc_graphviz
librustc_hir Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_hir_pretty Remove lots of `Symbol::as_str()` calls. 2020-07-15 09:01:35 +10:00
librustc_incremental Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_index Auto merge of #69749 - davidtwco:issue-46477-polymorphization, r=eddyb 2020-07-21 03:09:04 +00:00
librustc_infer fix typos 2020-08-02 23:20:00 +08:00
librustc_interface Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_lexer Rollup merge of #73856 - pierwill:pierwill-lexer-doc, r=jonas-schievink 2020-07-06 17:45:17 -07:00
librustc_lint Rollup merge of #75031 - JohnTitor:unused-parens-braces-yield, r=lcnr 2020-08-02 13:08:45 -07:00
librustc_llvm Rollup merge of #74643 - petrochenkov:noenvrerun, r=Mark-Simulacrum 2020-07-22 16:34:50 -07:00
librustc_macros Enforce the static symbol order. 2020-07-16 16:53:24 +10:00
librustc_metadata Rollup merge of #75059 - shengsheng:typos, r=Dylan-DPC 2020-08-02 13:08:47 -07:00
librustc_middle Rollup merge of #75059 - shengsheng:typos, r=Dylan-DPC 2020-08-02 13:08:47 -07:00
librustc_mir fix typos 2020-08-02 23:20:00 +08:00
librustc_mir_build fix typos 2020-08-02 23:20:00 +08:00
librustc_parse Auto merge of #74826 - matklad:mbe-fragment, r=petrochenkov 2020-08-02 19:48:44 +00:00
librustc_parse_format Eliminate confusing "globals" terminology. 2020-07-09 14:11:44 +10:00
librustc_passes Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_plugin_impl rustc_metadata: Make crate loading fully speculative 2020-07-18 14:06:04 +04:00
librustc_privacy Rollup merge of #75022 - cuviper:sliced-rchunk, r=lcnr 2020-08-01 17:42:18 -07:00
librustc_query_system Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_resolve Auto merge of #74963 - JohnTitor:ptn-ice, r=petrochenkov 2020-08-02 18:01:27 +00:00
librustc_save_analysis Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_serialize
librustc_session Rollup merge of #75059 - shengsheng:typos, r=Dylan-DPC 2020-08-02 13:08:47 -07:00
librustc_span fix typos 2020-08-02 23:20:00 +08:00
librustc_symbol_mangling Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_target Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_trait_selection Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_traits Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_ty Move from `log` to `tracing` 2020-07-31 22:38:20 +02:00
librustc_typeck fix typos 2020-08-02 23:20:00 +08:00
librustdoc Rollup merge of #74992 - lcnr:fix-generic-param-order, r=GuillaumeGomez 2020-08-01 17:42:15 -07:00
llvm-project@86b120e6f3 Update llvm-project to latest origin/rustc/10.0-2020-05-05 commit which includes LVI segfault fix 2020-07-12 18:49:14 +00:00
rustc
rustllvm Fixed coverage map issues; better aligned with LLVM APIs 2020-07-25 07:39:51 -07:00
test Auto merge of #74948 - lzutao:stalize-result-as-deref, r=dtolnay 2020-08-02 23:55:12 +00:00
tools Rollup merge of #75064 - petrochenkov:llvmtarg, r=Mark-Simulacrum 2020-08-02 13:08:48 -07:00
README.md Update outdated readme 2020-07-27 22:05:34 -05:00
stage0.txt Bump to 1.47 2020-07-16 19:36:49 -04:00

README.md

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

  • rustc and its tests
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

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