Skip to content

Commit 199c298

Browse files
y21flip1995
authored andcommitted
use Lrc instead of the aliased type Arc directly
1 parent 14f429e commit 199c298

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/clippy/clippy_lints/src/attrs/mixed_attributes_style.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ use super::MIXED_ATTRIBUTES_STYLE;
22
use clippy_utils::diagnostics::span_lint;
33
use rustc_ast::{AttrKind, AttrStyle, Attribute};
44
use rustc_data_structures::fx::FxHashSet;
5+
use rustc_data_structures::sync::Lrc;
56
use rustc_lint::{LateContext, LintContext};
67
use rustc_span::source_map::SourceMap;
78
use rustc_span::{SourceFile, Span, Symbol};
8-
use std::sync::Arc;
99

1010
#[derive(Hash, PartialEq, Eq)]
1111
enum SimpleAttrKind {
@@ -79,7 +79,7 @@ fn lint_mixed_attrs(cx: &LateContext<'_>, attrs: &[Attribute]) {
7979
);
8080
}
8181

82-
fn attr_in_same_src_as_item(source_map: &SourceMap, item_src: &Arc<SourceFile>, attr_span: Span) -> bool {
82+
fn attr_in_same_src_as_item(source_map: &SourceMap, item_src: &Lrc<SourceFile>, attr_span: Span) -> bool {
8383
let attr_src = source_map.lookup_source_file(attr_span.lo());
84-
Arc::ptr_eq(item_src, &attr_src)
84+
Lrc::ptr_eq(item_src, &attr_src)
8585
}

0 commit comments

Comments
 (0)