rustc_lint::internal

Static POTENTIAL_QUERY_INSTABILITY

source
pub static POTENTIAL_QUERY_INSTABILITY: &Lint
Expand description

The potential_query_instability lint detects use of methods which can lead to potential query instability, such as iterating over a HashMap.

Due to the incremental compilation model, queries must return deterministic, stable results. HashMap iteration order can change between compilations, and will introduce instability if query results expose the order.