rust/src
Mark Rousskov 73996df629 Reset Formatter flags on exit from pad_integral
This fixes a bug where after calling pad_integral with appropriate flags, the
fill and alignment flags would be set to '0' and 'Right' and left as such even
after exiting pad_integral, which meant that future calls on the same Formatter
would get incorrect flags reported.

This is quite difficult to observe in practice, as almost all formatting
implementations in practice don't call `Display::fmt` directly, but rather use
`write!` or a similar macro, which means that they cannot observe the effects of
the wrong flags (as `write!` creates a fresh Formatter instance). However, we
include a test case.
2020-01-01 15:22:02 -05:00
..
bootstrap tidy: Enforce formatting rather than just check it if --bless is specified 2019-12-29 14:31:54 +03:00
build_helper Format the world 2019-12-22 17:42:47 -05:00
ci Use the chocolatey CDN directly to avoid the flaky API 2019-12-24 00:59:37 +00:00
doc Remove compiler_builtins_lib documentation 2019-12-25 11:56:19 -08:00
etc Auto merge of #67334 - estebank:ignore-triple, r=nikomatsakis 2019-12-28 23:02:09 +00:00
liballoc Auto merge of #67459 - ssomers:#67438, r=RalfJung 2019-12-28 16:04:40 +00:00
libarena Format the world 2019-12-22 17:42:47 -05:00
libcore Reset Formatter flags on exit from pad_integral 2020-01-01 15:22:02 -05:00
libfmt_macros Make things build again 2019-12-30 19:18:16 +03:00
libgraphviz Format the world 2019-12-22 17:42:47 -05:00
libpanic_abort Format the world 2019-12-22 17:42:47 -05:00
libpanic_unwind tidy: change msdn links to newer locations 2019-12-25 15:35:54 +00:00
libproc_macro Format the world 2019-12-22 17:42:47 -05:00
libprofiler_builtins Format the world 2019-12-22 17:42:47 -05:00
librustc Auto merge of #67764 - Centril:rollup-ycbq3os, r=Centril 2019-12-31 19:41:36 +00:00
librustc_apfloat Format the world 2019-12-22 17:42:47 -05:00
librustc_asan Format the world 2019-12-22 17:42:47 -05:00
librustc_ast_lowering nix lower_label identity function. 2019-12-31 17:57:17 +01:00
librustc_builtin_macros Rename libsyntax_ext and libsyntax_expand in code 2019-12-30 19:18:17 +03:00
librustc_codegen_llvm Use function attribute "frame-pointer" instead of "no-frame-pointer-elim" 2019-12-30 23:16:02 -08:00
librustc_codegen_ssa Make things build again 2019-12-30 19:18:16 +03:00
librustc_codegen_utils Make things build again 2019-12-30 19:18:16 +03:00
librustc_data_structures Auto merge of #67614 - Mark-Simulacrum:global-callbacks, r=Zoxc 2019-12-29 04:30:56 +00:00
librustc_driver Make things build again 2019-12-30 19:18:16 +03:00
librustc_error_codes Gammer fix 2019-12-30 17:14:08 +08:00
librustc_errors Make things build again 2019-12-30 19:18:16 +03:00
librustc_expand Rollup merge of #67744 - Centril:reduce-diversity, r=petrochenkov 2019-12-31 19:19:38 +01:00
librustc_feature Make things build again 2019-12-30 19:18:16 +03:00
librustc_fs_util Format src/librustc_fs_util. 2019-12-21 20:23:39 -05:00
librustc_incremental Make things build again 2019-12-30 19:18:16 +03:00
librustc_index Format the world 2019-12-22 17:42:47 -05:00
librustc_interface Auto merge of #67764 - Centril:rollup-ycbq3os, r=Centril 2019-12-31 19:41:36 +00:00
librustc_lexer Format the world 2019-12-22 17:42:47 -05:00
librustc_lint librustc_ast_lowering: fix misc fallout. 2019-12-31 17:56:25 +01:00
librustc_llvm Format the world 2019-12-22 17:42:47 -05:00
librustc_lsan Format the world 2019-12-22 17:42:47 -05:00
librustc_macros Format the world 2019-12-22 17:42:47 -05:00
librustc_metadata Auto merge of #67032 - cjgillot:hirene, r=Zoxc 2019-12-31 03:27:36 +00:00
librustc_mir Auto merge of #67032 - cjgillot:hirene, r=Zoxc 2019-12-31 03:27:36 +00:00
librustc_msan Format the world 2019-12-22 17:42:47 -05:00
librustc_parse Rollup merge of #67744 - Centril:reduce-diversity, r=petrochenkov 2019-12-31 19:19:38 +01:00
librustc_passes Rollup merge of #67697 - cjgillot:passes-scope-tree, r=Zoxc 2019-12-31 18:14:03 +05:30
librustc_plugin_impl Make things build again 2019-12-30 19:18:16 +03:00
librustc_privacy Auto merge of #67032 - cjgillot:hirene, r=Zoxc 2019-12-31 03:27:36 +00:00
librustc_resolve Auto merge of #67764 - Centril:rollup-ycbq3os, r=Centril 2019-12-31 19:41:36 +00:00
librustc_save_analysis Make things build again 2019-12-30 19:18:16 +03:00
librustc_session Rollup merge of #67735 - petrochenkov:uibool, r=Mark-Simulacrum 2019-12-31 18:14:07 +05:30
librustc_span Make things build again 2019-12-30 19:18:16 +03:00
librustc_target Make things build again 2019-12-30 19:18:16 +03:00
librustc_traits Make things build again 2019-12-30 19:18:16 +03:00
librustc_tsan Format the world 2019-12-22 17:42:47 -05:00
librustc_typeck Rollup merge of #67730 - Centril:typeck-pat-cleanup, r=estebank 2019-12-31 19:19:36 +01:00
librustdoc Rollup merge of #67735 - petrochenkov:uibool, r=Mark-Simulacrum 2019-12-31 18:14:07 +05:30
libserialize Deprecate Error::description for real 2019-12-24 22:39:49 -08:00
libstd Rollup merge of #67622 - gilescope:async-keyword-doc, r=Centril 2019-12-30 14:07:49 +09:00
libsyntax Make things build again 2019-12-30 19:18:16 +03:00
libterm Auto merge of #67605 - lzutao:msdn-links, r=Mark-Simulacrum 2019-12-28 09:19:26 +00:00
libtest Format the world 2019-12-22 17:42:47 -05:00
libunwind Format the world 2019-12-22 17:42:47 -05:00
llvm-project@2cb41005ed Update LLVM submodule 2019-11-30 01:34:31 +01:00
rtstartup Format the world 2019-12-22 17:42:47 -05:00
rustc Format the world 2019-12-22 17:42:47 -05:00
rustllvm Rollup merge of #67033 - cuviper:ValueName2, r=rkruppe 2019-12-07 00:10:02 +09:00
stdarch@e0ab2c165a
test Rollup merge of #67748 - MaskRay:frame-pointer, r=rkruppe 2019-12-31 19:19:39 +01:00
tools Support -Z ui-testing=yes/no 2019-12-30 20:01:34 +03:00
README.md
stage0.txt Implement rustfmt running manually using ignore crate 2019-12-21 20:23:55 -05: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.