POTENTIAL_QUERY_INSTABILITY in rustc_lint::internal - Rust
Description: The `potential_query_instability` lint detects use of methods which can lead to potential query instability, such as iterating over a `HashMap`.

Skip to main content

## POTENTIAL_QUERY_INSTABILITY

# 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.