rust/src
许杰友 Jieyou Xu (Joe) b477f89041
Rollup merge of #125750 - compiler-errors:expect, r=lcnr
Align `Term` methods with `GenericArg` methods, add `Term::expect_*`

* `Term::ty` -> `Term::as_type`.
* `Term::ct` -> `Term::as_const`.
* Adds `Term::expect_type` and `Term::expect_const`, and uses them in favor of `.ty().unwrap()`, etc.

I could also shorten these to `as_ty` and then do `GenericArg::as_ty` as well, but I do think the `as_` is important to signal that this is a conversion method, and not a getter, like `Const::ty` is.

r? types
2024-06-04 08:25:48 +01: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 #125690 - Lokathor:arm-maintainer-reorg, r=ehuss 2024-06-04 08:25:47 +01:00
etc Remove path choice from x fmt and add --all option. 2024-05-29 16:24:48 +10:00
librustdoc check_is_object_safe -> is_object_safe 2024-06-03 09:49:30 -04: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 Rollup merge of #125750 - compiler-errors:expect, r=lcnr 2024-06-04 08:25:48 +01: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.