rust/src
bors 576d27c5a6 Auto merge of #75396 - RalfJung:miri-spans, r=oli-obk
Miri: improve spans of required_const failures

In https://github.com/rust-lang/rust/pull/75339 I added a loop evaluating all consts required by a function body. Unfortunately, if one of their evaluations fails, then the span used for that was that of the first statement in the function body, which happened to work form some existing test but is not sensible in general.

This PR changes it to point to the whole function instead, which is at least not wrong.

r? @oli-obk
2020-08-12 20:44:19 +00:00
..
bootstrap Auto merge of #75111 - mati865:use-lld-option, r=Mark-Simulacrum 2020-08-04 05:37:44 +00:00
build_helper build: Harden env var tracking in build scripts 2020-07-22 19:51:19 +03:00
ci Update MinGW comments in ci.yml 2020-08-11 16:31:32 +02:00
doc Update asm! documentation in unstable book 2020-08-06 23:22:07 +01:00
etc Handle new HashMap layout in CDB, MSVC, WinDbg, etc. 2020-08-07 07:03:15 +01:00
librustc_apfloat
librustc_arena Rollup merge of #73378 - matthewjasper:arena-not-special, r=oli-obk 2020-06-20 14:45:00 -07:00
librustc_ast Auto merge of #74953 - JulianKnodt:master, r=lcnr 2020-08-10 15:19:46 +00:00
librustc_ast_lowering Rollup merge of #75350 - estebank:foreign-fn-with-body-ice, r=davidtwco 2020-08-10 09:08:03 +09:00
librustc_ast_passes Auto merge of #74953 - JulianKnodt:master, r=lcnr 2020-08-10 15:19:46 +00:00
librustc_ast_pretty Eliminate the SessionGlobals from librustc_ast. 2020-08-08 12:03:42 +10:00
librustc_attr Introduce rustc_lexer::is_ident and use it in couple of places 2020-08-11 00:08:04 +03:00
librustc_builtin_macros Eliminate the SessionGlobals from librustc_ast. 2020-08-08 12:03:42 +10:00
librustc_codegen_llvm Rollup merge of #75226 - pnadon:miri-undef-uninit, r=RalfJung 2020-08-11 16:23:47 +09:00
librustc_codegen_ssa Rollup merge of #75315 - Mark-Simulacrum:save-temps, r=ecstatic-morse 2020-08-11 01:56:34 +02:00
librustc_data_structures Rollup merge of #75315 - Mark-Simulacrum:save-temps, r=ecstatic-morse 2020-08-11 01:56:34 +02:00
librustc_driver Remove some unnecessary uses of Option. 2020-08-08 12:02:45 +10:00
librustc_error_codes Remove empty fn main from E0749 2020-08-11 01:06:30 +08:00
librustc_errors Show backtrace numbers in backtrace whenever more than one is involved 2020-08-05 11:05:12 -04:00
librustc_expand Introduce rustc_lexer::is_ident and use it in couple of places 2020-08-11 00:08:04 +03:00
librustc_feature fix min_const_generics version 2020-08-08 13:35:42 +02:00
librustc_fs_util
librustc_graphviz
librustc_hir Eliminate librustc_hir's dependency on librustc_session. 2020-08-08 12:03:44 +10:00
librustc_hir_pretty Remove lots of Symbol::as_str() calls. 2020-07-15 09:01:35 +10:00
librustc_incremental Eliminate the SessionGlobals from librustc_ast. 2020-08-08 12:03:42 +10:00
librustc_index mir: use FiniteBitSet<u32> in polymorphization 2020-08-04 18:30:53 +01:00
librustc_infer Use existing infcx when emitting trait impl diagnostic 2020-08-10 08:08:15 -04:00
librustc_interface Avoid deleting temporary files on error 2020-08-09 08:28:15 -04:00
librustc_lexer Introduce rustc_lexer::is_ident and use it in couple of places 2020-08-11 00:08:04 +03:00
librustc_lint Rollup merge of #75403 - giraffate:update_comment_in_fn, r=ecstatic-morse 2020-08-11 12:28:35 -07:00
librustc_llvm Rollup merge of #74643 - petrochenkov:noenvrerun, r=Mark-Simulacrum 2020-07-22 16:34:50 -07:00
librustc_macros Enforce the static symbol order. 2020-07-16 16:53:24 +10:00
librustc_metadata Auto merge of #75278 - cuviper:indexmap, r=Mark-Simulacrum 2020-08-09 20:08:50 +00:00
librustc_middle Rollup merge of #75394 - oli-obk:get_static, r=RalfJung 2020-08-12 12:07:15 +09:00
librustc_mir fix span of stack size error 2020-08-12 11:14:49 +02:00
librustc_mir_build rustc_mir_build: use IndexMap in TestKind::SwitchInt 2020-08-09 12:25:22 -07:00
librustc_parse Auto merge of #75321 - estebank:js-goes-gaga, r=davidtwco 2020-08-12 08:40:36 +00:00
librustc_parse_format fix clippy::map_identity: remove redundant .map(|x| x) call 2020-08-07 22:47:32 +02:00
librustc_passes Eliminate librustc_hir's dependency on librustc_session. 2020-08-08 12:03:44 +10:00
librustc_plugin_impl Increase recursion_limit in librustc_plugin_impl. 2020-08-08 12:05:10 +10:00
librustc_privacy Auto merge of #75127 - jyn514:impl-trait, r=pnkfelix 2020-08-10 19:33:25 +00:00
librustc_query_system Auto merge of #75055 - cjgillot:clean-cache, r=oli-obk 2020-08-03 03:37:33 +00:00
librustc_resolve Detect tuple variants used as struct pattern and suggest correct pattern 2020-08-11 10:23:52 -07:00
librustc_save_analysis Auto merge of #74932 - nnethercote:rm-ast-session-globals, r=petrochenkov 2020-08-08 05:58:57 +00:00
librustc_serialize
librustc_session Fix symbol ordering for confusable idents detection. 2020-08-10 07:12:59 +10:00
librustc_span Rollup merge of #75320 - estebank:js-for-i-of-x, r=davidtwco 2020-08-10 09:07:56 +09:00
librustc_symbol_mangling Eliminate the SessionGlobals from librustc_ast. 2020-08-08 12:03:42 +10:00
librustc_target Remove the --no-threads workaround for wasm targets. 2020-08-04 13:31:08 -07:00
librustc_trait_selection Auto merge of #75205 - Aaron1011:fix/auto-trait-proj-ice, r=nikomatsakis 2020-08-12 06:42:49 +00:00
librustc_traits fix clippy::needless_return: remove unneeded return statements 2020-08-08 00:57:37 +02:00
librustc_ty fix clippy::into_iter_on_ref: use .iter() instead of into_iter() on references. 2020-08-08 00:57:15 +02:00
librustc_typeck Rollup merge of #74960 - nbdd0121:typeck, r=nikomatsakis 2020-08-12 12:07:08 +09:00
librustdoc Rollup merge of #75393 - GuillaumeGomez:fix-help-shortcut, r=pickfire 2020-08-11 12:28:34 -07:00
llvm-project@86b120e6f3 Update llvm-project to latest origin/rustc/10.0-2020-05-05 commit which includes LVI segfault fix 2020-07-12 18:49:14 +00:00
rustc
rustllvm Fixed coverage map issues; better aligned with LLVM APIs 2020-07-25 07:39:51 -07:00
test Auto merge of #75396 - RalfJung:miri-spans, r=oli-obk 2020-08-12 20:44:19 +00:00
tools toolstate: remove embedded-resources alumni from toolstate 2020-08-12 13:53:50 +02:00
README.md Update outdated readme 2020-07-27 22:05:34 -05:00
stage0.txt Bump to 1.47 2020-07-16 19:36:49 -04:00

This directory contains the source code of the rust project, including:

  • rustc and its tests
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.