Skip to content

Commit 36a5000

Browse files
committed
rustc: Move crate_types from Session to GlobalCtxt
Removes a piece of mutable state. Follow up to rust-lang#114578.
1 parent 5f86009 commit 36a5000

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_lints/src/missing_inline.rs

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ fn is_executable_or_proc_macro(cx: &LateContext<'_>) -> bool {
7474
use rustc_session::config::CrateType;
7575

7676
cx.tcx
77-
.sess
7877
.crate_types()
7978
.iter()
8079
.any(|t: &CrateType| matches!(t, CrateType::Executable | CrateType::ProcMacro))

0 commit comments

Comments
 (0)