about summary refs log tree commit diff
path: root/src/librustdoc/html/highlight/tests.rs
diff options
context:
space:
mode:
authorismailarilik <arilik.ismail@gmail.com>2024-10-06 10:39:03 +0300
committerismailarilik <arilik.ismail@gmail.com>2024-10-06 10:39:03 +0300
commite0a20b484d0b88183ddd46b82aa47d7bbfe48468 (patch)
treed51f1e856c1054347a3da443d9a714c604543f11 /src/librustdoc/html/highlight/tests.rs
parent85e2f55d8291e643b5b4c98ee09db301379d63a6 (diff)
downloadrust-e0a20b484d0b88183ddd46b82aa47d7bbfe48468.tar.gz
rust-e0a20b484d0b88183ddd46b82aa47d7bbfe48468.zip
Handle `librustdoc` cases of `rustc::potential_query_instability` lint
Diffstat (limited to 'src/librustdoc/html/highlight/tests.rs')
-rw-r--r--src/librustdoc/html/highlight/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/highlight/tests.rs b/src/librustdoc/html/highlight/tests.rs
index 75328e724fe..fd5275189d6 100644
--- a/src/librustdoc/html/highlight/tests.rs
+++ b/src/librustdoc/html/highlight/tests.rs
@@ -1,5 +1,5 @@
 use expect_test::expect_file;
-use rustc_data_structures::fx::FxHashMap;
+use rustc_data_structures::fx::FxIndexMap;
 use rustc_span::create_default_session_globals_then;
 
 use super::{DecorationInfo, write_code};
@@ -73,7 +73,7 @@ fn test_decorations() {
 let y = 2;
 let z = 3;
 let a = 4;";
-        let mut decorations = FxHashMap::default();
+        let mut decorations = FxIndexMap::default();
         decorations.insert("example", vec![(0, 10), (11, 21)]);
         decorations.insert("example2", vec![(22, 32)]);