rust/src
bors 5f3abbc52f Auto merge of #114723 - petrochenkov:noplugin2, r=davidtwco
rustc: Move `features` from `Session` to `GlobalCtxt`

Removes one more piece of mutable state.
Follow up to #114622.

The rule I used for passing feature in function signatures:
- if a crate already depends on `rustc_middle`, then `Session` is replaced with `TyCtxt`
- otherwise session and features are passed as a pair `sess: &Session, features: &Features`

The code in `rustc_lint` is ultimately used for implementing a trait from `rustc_expand`, so it also doesn't use tcx despite the dependency on `rustc_middle`.
2023-08-13 10:59:36 +00:00
..
bootstrap Auto merge of #114697 - matthiaskrgr:rollup-ywooy8x, r=matthiaskrgr 2023-08-10 15:46:39 +00:00
ci CI: fix Docker layer caching 2023-08-12 18:55:13 +02:00
doc Update profile_sample_use.md 2023-08-10 05:18:58 +02:00
etc Auto merge of #112482 - tgross35:ci-non-rust-linters, r=pietroalbini 2023-08-10 13:07:18 +00:00
librustdoc rustc: Move features from Session to GlobalCtxt 2023-08-11 16:51:50 +08:00
llvm-project@7c612e1732 Update LLVM submodule 2023-08-07 20:35:55 +02:00
rustdoc-json-types Verify that ItemEnum can be serialized and then deserialized using bincode 2023-05-22 18:26:20 +01:00
tools Update cargo 2023-08-13 07:09:33 +01:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json Bump bootstrap compiler to latest 2023-07-12 21:26:04 -04:00
version Bump version 2023-07-08 10:35:49 -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.