about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-03-03 20:17:26 +1100
committerZalathar <Zalathar@users.noreply.github.com>2025-03-03 20:20:24 +1100
commitddc9f45b8924d7b38ec0dbc7ecf3c1058988cd93 (patch)
tree5c425bee52dca50ebce5ca068cd96eab170c1a93
parent870f3952ac57f97cbb5f6d8cbd2d01e6ae3db7c5 (diff)
downloadrust-ddc9f45b8924d7b38ec0dbc7ecf3c1058988cd93.tar.gz
rust-ddc9f45b8924d7b38ec0dbc7ecf3c1058988cd93.zip
Remove some unnecessary aliases from `rustc_data_structures::sync`
With the removal of `cfg(parallel_compiler)`, these are always shared
references and `std::sync::OnceLock`.
-rw-r--r--clippy_utils/src/macros.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/clippy_utils/src/macros.rs b/clippy_utils/src/macros.rs
index 3ce2cdfebe9..1a457bc7f21 100644
--- a/clippy_utils/src/macros.rs
+++ b/clippy_utils/src/macros.rs
@@ -1,6 +1,6 @@
 #![allow(clippy::similar_names)] // `expr` and `expn`
 
-use std::sync::Arc;
+use std::sync::{Arc, OnceLock};
 
 use crate::get_unique_attr;
 use crate::visitors::{Descend, for_each_expr_without_closures};
@@ -8,7 +8,6 @@ use crate::visitors::{Descend, for_each_expr_without_closures};
 use arrayvec::ArrayVec;
 use rustc_ast::{FormatArgs, FormatArgument, FormatPlaceholder};
 use rustc_data_structures::fx::FxHashMap;
-use rustc_data_structures::sync::OnceLock;
 use rustc_hir::{self as hir, Expr, ExprKind, HirId, Node, QPath};
 use rustc_lint::{LateContext, LintContext};
 use rustc_span::def_id::DefId;