mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
18ade8478e
`ActiveJobGuard::complete` and `ActiveJobGuard::drop` have very similar code, though non-essential structural differences obscure this a little. This commit factors out the common code into a new method `ActiveJobGuard::complete_inner`. It also inlines and remove `expect_job`, which ends up having a single call site.