about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-13 10:59:36 +0000
committerbors <bors@rust-lang.org>2023-08-13 10:59:36 +0000
commit5f3abbc52fc460c05f24648cce3969a41c0b02e9 (patch)
treee2c08145b8738dddd8a2fa26dceb86eb30112953 /compiler/rustc_codegen_llvm/src
parent1702d0fffc490e304cf93558c621f913ca062e62 (diff)
parent7353c96be899f02f52455f61bfaf49b80022a182 (diff)
downloadrust-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