Merge pull request #2681 from phansch/fix_latest_nightly_breakage

Fix latest nightly breakage
This commit is contained in:
Oliver Schneider 2018-04-19 08:28:10 +02:00 committed by GitHub
commit 475959d905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ extern crate clippy_lints;
#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
if let Ok(lint_store) = reg.sess.lint_store.try_borrow() {
reg.sess.lint_store.with_read_lock(|lint_store| {
for (lint, _, _) in lint_store.get_lint_groups() {
if lint == "clippy" {
reg.sess
@ -21,7 +21,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
return;
}
}
}
});
clippy_lints::register_plugins(reg);
}