Fix binding mode problems
This commit is contained in:
parent
e1819a889a
commit
3d5438accd
67 changed files with 154 additions and 181 deletions
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue