Metadata collection monster searching for configurations

This commit is contained in:
xFrednet
2021-05-11 20:23:52 +02:00
parent aa15a5442a
commit 210ec728e5
3 changed files with 109 additions and 5 deletions

View File

@@ -1009,7 +1009,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
#[cfg(feature = "metadata-collector-lint")]
{
if std::env::var("ENABLE_METADATA_COLLECTION").eq(&Ok("1".to_string())) {
store.register_late_pass(|| box utils::internal_lints::metadata_collector::MetadataCollector::default());
store.register_late_pass(|| box utils::internal_lints::metadata_collector::MetadataCollector::new());
}
}