rust/src
Matthias Krüger 9d5ab73523
Rollup merge of #121615 - nnethercote:fix-121517, r=oli-obk
Move `emit_stashed_diagnostic` call in rustfmt.

This call was added to `parse_crate_mod` in #121487, to fix a case where a stashed diagnostic wasn't emitted. But there is another path where a stashed diagnostic might fail to be emitted if there's a parse error, if the `build` call in `parse_crate_inner` fails before `parse_crate_mod` is reached.

So this commit moves the `emit_stashed_diagnostic` call outwards, from `parse_crate_mod` to `format_project`, just after the `Parser::parse_crate` call. This should be far out enough to catch any parsing errors.

Fixes #121517.

r? `@oli-obk`
cc `@ytmimi`
2024-02-26 16:06:03 +01:00
..
bootstrap Auto merge of #121182 - majaha:mingw_ci_new, r=Mark-Simulacrum 2024-02-25 21:10:15 +00:00
ci Auto merge of #121182 - majaha:mingw_ci_new, r=Mark-Simulacrum 2024-02-25 21:10:15 +00:00
doc remove repetitive words 2024-02-23 18:26:01 +08:00
etc Update tests. 2024-01-27 16:38:57 +01:00
librustdoc Rollup merge of #121590 - GuillaumeGomez:rustdoc-js-changed, r=notriddle 2024-02-26 10:27:42 +01:00
llvm-project@9ea7f739f2 Update to LLVM 18 2024-02-13 10:33:40 +01:00
rustdoc-json-types Add is_object_safe information for traits in JSON output 2023-12-23 11:43:31 +01:00
tools Rollup merge of #121615 - nnethercote:fix-121517, r=oli-obk 2024-02-26 16:06:03 +01:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json Bump to newly branched stage0 compiler 2024-02-08 07:43:38 -05:00
version Bump to 1.78 2024-02-03 13:14:34 -05:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

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