rust/src
Mazdak Farrokhzad 4720fcac4c
Rollup merge of #59216 - stepnivlk:type_dependent_defs-wrappers, r=oli-obk
Type dependent defs wrappers

First of all, forgive me if something would seem lame to you or I offend some rule (although I tried to read through docs), this is my first PR.

Issue: https://github.com/rust-lang/rust/issues/59094

This PR adds 3 helper methods to `TypeckTables`:
* `opt_type_dependent_def`
* `opt_type_dependent_def_id`
* `type_dependent_def_id`

I didn't add `type_dependent_def` as was proposed in the issue simply because it wasn't used anywhere in the code. Only non-option wrapped`type_dependent_defs()[]` accesses were found in clippy which always called `def_id()` on result.
Speaking of clippy, should I open separate PR in its own repo, given it's used as submodule here?

Sry it took me so long, as I said I'm new here and I had tough week :).
2019-03-28 13:35:33 +01:00
..
bootstrap Rollup merge of #59351 - phil-opp:llvm-ar, r=alexcrichton 2019-03-28 08:43:34 +01:00
build_helper rustc: doc comments 2019-02-10 23:42:32 +00:00
ci [CI] record docker image info for reuse 2019-03-25 15:27:49 -07:00
doc Rollup merge of #59268 - estebank:from-string, r=QuietMisdreavus 2019-03-27 18:15:24 -07:00
etc rust-lldb: fix crash when printing empty string 2019-03-06 12:28:38 -05:00
grammar
liballoc adjust MaybeUninit API to discussions 2019-03-26 09:21:32 +01:00
libarena libarena => 2018 2019-02-11 23:49:48 +01:00
libcore Rollup merge of #58717 - hellow554:nonzero_parse, r=oli-obk 2019-03-28 13:35:29 +01: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 Auto merge of #55780 - ogoffart:span_source_text, r=petrochenkov 2019-03-27 08:58:40 +00:00
libprofiler_builtins Revert removed #![feature(nll)] 2019-02-10 16:13:30 +09:00
librustc Rollup merge of #59216 - stepnivlk:type_dependent_defs-wrappers, r=oli-obk 2019-03-28 13:35:33 +01: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 #58717 - hellow554:nonzero_parse, r=oli-obk 2019-03-28 13:35:29 +01:00
librustc_codegen_ssa Rollup merge of #59441 - TheGoddessInari:natvis, r=alexcrichton 2019-03-28 08:43:37 +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 Update ena to version 0.13.0 2019-03-27 09:44:55 +00:00
librustc_driver librustc_driver => 2018 2019-03-27 05:35:18 +09: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 fix: Make incremental artifact deletion more robust 2019-03-26 23:49:14 +01:00
librustc_interface Rollup merge of #58837 - Centril:librustc_interface_2018, r=petrochenkov 2019-03-27 18:15:22 -07:00
librustc_lint Rollup merge of #59216 - stepnivlk:type_dependent_defs-wrappers, r=oli-obk 2019-03-28 13:35:33 +01: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 Fix whitespace 2019-03-20 18:00:08 +01:00
librustc_metadata Rollup merge of #59413 - Zoxc:hirid, r=oli-obk 2019-03-28 08:43:36 +01:00
librustc_mir Rollup merge of #59216 - stepnivlk:type_dependent_defs-wrappers, r=oli-obk 2019-03-28 13:35:33 +01:00
librustc_msan Revert removed #![feature(nll)] 2019-02-10 16:13:30 +09:00
librustc_passes Rollup merge of #59216 - stepnivlk:type_dependent_defs-wrappers, r=oli-obk 2019-03-28 13:35:33 +01:00
librustc_plugin Make meta-item API compatible with LocalInternedString::get soundness fix 2019-03-17 17:04:58 +03:00
librustc_privacy Rollup merge of #59216 - stepnivlk:type_dependent_defs-wrappers, r=oli-obk 2019-03-28 13:35:33 +01:00
librustc_resolve Rollup merge of #59267 - estebank:assoc-const-as-field, r=davidtwco 2019-03-26 09:05:43 +01:00
librustc_save_analysis Rollup merge of #59216 - stepnivlk:type_dependent_defs-wrappers, r=oli-obk 2019-03-28 13:35:33 +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 Rollup merge of #59216 - stepnivlk:type_dependent_defs-wrappers, r=oli-obk 2019-03-28 13:35:33 +01:00
librustdoc Rollup merge of #59413 - Zoxc:hirid, r=oli-obk 2019-03-28 08:43:36 +01:00
libserialize Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik 2019-02-12 19:09:24 +00:00
libstd Rollup merge of #59474 - czipperz:bufwriter-fix-link-capitalization, r=Centril 2019-03-28 08:43:43 +01:00
libsyntax Rollup merge of #59198 - estebank:recovered-pattern, r=zackmdavis 2019-03-28 08:43:32 +01:00
libsyntax_ext Auto merge of #55780 - ogoffart:span_source_text, r=petrochenkov 2019-03-27 08:58:40 +00:00
libsyntax_pos bump bootstrap; adjust stage0 uses in libsyntax_pos 2019-03-26 09:57:42 +01:00
libtest Moves test::black_box to core::hint 2019-03-25 11:44:06 +01:00
libunwind Revert removed #![feature(nll)] 2019-02-10 16:13:30 +09:00
llvm-emscripten@7f23313edf
llvm-project@1f484cbe0e Rebase LLVM to 8.0.0 final 2019-03-18 15:59:24 -07:00
rtstartup
rustc Make the rustc driver and interface demand driven 2019-03-10 04:49:45 +01:00
rustllvm Rebase LLVM to 8.0.0 final 2019-03-18 15:59:24 -07:00
stdsimd@359845eb7c Update stdsimd 2019-02-24 11:31:49 +01:00
test Rollup merge of #59198 - estebank:recovered-pattern, r=zackmdavis 2019-03-28 08:43:32 +01:00
tools Auto merge of #59478 - Centril:rollup, r=Centril 2019-03-28 08:56:34 +00:00
.gitignore
README.md
stage0.txt bump bootstrap => 2019-03-20 2019-03-26 09:53:47 +01: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: