rust/src
Nicholas Nethercote 2d4e7df144 rustfmt: Remove an unnecessary catch_unwind use.
The `Input::File` and `Input::Text` cases should be very similar.
However, currently the `Input::File` case uses `catch_unwind` because,
until recently (#125815) there was a fallible version of
`new_parser_from_source_str` but only an infallible version of
`new_parser_from_file`. This difference wasn't fundamental, just an
overlooked gap in the API of `rustc_parse`.

Both of those operations are now fallible, so the `Input::File` and
`Input::Text` cases can made more similar, with no need for
`catch_unwind`. This also lets us simplify an `Option<Vec<Diag>>` to
`Vec<Diag>`.
2024-06-05 10:38:03 +10:00
..
bootstrap include missing submodule on bootstrap 2024-06-01 17:27:35 +03:00
ci compiletest: clarify COMPILETEST_NEEDS_ALL_LLVM_COMPONENTS error 2024-05-30 08:07:56 +02:00
doc Rollup merge of #125944 - P1n3appl3:fuchsia, r=lqd 2024-06-04 21:41:37 +02:00
etc Remove path choice from x fmt and add --all option. 2024-05-29 16:24:48 +10:00
librustdoc Make top-level rustc_parse functions fallible. 2024-06-05 10:38:03 +10:00
llvm-project@b31c30a9bb Update to LLVM 18.1.6 2024-05-19 18:24:30 +02:00
rustdoc-json-types Rollup merge of #125130 - aDotInTheVoid:id-docs, r=GuillaumeGomez 2024-05-16 16:22:45 +02:00
tools rustfmt: Remove an unnecessary catch_unwind use. 2024-06-05 10:38:03 +10:00
README.md
stage0 Bump the stage0 compiler to beta.7 (2024-05-25) 2024-05-29 19:30:51 -04:00
version Bump version to 1.80 2024-04-27 19:03:50 -04: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.