rust/src
bors bf962e2552 Auto merge of #54626 - alexcrichton:dwarf-generics, r=michaelwoerister
rustc: Tweak filenames encoded into metadata

This commit is a fix for #54408 where on nightly right now whenever
generics are inlined the path name listed for the inlined function's
debuginfo is a relative path to the cwd, which surely doesn't exist!
Previously on beta/stable the debuginfo mentioned an absolute path which
still didn't exist, but more predictably didn't exist.

The change between stable/nightly is that nightly is now compiled with
`--remap-path-prefix` to give a deterministic prefix to all
rustc-generated paths in debuginfo. By using `--remap-path-prefix` the
previous logic would recognize that the cwd was remapped, causing the
original relative path name of the standard library to get emitted. If
`--remap-path-prefix` *wasn't* passed in then the logic would create an
absolute path name and then create a new source file entry.

The fix in this commit is to apply the "recreate the source file entry
with an absolute path" logic a bit more aggresively. If the source
file's name was remapped then we don't touch it, but otherwise we always
take the working dir (which may have been remapped) and then join it to
the file to ensure that we process all relative file names as well.

The end result is that the standard library should have an absolute path
for all file names in debuginfo (using our `--remap-path-prefix`
argument) as it does on stable after this patch.

Closes #54408
2018-10-26 14:30:26 +00:00
..
bootstrap fix typos in various places 2018-10-23 15:56:25 +02: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 Remove the parse-fail test suite 2018-10-21 14:06:28 +03:00
dlmalloc@c99638dc2e
doc update books for the next release 2018-10-20 07:47:32 -04:00
etc fix typos in various places 2018-10-23 15:56:25 +02:00
grammar
jemalloc@1f5a28755e
liballoc fix typos in various places 2018-10-23 15:56:25 +02:00
liballoc_jemalloc Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
liballoc_system std: Synchronize global allocator on wasm32 2018-10-09 23:35:45 -07:00
libarena Update TypedArena tests 2018-10-19 14:34:44 +02:00
libbacktrace@f4d02bbdbf
libcompiler_builtins@0703bfa725
libcore Rollup merge of #55269 - matthiaskrgr:typos_oct, r=zackmdavis 2018-10-25 14:31:13 +02: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 wasm: Explicitly export all symbols with LLD 2018-10-02 13:49:51 -07:00
libpanic_unwind Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07: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 #53821 - oli-obk:sanity_query, r=RalfJung 2018-10-26 11:05:00 +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 Prefer Default::default over FxHash*::default in struct constructors 2018-10-19 14:34:44 +02:00
librustc_codegen_llvm Auto merge of #53821 - oli-obk:sanity_query, r=RalfJung 2018-10-26 11:05:00 +00:00
librustc_codegen_utils Auto merge of #55014 - ljedrz:lazyboye_unwraps, r=matthewjasper 2018-10-20 11:22:48 +00: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 Auto merge of #54778 - scottmcm:stabilize-ihle, r=pnkfelix 2018-10-23 04:05:50 +00:00
librustc_driver Add extern crate items to extern prelude 2018-10-24 00:14:50 +03:00
librustc_errors Auto merge of #55014 - ljedrz:lazyboye_unwraps, r=matthewjasper 2018-10-20 11:22:48 +00: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 Auto merge of #53821 - oli-obk:sanity_query, r=RalfJung 2018-10-26 11:05:00 +00: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 Auto merge of #54626 - alexcrichton:dwarf-generics, r=michaelwoerister 2018-10-26 14:30:26 +00:00
librustc_metadata_utils
librustc_mir Auto merge of #53821 - oli-obk:sanity_query, r=RalfJung 2018-10-26 11:05:00 +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 fix typos in various places 2018-10-23 15:56:25 +02: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 more reviewer changes 2018-10-26 09:50:51 +13:00
librustc_save_analysis Fix tests and assertions; add some comments 2018-10-26 09:50:51 +13:00
librustc_target fix typos in various places 2018-10-23 15:56:25 +02:00
librustc_traits port the relate-types code from NLL type-check into a type-op 2018-10-24 15:12:50 -04:00
librustc_tsan Rollup merge of #54681 - alexcrichton:san-names, r=kennytm 2018-10-01 16:13:04 +08:00
librustc_typeck Auto merge of #53821 - oli-obk:sanity_query, r=RalfJung 2018-10-26 11:05:00 +00:00
librustdoc Fix tests and rustdoc 2018-10-26 09:48:44 +13:00
libserialize Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
libstd Rollup merge of #55328 - raphlinus:copysign_typo, r=joshtriplett 2018-10-25 14:31:21 +02:00
libsyntax more reviewer changes 2018-10-26 09:50:51 +13:00
libsyntax_ext expansion: Remove restriction on use of macro attributes with test/bench 2018-10-05 11:40:40 +04:00
libsyntax_pos Prefer Default::default over FxHash*::default in struct constructors 2018-10-19 14:34:44 +02:00
libterm Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
libtest Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
libunwind Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
llvm@caddcd9b9d
llvm-emscripten@2717444753
rtstartup
rustc
rustllvm Revert "rustc: Fix (again) simd vectors by-val in ABI" 2018-10-23 00:59:14 -07:00
stdsimd@431766a3fb Update stdsimd submodule 2018-10-23 09:51:02 -07:00
test Auto merge of #54626 - alexcrichton:dwarf-generics, r=michaelwoerister 2018-10-26 14:30:26 +00:00
tools Rollup merge of #55269 - matthiaskrgr:typos_oct, r=zackmdavis 2018-10-25 14:31:13 +02:00
.gitignore
Cargo.lock submodules: update clippy from 5afdf8b7 to b1d03437 2018-10-21 17:56:00 +02:00
Cargo.toml Use rls-data 0.18.1 2018-09-28 01:54:01 +02:00
README.md
stage0.txt bump bootstrap compiler to rustc beta 2018-10-13 2018-10-14 00:52:47 +02: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: