add missing potential_query_instability for keys and values in hashmap

This commit is contained in:
yukang
2024-01-30 12:42:29 +08:00
parent 5518eaa946
commit ad526d831e
10 changed files with 55 additions and 7 deletions

View File

@@ -185,6 +185,7 @@ pub(super) fn builtin(
db.note("see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information");
}
BuiltinLintDiagnostics::UnexpectedCfgName((name, name_span), value) => {
#[allow(rustc::potential_query_instability)]
let possibilities: Vec<Symbol> =
sess.parse_sess.check_config.expecteds.keys().copied().collect();
let is_from_cargo = std::env::var_os("CARGO").is_some();