rustc_resolve: prevent iteration of refids for completeness · rust-lang/rust@1437dec (original) (raw)
File tree
1 file changed
lines changed
- compiler/rustc_resolve/src
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -8,7 +8,8 @@ use pulldown_cmark::{ | ||
8 | 8 | use rustc_ast as ast; |
9 | 9 | use rustc_ast::attr::AttributeExt; |
10 | 10 | use rustc_ast::util::comments::beautify_doc_string; |
11 | -use rustc_data_structures::fx::{FxHashSet, FxIndexMap}; | |
11 | +use rustc_data_structures::fx::FxIndexMap; | |
12 | +use rustc_data_structures::unord::UnordSet; | |
12 | 13 | use rustc_middle::ty::TyCtxt; |
13 | 14 | use rustc_span::def_id::DefId; |
14 | 15 | use rustc_span::{DUMMY_SP, InnerSpan, Span, Symbol, kw, sym}; |
@@ -423,7 +424,7 @@ fn parse_links<'md>(doc: &'md str) -> Vec<Box> { | ||
423 | 424 | ); |
424 | 425 | let mut links = Vec::new(); |
425 | 426 | |
426 | -let mut refids = FxHashSet::default(); | |
427 | +let mut refids = UnordSet::default(); | |
427 | 428 | |
428 | 429 | while let Some(event) = event_iter.next() { |
429 | 430 | match event { |