diff options
| author | ismailarilik <arilik.ismail@gmail.com> | 2024-10-06 10:39:03 +0300 |
|---|---|---|
| committer | ismailarilik <arilik.ismail@gmail.com> | 2024-10-06 10:39:03 +0300 |
| commit | e0a20b484d0b88183ddd46b82aa47d7bbfe48468 (patch) | |
| tree | d51f1e856c1054347a3da443d9a714c604543f11 /compiler/rustc_resolve/src/rustdoc.rs | |
| parent | 85e2f55d8291e643b5b4c98ee09db301379d63a6 (diff) | |
| download | rust-e0a20b484d0b88183ddd46b82aa47d7bbfe48468.tar.gz rust-e0a20b484d0b88183ddd46b82aa47d7bbfe48468.zip | |
Handle `librustdoc` cases of `rustc::potential_query_instability` lint
Diffstat (limited to 'compiler/rustc_resolve/src/rustdoc.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/rustdoc.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_resolve/src/rustdoc.rs b/compiler/rustc_resolve/src/rustdoc.rs index d1c1b6c882e..02e255d7726 100644 --- a/compiler/rustc_resolve/src/rustdoc.rs +++ b/compiler/rustc_resolve/src/rustdoc.rs @@ -6,7 +6,7 @@ use pulldown_cmark::{ }; use rustc_ast as ast; use rustc_ast::util::comments::beautify_doc_string; -use rustc_data_structures::fx::FxHashMap; +use rustc_data_structures::fx::FxIndexMap; use rustc_middle::ty::TyCtxt; use rustc_span::def_id::DefId; use rustc_span::symbol::{Symbol, kw, sym}; @@ -235,8 +235,8 @@ fn span_for_value(attr: &ast::Attribute) -> Span { /// early and late doc link resolution regardless of their position. pub fn prepare_to_doc_link_resolution( doc_fragments: &[DocFragment], -) -> FxHashMap<Option<DefId>, String> { - let mut res = FxHashMap::default(); +) -> FxIndexMap<Option<DefId>, String> { + let mut res = FxIndexMap::default(); for fragment in doc_fragments { let out_str = res.entry(fragment.item_id).or_default(); add_doc_fragment(out_str, fragment); |
