rustc_lint::internal

Static DEFAULT_HASH_TYPES

source
pub static DEFAULT_HASH_TYPES: &Lint
Expand description

The default_hash_type lint detects use of std::collections::HashMap and std::collections::HashSet, suggesting the use of FxHashMap/FxHashSet.

This can help as FxHasher can perform better than the default hasher. DOS protection is not required as input is assumed to be trusted.