rustc: Move crate_types from Session to GlobalCtxt
Removes a piece of mutable state. Follow up to #114578.
This commit is contained in:
parent
5f8600939e
commit
36a50008d0
1 changed files with 0 additions and 1 deletions
|
|
@ -74,7 +74,6 @@ fn is_executable_or_proc_macro(cx: &LateContext<'_>) -> bool {
|
|||
use rustc_session::config::CrateType;
|
||||
|
||||
cx.tcx
|
||||
.sess
|
||||
.crate_types()
|
||||
.iter()
|
||||
.any(|t: &CrateType| matches!(t, CrateType::Executable | CrateType::ProcMacro))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue