mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Enable old glyph assertion
The assertion had a note that it should be enabled when something like debug_assert is available.
This commit is contained in:
parent
b60006ae11
commit
a0937023b5
1 changed files with 1 additions and 10 deletions
|
@ -223,16 +223,7 @@ impl<'a> DetailedGlyphStore {
|
||||||
entry_offset, glyphs
|
entry_offset, glyphs
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO: don't actually assert this until asserts are compiled
|
debug_assert!(!self.detail_lookup.contains(&entry));
|
||||||
// in/out based on severity, debug/release, etc. This assertion
|
|
||||||
// would wreck the complexity of the lookup.
|
|
||||||
//
|
|
||||||
// See Rust Issue #3647, #2228, #3627 for related information.
|
|
||||||
//
|
|
||||||
// do self.detail_lookup.borrow |arr| {
|
|
||||||
// assert !arr.contains(entry)
|
|
||||||
// }
|
|
||||||
|
|
||||||
self.detail_lookup.push(entry);
|
self.detail_lookup.push(entry);
|
||||||
self.detail_buffer.extend_from_slice(glyphs);
|
self.detail_buffer.extend_from_slice(glyphs);
|
||||||
self.lookup_is_sorted = false;
|
self.lookup_is_sorted = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue