We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d242a8b commit e12f572Copy full SHA for e12f572
src/librustdoc/clean/auto_trait.rs
@@ -280,8 +280,7 @@ fn clean_region_outlives_constraints<'tcx>(
280
// `Region`s are encountered, we've computed a final constraint, and add it to our list.
281
// Since we make sure to never re-add deleted items, this process will always finish.
282
while !map.is_empty() {
283
- let target = *map.keys().next().unwrap();
284
- let deps = map.swap_remove(&target).unwrap();
+ let (target, deps) = map.drain().next().unwrap();
285
286
for smaller in &deps.smaller {
287
for larger in &deps.larger {
0 commit comments