mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Workaround LLVM ABI bug.
All the gory details in https://bugzilla.mozilla.org/show_bug.cgi?id=1600735 and related LLVM / GCC bugs. Avoid the issue by forcing the relevant enum to be 32-bit wide, so as to not trigger the LLVM bug. Differential Revision: https://phabricator.services.mozilla.com/D57868
This commit is contained in:
parent
2b499e4850
commit
d3e65000be
1 changed files with 4 additions and 1 deletions
|
@ -1803,8 +1803,11 @@ impl ToCss for PropertyId {
|
|||
}
|
||||
|
||||
/// The counted unknown property list which is used for css use counters.
|
||||
///
|
||||
/// FIXME: This should be just #[repr(u8)], but can't be because of ABI issues,
|
||||
/// see https://bugs.llvm.org/show_bug.cgi?id=44228.
|
||||
#[derive(Clone, Copy, Debug, Eq, FromPrimitive, Hash, PartialEq)]
|
||||
#[repr(u8)]
|
||||
#[repr(u32)]
|
||||
pub enum CountedUnknownProperty {
|
||||
% for prop in data.counted_unknown_properties:
|
||||
/// ${prop.name}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue