rust/src
bors 45935640f0 Auto merge of #51866 - zackmdavis:hir_making_each_day_of_the_year, r=petrochenkov
add modifier keyword spans to hir::Visibility; improve unreachable-pub, private-no-mangle lint suggestions

#50455 pointed out that the unreachable-pub suggestion for brace-grouped `use`s was bogus; #50476 partially ameliorated this by marking the suggestion as `Applicability::MaybeIncorrect`, but this is the actual fix.

Meanwhile, another application of having spans available in `hir::Visibility` is found in the private-no-mangle lints, where we can now issue a suggestion to use `pub` if the item has a more restricted visibility marker (this seems much less likely to come up in practice than not having any visibility keyword at all, but thoroughness is a virtue). While we're there, we can also add a helpful note if the item does have a `pub` (but triggered the lint presumably because enclosing modules were private).

![hir_vis](https://user-images.githubusercontent.com/1076988/42018064-ca830290-7a65-11e8-9c4c-48bc846f861f.png)

r? @nrc
cc @Manishearth
2018-07-02 03:18:49 +00:00
..
bootstrap Rollup merge of #51922 - japaric:llvm-tools-preview, r=alexcrichton 2018-07-01 21:18:50 +02:00
build_helper Run rustfmt on build_helper 2018-04-12 14:49:03 +09:00
ci Revert "Auto merge of #51662 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum" 2018-06-21 06:53:26 -06:00
dlmalloc@c99638dc2e Update to most recent version of dlmalloc 2018-04-12 22:53:02 +02:00
doc Auto merge of #49469 - Nokel81:allow-irrefutable-let-patterns, r=nikomatsakis 2018-06-26 09:20:33 +00:00
etc slightly improve rustdoc xml path error 2018-06-04 09:51:41 +02:00
grammar Remove all unstable placement features 2018-04-03 11:02:34 +02:00
jemalloc@1f5a28755e
liballoc Auto merge of #51717 - Mark-Simulacrum:snap, r=alexcrichton 2018-06-30 21:01:05 +00:00
liballoc_jemalloc Mark alloc_jemalloc as perma-unstable 2018-06-11 13:48:57 -07:00
liballoc_system Move Unstable Book sections for #[global_allocator] and System to std::alloc docs 2018-06-11 13:48:57 -07:00
libarena Make raw_vec perma-unstable and hidden 2018-06-29 14:01:33 +02:00
libbacktrace@f4d02bbdbf Replace libbacktrace with a submodule 2018-05-30 05:58:23 -07:00
libcompiler_builtins@4cfd7101eb update libcompiler_builtins 2018-05-13 07:14:36 +02:00
libcore Rollup merge of #51853 - MajorBreakfast:fix-doc-links, r=cramertj 2018-07-01 21:18:45 +02:00
libfmt_macros Improve format string errors 2018-05-10 09:09:58 -07:00
libgraphviz Move deny(warnings) into rustbuild 2018-04-08 16:59:14 -06:00
liblibc@b6d23ed45d Update liblibc 2018-07-01 20:23:41 +02:00
libpanic_abort std: Minimize size of panicking on wasm 2018-04-13 07:03:00 -07:00
libpanic_unwind NetBSD on EABI ARM does not use ARM EHABI 2018-05-18 09:29:58 -05:00
libproc_macro Address comments 2018-06-30 01:53:32 +03:00
libprofiler_builtins Inject the compiler_builtins crate whenever the core crate is injected 2018-04-07 09:24:35 +02:00
librustc Auto merge of #51866 - zackmdavis:hir_making_each_day_of_the_year, r=petrochenkov 2018-07-02 03:18:49 +00:00
librustc_allocator Implement #[macro_export(local_inner_macros)] 2018-06-27 13:10:16 +03:00
librustc_apfloat migrate codebase to ..= inclusive range patterns 2018-06-26 07:53:30 -07:00
librustc_asan Bootstrap from 1.28.0-beta.3 2018-06-30 13:17:49 -07:00
librustc_borrowck Use Idents in a number of structures in HIR 2018-06-28 11:04:50 +03:00
librustc_codegen_llvm Auto merge of #51828 - kennytm:no-simd-swap-for-mac, r=alexcrichton 2018-06-30 14:00:24 +00:00
librustc_codegen_utils migrate codebase to ..= inclusive range patterns 2018-06-26 07:53:30 -07:00
librustc_cratesio_shim rustc_target: move in syntax::abi and flip dependency. 2018-04-26 17:49:16 +03:00
librustc_data_structures Rename IdxSet::clone_from. 2018-06-29 09:57:19 +10:00
librustc_driver Auto merge of #51806 - oli-obk:lowering_cleanups1, r=cramertj 2018-06-30 07:10:18 +00:00
librustc_errors Fortify dummy span checking 2018-06-30 01:53:32 +03:00
librustc_incremental Make opaque::Encoder append-only and make it infallible 2018-06-27 11:43:15 +02:00
librustc_lint Auto merge of #51866 - zackmdavis:hir_making_each_day_of_the_year, r=petrochenkov 2018-07-02 03:18:49 +00:00
librustc_llvm Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
librustc_lsan Bootstrap from 1.28.0-beta.3 2018-06-30 13:17:49 -07:00
librustc_metadata call it hir::VisibilityKind instead of hir::Visibility_:* 2018-07-01 11:05:10 -07:00
librustc_mir Auto merge of #51110 - alexreg:new-static-eval-rules, r=eddyb 2018-07-01 23:00:27 +00:00
librustc_msan Bootstrap from 1.28.0-beta.3 2018-06-30 13:17:49 -07:00
librustc_passes Auto merge of #51883 - estebank:placement-suggestion, r=varkor 2018-07-01 13:37:05 +00:00
librustc_platform_intrinsics Move deny(warnings) into rustbuild 2018-04-08 16:59:14 -06:00
librustc_plugin Implement #[macro_export(local_inner_macros)] 2018-06-27 13:10:16 +03:00
librustc_privacy Auto merge of #51866 - zackmdavis:hir_making_each_day_of_the_year, r=petrochenkov 2018-07-02 03:18:49 +00:00
librustc_resolve absoluate -> absolute 2018-07-01 17:37:42 +09:00
librustc_save_analysis call it hir::VisibilityKind instead of hir::Visibility_:* 2018-07-01 11:05:10 -07:00
librustc_target Auto merge of #51833 - wesleywiser:faster_large_constant_arrays, r=oli-obk 2018-07-01 18:43:41 +00:00
librustc_traits Use Idents for associated item definitions in HIR 2018-06-28 11:04:50 +03:00
librustc_tsan Bootstrap from 1.28.0-beta.3 2018-06-30 13:17:49 -07:00
librustc_typeck Auto merge of #51866 - zackmdavis:hir_making_each_day_of_the_year, r=petrochenkov 2018-07-02 03:18:49 +00:00
librustdoc call it hir::VisibilityKind instead of hir::Visibility_:* 2018-07-01 11:05:10 -07:00
libserialize Make opaque::Encoder append-only and make it infallible 2018-06-27 11:43:15 +02:00
libstd Rollup merge of #51890 - Ixrec:patch-3, r=alexcrichton 2018-07-01 21:18:46 +02:00
libstd_unicode Mark the rest of the unicode feature flag as perma-unstable. 2018-04-12 00:13:53 +02:00
libsyntax Auto merge of #51866 - zackmdavis:hir_making_each_day_of_the_year, r=petrochenkov 2018-07-02 03:18:49 +00:00
libsyntax_ext Implement #[macro_export(local_inner_macros)] 2018-06-27 13:10:16 +03:00
libsyntax_pos Address comments 2018-06-30 01:53:32 +03:00
libterm migrate codebase to ..= inclusive range patterns 2018-06-26 07:53:30 -07:00
libtest Remove leftover tab in libtest outputs 2018-05-02 08:35:33 +02:00
libunwind NetBSD on EABI ARM does not use ARM EHABI 2018-05-18 09:29:58 -05:00
llvm@1c817c7a0c Update LLVM to 1c817c7a0c828b8fc8e8e462afbe5db41c7052d1 2018-06-29 13:58:17 +09:00
llvm-emscripten@2717444753 rustc: Split Emscripten to a separate codegen backend 2018-01-28 18:32:45 -08:00
rtstartup Switch to 1.26 bootstrap compiler 2018-05-17 08:47:25 -06:00
rustc Fix rustc binary metadata overwriting librustc metadata 2018-05-17 08:47:25 -06:00
rustllvm Rollup merge of #50827 - nox:llvmup, r=eddyb 2018-05-20 04:16:01 +08:00
stdsimd@a19ca1cd91 rever tool changes 2018-05-24 16:21:23 +02:00
test Auto merge of #51866 - zackmdavis:hir_making_each_day_of_the_year, r=petrochenkov 2018-07-02 03:18:49 +00:00
tools Rollup merge of #51922 - japaric:llvm-tools-preview, r=alexcrichton 2018-07-01 21:18:50 +02:00
Cargo.lock Bootstrap from 1.28.0-beta.3 2018-06-30 13:17:49 -07:00
Cargo.toml Change the comment on opt-level = 2 to point to https://github.com/rust-lang/rust/issues/50867 2018-05-29 17:38:23 +02:00
README.md rustc: rename ty::maps to ty::query. 2018-06-14 18:05:12 +03:00
stage0.txt Bootstrap from 1.28.0-beta.3 2018-06-30 13:17:49 -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.

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