rust/src
bors fedce67cd2 Auto merge of #48326 - RalfJung:generic-bounds, r=petrochenkov
Warn about ignored generic bounds in `for`

This adds a new lint to fix #42181. For consistency and to avoid code duplication, I also moved the existing "bounds in type aliases are ignored" here.

Questions to the reviewer:
* Is it okay to just remove a diagnostic error code like this? Should I instead keep the warning about type aliases where it is? The old code provided a detailed explanation of what's going on when asked, that information is now lost. On the other hand, `span_warn!` seems deprecated (after this patch, it has exactly one user left!).
* Did I miss any syntactic construct that can appear as `for` in the surface syntax? I covered function types (`for<'a> fn(...)`), generic traits (`for <'a> Fn(...)`, can appear both as bounds as as trait objects) and bounds (`for<'a> F: ...`).
* For the sake of backwards compatibility, this adds a warning, not an error. @nikomatsakis suggested an error in https://github.com/rust-lang/rust/issues/42181#issuecomment-306924389, but I feel that can only happen in a new epoch -- right?

Cc @eddyb
2018-03-09 10:45:29 +00:00
..
bootstrap appveyor: Fix a switched condition for cargotest 2018-03-07 17:00:27 -08:00
build_helper
ci appveyor: Shard more slow MSVC builders 2018-03-07 07:29:44 -08:00
dlmalloc@9b2dcac06c Update the dlmalloc submodule 2018-02-10 07:01:27 -08:00
doc Stabilize const_indexing feature 2018-03-08 08:34:14 +01:00
etc Remove unused 'src/etc/ziggurat_tables.py' Python script. 2018-03-06 19:35:16 -05:00
grammar
jemalloc@1f5a28755e
liballoc Rollup merge of #47463 - bluss:fused-iterator, r=alexcrichton 2018-03-06 20:52:37 +08:00
liballoc_jemalloc Make liballoc_jemalloc work on CloudABI. 2018-01-18 21:11:24 +01:00
liballoc_system
libarena Rollup merge of #47069 - Kagamihime:master, r=nrc 2018-01-13 02:26:23 +08:00
libbacktrace fix typos in src/{bootstrap,ci,etc,lib{backtrace,core,fmt_macros}} 2018-02-10 12:22:57 +01:00
libcompiler_builtins@266ea0740a Update compiler-builtins to latest master. 2018-02-13 22:39:11 +01:00
libcore Rollup merge of #48738 - Songbird0:parseinterror_potential_cause, r=joshtriplett 2018-03-08 11:25:58 -08:00
libfmt_macros fix typos in src/{bootstrap,ci,etc,lib{backtrace,core,fmt_macros}} 2018-02-10 12:22:57 +01:00
libgetopts
libgraphviz
liblibc@56444a4545 Revert unintentional submodule updates 2018-02-18 00:21:33 +09:00
libpanic_abort rustc: Add an option to default hidden visibility 2018-01-30 13:41:20 -08:00
libpanic_unwind make #[unwind] attribute specify expectations more clearly 2018-02-20 19:12:52 -05:00
libproc_macro Impl !Send and !Sync for SourceFile 2018-03-02 10:48:52 +01:00
libprofiler_builtins
librustc Auto merge of #48326 - RalfJung:generic-bounds, r=petrochenkov 2018-03-09 10:45:29 +00:00
librustc_allocator Fix up tests and typos 2018-02-18 00:10:40 +09:00
librustc_apfloat fix more typos found by codespell. 2018-02-17 17:38:49 +01:00
librustc_asan
librustc_back rustc: Tweak default linker selection 2018-03-03 20:21:35 -08:00
librustc_borrowck Turn features() into a query. 2018-03-05 11:05:01 +01:00
librustc_const_eval Move librustc_const_eval to librustc_mir 2018-03-08 08:08:14 +01:00
librustc_const_math Nuke ConstInt and Const*size 2018-03-08 08:34:10 +01:00
librustc_cratesio_shim
librustc_data_structures Rollup merge of #48808 - Zoxc:reg-diag, r=michaelwoerister 2018-03-08 11:26:02 -08:00
librustc_driver Make it possible to ungate features by epoch 2018-03-08 17:10:05 -08:00
librustc_errors rustc: Migrate to termcolor crate from term 2018-03-07 07:30:33 -08:00
librustc_incremental Turn features() into a query. 2018-03-05 11:05:01 +01:00
librustc_lint Auto merge of #48326 - RalfJung:generic-bounds, r=petrochenkov 2018-03-09 10:45:29 +00:00
librustc_llvm Fully use miri in trans 2018-03-08 08:34:05 +01:00
librustc_lsan
librustc_metadata Hide the RefCell inside InterpretInterner 2018-03-08 08:34:09 +01:00
librustc_mir Rollup merge of #48682 - spastorino:make_causal_lazy, r=nikomatsakis 2018-03-08 11:25:56 -08:00
librustc_msan
librustc_passes Auto merge of #48326 - RalfJung:generic-bounds, r=petrochenkov 2018-03-09 10:45:29 +00:00
librustc_platform_intrinsics
librustc_plugin Turn features() into a query. 2018-03-05 11:05:01 +01:00
librustc_privacy Replace Rc with Lrc for shared data 2018-03-02 10:48:52 +01:00
librustc_resolve Turn features() into a query. 2018-03-05 11:05:01 +01:00
librustc_save_analysis Do not panic on tuple struct access out of bounds 2018-03-07 08:48:36 +09:00
librustc_trans Unregress error spans in constant errors 2018-03-08 08:34:17 +01:00
librustc_trans_utils Merge branch 'incr_attr_queries' of https://github.com/wesleywiser/rust into update-cargo 2018-03-07 07:13:21 -08:00
librustc_tsan
librustc_typeck Auto merge of #48326 - RalfJung:generic-bounds, r=petrochenkov 2018-03-09 10:45:29 +00:00
librustdoc Rollup merge of #48789 - GuillaumeGomez:horizontal-scroll, r=QuietMisdreavus 2018-03-08 11:26:00 -08:00
libserialize Fix Decodable impl for Arc 2018-03-02 10:45:32 +01:00
libstd Rollup merge of #48857 - Songbird0:improve_column_macro_documentation, r=joshtriplett 2018-03-08 17:25:59 -08:00
libstd_unicode Rollup merge of #47463 - bluss:fused-iterator, r=alexcrichton 2018-03-06 20:52:37 +08:00
libsyntax Auto merge of #48326 - RalfJung:generic-bounds, r=petrochenkov 2018-03-09 10:45:29 +00:00
libsyntax_ext while let all the things 2018-03-05 15:58:54 -03:00
libsyntax_pos Don't derive traits on packed structs 2018-03-08 08:35:39 +01:00
libterm
libtest re-export assert_test_result for use when testing libtest itself 2018-02-23 10:11:06 -05:00
libunwind make #[unwind] attribute specify expectations more clearly 2018-02-20 19:12:52 -05:00
llvm@0903c72cbb rustc: Update LLVM 2018-03-06 08:45:12 -08:00
llvm-emscripten@2717444753 rustc: Split Emscripten to a separate codegen backend 2018-01-28 18:32:45 -08:00
rtstartup Remove impl Foo for .. in favor of auto trait Foo 2018-01-13 18:48:00 +03:00
rustc rustc: Load the rustc_trans crate at runtime 2018-01-27 19:16:21 -08:00
rustllvm rustc: Update LLVM 2018-03-06 08:45:12 -08:00
stdsimd@678cbd325c std: Add arch and simd modules 2018-03-02 14:34:07 -08:00
test Auto merge of #48326 - RalfJung:generic-bounds, r=petrochenkov 2018-03-09 10:45:29 +00:00
tools Merge branch 'compiletest-update' of https://github.com/alexcrichton/rust into update-cargo 2018-03-07 07:11:57 -08:00
Cargo.lock Rollup merge of #48588 - alexcrichton:termcolor, r=BurntSushi 2018-03-08 17:25:56 -08:00
Cargo.toml Convert python script to rust 2018-02-08 10:53:09 +01:00
README.md Start moving to the rustc guide! 2018-02-23 13:20:56 -06:00
stage0.txt Bootstrap from the 1.25 beta 2018-02-20 08:52:33 -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: