Commit a590d3e
Assert, rather than hang, on shell-in-use assertions
Previously, `gctx.shell().verbosity()` was used to check that `gctx.shell` is
not borrowed. Since shell is now behind a `Mutex` and not a `RefCell`,
this would hang waiting for the unlock instead panicking. Borrow state
checking is now done using `Mutex::try_lock` in
`GlobalContext::debug_assert_shell_not_borrowed`1 parent d92a89f commit a590d3e
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
424 | 427 | | |
425 | 428 | | |
426 | 429 | | |
| |||
0 commit comments