about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back
diff options
context:
space:
mode:
authorMartin Nordholts <martin.nordholts@codetale.se>2023-12-12 13:14:53 +0100
committerMartin Nordholts <martin.nordholts@codetale.se>2023-12-12 13:16:14 +0100
commitf44ccbab2bbdc538b739d6a1f5f9fbdb8339f8f8 (patch)
tree9659510c98b2a330ee6d4cff786367005bf7126d /compiler/rustc_codegen_llvm/src/back
parent5b8bc568d28b2e922290c9a966b3231d0ce9398b (diff)
downloadrust-f44ccbab2bbdc538b739d6a1f5f9fbdb8339f8f8.tar.gz
rust-f44ccbab2bbdc538b739d6a1f5f9fbdb8339f8f8.zip
rustc_codegen_llvm: Enforce `rustc::potential_query_instability` lint
Stop allowing `rustc::potential_query_instability` on all of
`rustc_codegen_llvm` and instead allow it on a case-by-case basis. In
this case, both instances are safe to allow.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/lto.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs
index abc33a04598..97444f1a5bd 100644
--- a/compiler/rustc_codegen_llvm/src/back/lto.rs
+++ b/compiler/rustc_codegen_llvm/src/back/lto.rs
@@ -816,6 +816,9 @@ impl ThinLTOKeysMap {
         use std::io::Write;
         let file = File::create(path)?;
         let mut writer = io::BufWriter::new(file);
+        // The entries are loaded back into a hash map in `load_from_file()`, so
+        // the order in which we write them to file here does not matter.
+        #[allow(rustc::potential_query_instability)]
         for (module, key) in &self.keys {
             writeln!(writer, "{module} {key}")?;
         }