1
Fork 0

Revert "Add rustc lint, warning when iterating over hashmaps"

This commit is contained in:
Mark Rousskov 2021-10-28 11:01:42 -04:00 committed by GitHub
parent f2707fec04
commit 3215eeb99f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
43 changed files with 68 additions and 299 deletions

View file

@ -144,11 +144,7 @@ impl LintStore {
&self.lints
}
pub fn get_lint_groups<'t>(
&'t self,
) -> impl Iterator<Item = (&'static str, Vec<LintId>, bool)> + 't {
// This function is not used in a way which observes the order of lints.
#[cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
pub fn get_lint_groups<'t>(&'t self) -> Vec<(&'static str, Vec<LintId>, bool)> {
self.lint_groups
.iter()
.filter(|(_, LintGroup { depr, .. })| {
@ -158,6 +154,7 @@ impl LintStore {
.map(|(k, LintGroup { lint_ids, from_plugin, .. })| {
(*k, lint_ids.clone(), *from_plugin)
})
.collect()
}
pub fn register_early_pass(