]> git.lizzy.rs Git - rust.git/commit
Auto merge of #43318 - jhjourdan:jh/fix_weak_cound_MAX, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 21 Jul 2017 04:49:00 +0000 (04:49 +0000)
committerbors <bors@rust-lang.org>
Fri, 21 Jul 2017 04:49:00 +0000 (04:49 +0000)
commitd361efac2639fa9dd7f6195e4276a728b8875d7a
tree30994df2e955eb884b436abbbbc07760e0668818
parente3c8433ebb4a1acf125cae34ebd910869c894ebd
parent8416713240e11e898872f5028f927997f3754696
Auto merge of #43318 - jhjourdan:jh/fix_weak_cound_MAX, r=alexcrichton

Fix in weak_count in Arc in the case the weak count is locked.

In the case the weak count was locked, the weak_count function could
return usize::MAX. We need to test this condition manually.