mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Use compare_exchange_weak
in limit::Limit::check
This commit is contained in:
parent
4aadabc735
commit
78a3cefc45
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ impl Limit {
|
||||||
}
|
}
|
||||||
if self
|
if self
|
||||||
.max
|
.max
|
||||||
.compare_exchange(old_max, other, Ordering::Relaxed, Ordering::Relaxed)
|
.compare_exchange_weak(old_max, other, Ordering::Relaxed, Ordering::Relaxed)
|
||||||
.is_ok()
|
.is_ok()
|
||||||
{
|
{
|
||||||
eprintln!("new max: {}", other);
|
eprintln!("new max: {}", other);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue