зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1551991 - followup: Don't derive the destructor of CounterSpeakAs so that we can return it safely by value in Win32. r=me
This commit is contained in:
Родитель
7c1b76c6a8
Коммит
ce94f581e0
|
@ -3118,6 +3118,10 @@ pub unsafe extern "C" fn Servo_CounterStyleRule_GetAdditiveSymbols(
|
|||
})
|
||||
}
|
||||
|
||||
/// Don't derive destructors so that it's POD and we can pass it by value
|
||||
/// without issues.
|
||||
///
|
||||
/// cbindgen:derive-tagged-enum-destructor=false
|
||||
#[repr(C, u8)]
|
||||
pub enum CounterSpeakAs {
|
||||
None,
|
||||
|
|
Загрузка…
Ссылка в новой задаче