Skip to content

Commit dc40c93

Browse files
authored
Rollup merge of rust-lang#66073 - Mark-Simulacrum:no-borrow-mut, r=Centril
Do not needlessly write-lock Just removes a needless `borrow_mut()` by using `borrow()` instead.
2 parents 1d5cb17 + 417c09a commit dc40c93

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)