From ad526d831e295facc198610a27350076aa5aa438 Mon Sep 17 00:00:00 2001 From: yukang Date: Tue, 30 Jan 2024 12:42:29 +0800 Subject: add missing potential_query_instability for keys and values in hashmap --- compiler/rustc_lint/src/context/diagnostics.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/rustc_lint/src/context/diagnostics.rs') diff --git a/compiler/rustc_lint/src/context/diagnostics.rs b/compiler/rustc_lint/src/context/diagnostics.rs index 312874db3f5..eb42730f69a 100644 --- a/compiler/rustc_lint/src/context/diagnostics.rs +++ b/compiler/rustc_lint/src/context/diagnostics.rs @@ -185,6 +185,7 @@ pub(super) fn builtin( db.note("see the asm section of Rust By Example for more information"); } BuiltinLintDiagnostics::UnexpectedCfgName((name, name_span), value) => { + #[allow(rustc::potential_query_instability)] let possibilities: Vec = sess.parse_sess.check_config.expecteds.keys().copied().collect(); let is_from_cargo = std::env::var_os("CARGO").is_some(); -- cgit 1.4.1-3-g733a5