rust/src
Zack M. Davis f3e9b1a703 in which the E0618 "expected function" diagnostic gets a makeover
Now the main span focuses on the erroneous not-a-function callee,
while showing the entire call expression is relegated to a secondary
span. In the case where the erroneous callee is itself a call, we
point out the definition, and, if the call expression spans multiple
lines, tentatively suggest a semicolon (because we suspect that the
"outer" call is actually supposed to be a tuple).

The new `bug!` assertion is, in fact, safe (`confirm_builtin_call` is
only called by `check_call`, which is only called with a first arg of
kind `ExprKind::Call` in `check_expr_kind`).

Resolves #51055.
2018-11-10 22:12:33 -08:00
..
bootstrap Auto merge of #55626 - nikic:update-emscripten, r=alexcrichton 2018-11-10 01:16:02 +00:00
build_helper Prefer unwrap_or_else to unwrap_or in case of function calls/allocations 2018-10-19 09:45:45 +02:00
ci Auto merge of #55626 - nikic:update-emscripten, r=alexcrichton 2018-11-10 01:16:02 +00:00
dlmalloc@c99638dc2e
doc Added section to Unstable Book. 2018-11-03 04:09:34 +00:00
etc Rollup merge of #55441 - xfix:patch-12, r=aturon 2018-11-07 18:01:47 +08:00
grammar
liballoc Auto merge of #55366 - Amanieu:stable_layout, r=Amanieu 2018-11-08 06:52:27 +00:00
liballoc_system wasm32: Inline a trivial function in libstd 2018-11-01 08:24:53 -07:00
libarena Update TypedArena tests 2018-10-19 14:34:44 +02:00
libbacktrace@f4d02bbdbf
libcompiler_builtins@939cbca6e9 Update compiler-builtins submodule 2018-10-30 10:51:55 -07:00
libcore Auto merge of #55650 - nikic:funnel-shift, r=nagisa 2018-11-10 19:58:14 +00:00
libfmt_macros remove padding from multiline format string label 2018-10-03 14:29:39 -04:00
libgraphviz Remove graphviz::IntoCow 2018-10-05 14:16:10 +02:00
liblibc@1844a772b6
libpanic_abort wasm32-unknown-emscripten expects the rust_eh_personality symbol 2018-11-08 03:27:45 +01:00
libpanic_unwind refactor: use shorthand fields 2018-11-06 15:05:44 -05:00
libproc_macro All proc_macro_span APIs tracked at #54725 now 2018-10-01 12:15:35 -07:00
libprofiler_builtins Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc Auto merge of #55637 - pnkfelix:issue-55552-dont-attempt-to-ascribe-projections-out-of-a-ty-var, r=nikomatsakis 2018-11-10 09:38:10 +00:00
librustc_allocator Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_apfloat Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_asan Rollup merge of #54681 - alexcrichton:san-names, r=kennytm 2018-10-01 16:13:04 +08:00
librustc_borrowck Remove ReCanonical in favor of ReLateBound 2018-11-03 11:41:55 +01:00
librustc_codegen_llvm Auto merge of #54864 - ljedrz:cleanup_codegen_llvm_back, r=Mark-Simulacrum 2018-11-10 23:16:25 +00:00
librustc_codegen_utils codegen_llvm_back: use mem::replace instead of swap where more concise 2018-11-10 19:25:24 +01:00
librustc_cratesio_shim Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_data_structures Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco 2018-11-07 21:27:00 +08:00
librustc_driver Rollup merge of #55495 - wesleywiser:opt_fuel_rustbuild, r=nikomatsakis 2018-11-07 18:01:50 +08:00
librustc_errors rustc: Request ansi colors if stderr isn't a tty 2018-11-08 07:53:03 -08:00
librustc_fs_util
librustc_incremental Prefer Default::default over FxHash*::default in struct constructors 2018-10-19 14:34:44 +02:00
librustc_lint Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco 2018-11-07 21:27:00 +08:00
librustc_llvm Revert "rustc: Fix (again) simd vectors by-val in ABI" 2018-10-23 00:59:14 -07:00
librustc_lsan Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_metadata Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco 2018-11-07 21:27:00 +08:00
librustc_mir Auto merge of #55650 - nikic:funnel-shift, r=nagisa 2018-11-10 19:58:14 +00:00
librustc_msan Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_passes Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco 2018-11-07 21:27:00 +08:00
librustc_platform_intrinsics Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_plugin Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
librustc_privacy Deprecate the FxHashMap() and FxHashSet() constructor function hack 2018-10-19 14:34:44 +02:00
librustc_resolve Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco 2018-11-07 21:27:00 +08:00
librustc_save_analysis Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco 2018-11-07 21:27:00 +08:00
librustc_target Rollup merge of #55659 - alexcrichton:musl-no-group, r=michaelwoerister 2018-11-08 18:14:53 -07:00
librustc_traits Auto merge of #55637 - pnkfelix:issue-55552-dont-attempt-to-ascribe-projections-out-of-a-ty-var, r=nikomatsakis 2018-11-10 09:38:10 +00:00
librustc_tsan Rollup merge of #54681 - alexcrichton:san-names, r=kennytm 2018-10-01 16:13:04 +08:00
librustc_typeck in which the E0618 "expected function" diagnostic gets a makeover 2018-11-10 22:12:33 -08:00
librustdoc Rollup merge of #55760 - jonhoo:no-intermediate-fonts, r=GuillaumeGomez 2018-11-08 18:15:12 -07:00
libserialize Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
libstd Deprecate channel selection 2018-11-08 22:51:46 +01:00
libsyntax Rollup merge of #55777 - nnethercote:less-P-in-ast, r=petrochenkov 2018-11-08 18:15:19 -07:00
libsyntax_ext syntax: improve a few allocations 2018-10-31 16:58:51 +01:00
libsyntax_pos Rename other occs of (Code/File)Map to Source(Map/File) #51574 2018-10-29 21:26:13 +01:00
libterm Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
libtest add option to libtest to run all tests 2018-10-14 00:58:17 +02:00
libunwind Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
llvm@7051ead40a Fix DWARF generation for enums 2018-10-30 12:06:07 -06:00
llvm-emscripten@7f23313edf Pull in fix for dist-i686-linux build 2018-11-09 16:59:45 +01:00
rtstartup
rustc Use jemalloc-sys on Linux and OSX compilers 2018-11-02 06:52:56 -07:00
rustllvm Auto merge of #55626 - nikic:update-emscripten, r=alexcrichton 2018-11-10 01:16:02 +00:00
stdsimd@0309be1ade Update stdsimd 2018-11-02 14:58:53 +01:00
test in which the E0618 "expected function" diagnostic gets a makeover 2018-11-10 22:12:33 -08:00
tools Auto merge of #55830 - alexcrichton:update-cargo, r=alexcrichton 2018-11-10 12:21:58 +00:00
.gitignore
Cargo.lock Update Cargo submodule 2018-11-09 12:59:05 -08:00
Cargo.toml Use rls-data 0.18.1 2018-09-28 01:54:01 +02:00
README.md
stage0.txt Bump nightly to 1.32.0 2018-10-31 11:53:50 -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: