Fix binding mode problems

This commit is contained in:
Michael Goulet 2025-02-20 18:28:48 +00:00
parent e1819a889a
commit 3d5438accd
67 changed files with 154 additions and 181 deletions

View file

@ -91,7 +91,7 @@ impl<T: Copy> SlicePlusOne<'_, T> {
#[inline]
fn advance(&mut self) {
match self.slice {
[_, ref remainder @ ..] => {
[_, remainder @ ..] => {
self.slice = remainder;
}
[] => self.last = None,

View file

@ -125,7 +125,7 @@ impl<V: Clone + HasBottom> State<V> {
pub fn all_bottom(&self) -> bool {
match self {
State::Unreachable => false,
State::Reachable(ref values) =>
State::Reachable(values) =>
{
#[allow(rustc::potential_query_instability)]
values.map.values().all(V::is_bottom)
@ -349,7 +349,7 @@ impl<V: JoinSemiLattice + Clone> JoinSemiLattice for State<V> {
*self = other.clone();
true
}
(State::Reachable(this), State::Reachable(ref other)) => this.join(other),
(State::Reachable(this), State::Reachable(other)) => this.join(other),
}
}
}