diff options
| author | bors <bors@rust-lang.org> | 2023-08-13 10:59:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-13 10:59:36 +0000 |
| commit | 5f3abbc52fc460c05f24648cce3969a41c0b02e9 (patch) | |
| tree | e2c08145b8738dddd8a2fa26dceb86eb30112953 /compiler/rustc_codegen_llvm/src | |
| parent | 1702d0fffc490e304cf93558c621f913ca062e62 (diff) | |
| parent | 7353c96be899f02f52455f61bfaf49b80022a182 (diff) | |
| download | rust-5f3abbc52fc460c05f24648cce3969a41c0b02e9.tar.gz rust-5f3abbc52fc460c05f24648cce3969a41c0b02e9.zip | |
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`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
