diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-11-03 16:52:27 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-11-03 16:52:27 -0500 |
| commit | 417c09ab2705b38f23b87daa82b1ace0a03a8117 (patch) | |
| tree | aff12d790657fe36bcdde18fe473cfc6c8f34589 | |
| parent | b43a6822597061dc18cbdde1769d9815e718d7bb (diff) | |
| download | rust-417c09ab2705b38f23b87daa82b1ace0a03a8117.tar.gz rust-417c09ab2705b38f23b87daa82b1ace0a03a8117.zip | |
Do not needlessly write-lock
| -rw-r--r-- | src/librustc_lint/unused.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_lint/unused.rs b/src/librustc_lint/unused.rs index af43030d0f2..3f85e6d772e 100644 --- a/src/librustc_lint/unused.rs +++ b/src/librustc_lint/unused.rs @@ -309,7 +309,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnusedAttributes { } } - let plugin_attributes = cx.sess().plugin_attributes.borrow_mut(); + let plugin_attributes = cx.sess().plugin_attributes.borrow(); for &(name, ty) in plugin_attributes.iter() { if ty == AttributeType::Whitelisted && attr.check_name(name) { debug!("{:?} (plugin attr) is whitelisted with ty {:?}", name, ty); |
