Skip to content

Commit 417c09a

Browse files
Do not needlessly write-lock
1 parent b43a682 commit 417c09a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_lint/unused.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnusedAttributes {
309309
}
310310
}
311311

312-
let plugin_attributes = cx.sess().plugin_attributes.borrow_mut();
312+
let plugin_attributes = cx.sess().plugin_attributes.borrow();
313313
for &(name, ty) in plugin_attributes.iter() {
314314
if ty == AttributeType::Whitelisted && attr.check_name(name) {
315315
debug!("{:?} (plugin attr) is whitelisted with ty {:?}", name, ty);

0 commit comments

Comments
 (0)