rust/src
Manish Goregaokar db900d4ef3
Rollup merge of #73828 - nop:fix/parameter-name-help, r=estebank
Fix wording for anonymous parameter name help

```
 --> exercises/functions/functions2.rs:8:15
  |
8 | fn call_me(num) {
  |               ^ expected one of `:`, `@`, or `|`
  |
  = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
help: if this is a `self` type, give it a parameter name
  |
8 | fn call_me(self: num) {
  |            ^^^^^^^^^
help: if this was a parameter name, give it a type
  |
8 | fn call_me(num: TypeName) {
  |            ^^^^^^^^^^^^^
help: if this is a type, explicitly ignore the parameter name
  |
8 | fn call_me(_: num) {
  |
```
This commit changes "if this was a parameter name" to "if this is a parameter name" to match the wording of similar errors.
2020-07-01 07:42:58 -07:00
..
bootstrap Auto merge of #73456 - tmiasko:musl-libdir, r=Mark-Simulacrum 2020-06-30 15:41:50 +00:00
build_helper
ci Auto merge of #73863 - pietroalbini:revert-8bc3122311d, r=Mark-Simulacrum 2020-07-01 10:17:39 +00:00
doc Stabilize #[track_caller]. 2020-06-30 22:22:32 -07:00
etc Implement new gdb/lldb pretty-printers 2020-06-09 16:13:11 +03:00
liballoc Rollup merge of #73678 - Keno:patch-1, r=LukasKalbertodt 2020-07-01 07:42:42 -07:00
libcore Rollup merge of #73778 - nbdd0121:const_likely, r=oli-obk 2020-07-01 07:42:52 -07:00
libpanic_abort lints: add improper_ctypes_definitions 2020-06-24 12:09:35 +01:00
libpanic_unwind lints: add improper_ctypes_definitions 2020-06-24 12:09:35 +01:00
libproc_macro
libprofiler_builtins Prepare for LLVM 11 2020-06-25 18:52:41 -07:00
librustc_apfloat Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
librustc_arena Rollup merge of #73378 - matthewjasper:arena-not-special, r=oli-obk 2020-06-20 14:45:00 -07:00
librustc_ast Remove const_if_match feature gate from libraries 2020-06-28 10:08:09 -07:00
librustc_ast_lowering Rollup merge of #73813 - petrochenkov:restrait, r=davidtwco 2020-06-28 08:30:31 -07:00
librustc_ast_passes Record span of const kw in GenericParamKind 2020-06-23 09:25:46 -07:00
librustc_ast_pretty Rollup merge of #73597 - ayazhafiz:i/const-span, r=ecstatic-morse 2020-06-26 00:39:08 -07:00
librustc_attr Make things build again 2020-06-02 20:38:24 +03:00
librustc_builtin_macros Rename two Resolver traits 2020-06-27 23:51:28 +03:00
librustc_codegen_llvm Rollup merge of #73525 - cuviper:llvm11, r=nikic 2020-06-27 22:29:54 -07:00
librustc_codegen_ssa Rollup merge of #73525 - cuviper:llvm11, r=nikic 2020-06-27 22:29:54 -07:00
librustc_data_structures Remove unused crate imports in 2018 edition crates 2020-06-23 05:01:20 +02:00
librustc_driver Fix -Z unpretty=everybody_loops 2020-06-19 20:27:22 -04:00
librustc_error_codes Rollup merge of #72445 - anp:stabilize-track-caller, r=oli-obk 2020-07-01 07:42:33 -07:00
librustc_errors Stabilize #[track_caller]. 2020-06-30 22:22:32 -07:00
librustc_expand Rename two Resolver traits 2020-06-27 23:51:28 +03:00
librustc_feature Stabilize #[track_caller]. 2020-06-30 22:22:32 -07:00
librustc_fs_util
librustc_graphviz Rename the crates in source code 2020-06-02 20:42:54 +03:00
librustc_hir Remove const_if_match feature gate from libraries 2020-06-28 10:08:09 -07:00
librustc_hir_pretty Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis 2020-06-15 04:10:24 +00:00
librustc_incremental Remove associated opaque types 2020-06-11 16:24:01 +01:00
librustc_index Remove const_if_match feature gate from libraries 2020-06-28 10:08:09 -07:00
librustc_infer change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_interface Auto merge of #71858 - petrochenkov:env, r=Mark-Simulacrum 2020-06-25 22:52:59 +00:00
librustc_lexer rustc_lexer: Simplify shebang parsing once more 2020-06-26 19:52:19 +03:00
librustc_lint change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_llvm Rollup merge of #73507 - mati865:cleanup-mingw-llvm-linkage, r=matthewjasper 2020-06-26 00:39:04 -07:00
librustc_macros Use min_specialization in the remaining rustc crates 2020-06-10 09:05:52 +01:00
librustc_metadata Serialize all foreign SourceFiles into proc-macro crate metadata 2020-06-29 21:45:42 -04:00
librustc_middle Rollup merge of #73776 - aszenz:refactor_mir_module, r=wesleywiser 2020-07-01 07:42:50 -07:00
librustc_mir Rollup merge of #73806 - Aaron1011:feature/approx-universal-upper, r=estebank 2020-07-01 07:42:56 -07:00
librustc_mir_build remove rustdoc warnings 2020-06-30 10:58:23 +02:00
librustc_parse Fix wording for anonymous parameter name help 2020-06-27 22:55:42 -05:00
librustc_parse_format asm: Allow multiple template strings; interpret them as newline-separated 2020-06-15 12:35:27 -07:00
librustc_passes change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_plugin_impl
librustc_privacy change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_query_system Remove const_if_match feature gate from libraries 2020-06-28 10:08:09 -07:00
librustc_resolve Rename two Resolver traits 2020-06-27 23:51:28 +03:00
librustc_save_analysis save_analysis: improve handling of enum struct variant 2020-06-19 10:35:44 +01:00
librustc_serialize Use min_specialization in the remaining rustc crates 2020-06-10 09:05:52 +01:00
librustc_session errors: use -Z terminal-width in JSON emitter 2020-06-26 16:01:51 +01:00
librustc_span Rollup merge of #73778 - nbdd0121:const_likely, r=oli-obk 2020-07-01 07:42:52 -07:00
librustc_symbol_mangling change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_target Remove const_if_match feature gate from libraries 2020-06-28 10:08:09 -07:00
librustc_trait_selection change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_traits change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustc_ty Make is_freeze and is_copy_modulo_regions take TyCtxtAt 2020-06-21 11:47:19 +02:00
librustc_typeck change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
librustdoc change skip_binder to use T by value 2020-06-30 09:13:56 +02:00
libstd Rollup merge of #73805 - poliorcetics:type-keyword, r=kennytm 2020-07-01 07:42:54 -07:00
libterm
libtest typo: awailable -> available 2020-06-08 13:37:58 -07:00
libunwind Update libunwind build process for x86_64-fortanix-unknown-sgx target 2020-06-24 11:28:41 +02:00
llvm-project@6c040dd86e [AVR] Update the rust-lang/llvm-project submodule to include AVR fixes recently merged 2020-06-24 02:16:30 +12:00
rtstartup
rustc
rustllvm Prepare for LLVM 11 2020-06-25 18:52:41 -07:00
stdarch@45340c0e2f Update stdarch submodule to latest head 2020-05-31 00:12:59 +02:00
test Rollup merge of #73828 - nop:fix/parameter-name-help, r=estebank 2020-07-01 07:42:58 -07:00
tools update Miri 2020-06-30 11:00:51 +02:00
README.md
stage0.txt Update bootstrap to rustc 1.45.0-beta.2 (1dc0f6d8e 2020-06-15) 2020-06-20 11:13:47 -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 dev guide.