diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-08-08 18:28:20 +0800 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-08-09 14:17:54 +0800 |
| commit | 36a50008d007d258a8de38619935d689730e6d1f (patch) | |
| tree | 0d75fb6d7c67770dee72eb483d813d7883ecdc84 | |
| parent | 5f8600939ec6291c78acaea3b9847c2d047c12ab (diff) | |
| download | rust-36a50008d007d258a8de38619935d689730e6d1f.tar.gz rust-36a50008d007d258a8de38619935d689730e6d1f.zip | |
rustc: Move `crate_types` from `Session` to `GlobalCtxt`
Removes a piece of mutable state. Follow up to #114578.
| -rw-r--r-- | clippy_lints/src/missing_inline.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clippy_lints/src/missing_inline.rs b/clippy_lints/src/missing_inline.rs index a41d5a9ce8d..93f6025c71d 100644 --- a/clippy_lints/src/missing_inline.rs +++ b/clippy_lints/src/missing_inline.rs @@ -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)) |
