diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2023-07-10 13:02:52 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2023-07-14 10:10:15 +0200 |
| commit | 457b787a524e87a11d715ec26a24e68c8cf272d9 (patch) | |
| tree | 1dfc572301df263539981e2a58d8bb50735f6290 /compiler/rustc_middle/src | |
| parent | cfb310939b9098cf5fd211c2c176eb0b2b2498fa (diff) | |
| download | rust-457b787a524e87a11d715ec26a24e68c8cf272d9.tar.gz rust-457b787a524e87a11d715ec26a24e68c8cf272d9.zip | |
Introduce ExtentUnord trait for collections that can safely consume UnordItems.
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/ty/typeck_results.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/typeck_results.rs b/compiler/rustc_middle/src/ty/typeck_results.rs index 3a63e28d97e..9c25c01b056 100644 --- a/compiler/rustc_middle/src/ty/typeck_results.rs +++ b/compiler/rustc_middle/src/ty/typeck_results.rs @@ -9,7 +9,7 @@ use crate::{ }; use rustc_data_structures::{ fx::FxIndexMap, - unord::{UnordItems, UnordSet}, + unord::{ExtendUnord, UnordItems, UnordSet}, }; use rustc_errors::ErrorGuaranteed; use rustc_hir as hir; @@ -635,7 +635,7 @@ impl<'a, V> LocalTableInContextMut<'a, V> { &mut self, items: UnordItems<(hir::HirId, V), impl Iterator<Item = (hir::HirId, V)>>, ) { - self.data.extend(items.map(|(id, value)| { + self.data.extend_unord(items.map(|(id, value)| { validate_hir_id_for_typeck_results(self.hir_owner, id); (id.local_id, value) })) |
