mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Auto merge of #11974 - ConnorGBrewster:load_blocker_drop_debug_assert, r=asajeffrey
Change load blocker drop assert to debug_assert <!-- Please describe your changes on the following line: --> This was causing some crashes for myself and @glennw in browser.html I will open an issue for this to be investigated later. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because `assert` to `debug_assert` <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11974) <!-- Reviewable:end -->
This commit is contained in:
commit
736feec0ad
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ impl LoadBlocker {
|
|||
impl Drop for LoadBlocker {
|
||||
fn drop(&mut self) {
|
||||
if !thread::panicking() {
|
||||
assert!(self.load.is_none());
|
||||
debug_assert!(self.load.is_none());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue