From 1376c5a617be5c25655d0d7cb63e3beaa5a6e026 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:20:39 +0200 Subject: Merging upstream version 1.70.0+dfsg1. Signed-off-by: Daniel Baumann --- compiler/rustc_data_structures/src/graph/dominators/mod.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'compiler/rustc_data_structures/src/graph/dominators/mod.rs') diff --git a/compiler/rustc_data_structures/src/graph/dominators/mod.rs b/compiler/rustc_data_structures/src/graph/dominators/mod.rs index 0a21a4249..0df9dc112 100644 --- a/compiler/rustc_data_structures/src/graph/dominators/mod.rs +++ b/compiler/rustc_data_structures/src/graph/dominators/mod.rs @@ -10,7 +10,7 @@ //! use super::ControlFlowGraph; -use rustc_index::vec::{Idx, IndexVec}; +use rustc_index::vec::{Idx, IndexSlice, IndexVec}; use std::cmp::Ordering; #[cfg(test)] @@ -256,10 +256,10 @@ pub fn dominators(graph: G) -> Dominators { /// where `+>` is a proper ancestor and `*>` is just an ancestor. #[inline] fn eval( - ancestor: &mut IndexVec, + ancestor: &mut IndexSlice, lastlinked: Option, - semi: &IndexVec, - label: &mut IndexVec, + semi: &IndexSlice, + label: &mut IndexSlice, node: PreorderIndex, ) -> PreorderIndex { if is_processed(node, lastlinked) { @@ -277,10 +277,10 @@ fn is_processed(v: PreorderIndex, lastlinked: Option) -> bool { #[inline] fn compress( - ancestor: &mut IndexVec, + ancestor: &mut IndexSlice, lastlinked: Option, - semi: &IndexVec, - label: &mut IndexVec, + semi: &IndexSlice, + label: &mut IndexSlice, v: PreorderIndex, ) { assert!(is_processed(v, lastlinked)); -- cgit v1.2.3