Skip to content

Commit

Permalink
rustc: Move crate_types from Session to GlobalCtxt
Browse files Browse the repository at this point in the history
Removes a piece of mutable state.
Follow up to rust-lang#114578.
  • Loading branch information
petrochenkov committed Aug 9, 2023
1 parent 5f86009 commit 36a5000
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion clippy_lints/src/missing_inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 36a5000

Please sign in to comment.