mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Replace a transmute
with .to_ne_bytes()
+ constructor
This commit is contained in:
parent
7f975c3d5d
commit
6175a68c10
2 changed files with 5 additions and 5 deletions
|
@ -3992,8 +3992,8 @@ class CGMemberJITInfo(CGThing):
|
|||
protoID: PrototypeList::ID::${name} as u16,
|
||||
},
|
||||
__bindgen_anon_3: JSJitInfo__bindgen_ty_3 { depth: ${depth} },
|
||||
_bitfield_1: unsafe {
|
||||
mem::transmute(new_jsjitinfo_bitfield_1!(
|
||||
_bitfield_1: __BindgenBitfieldUnit::new(
|
||||
new_jsjitinfo_bitfield_1!(
|
||||
JSJitInfo_OpType::${opType} as u8,
|
||||
JSJitInfo_AliasSet::${aliasSet} as u8,
|
||||
JSValueType::${returnType} as u8,
|
||||
|
@ -4004,8 +4004,8 @@ class CGMemberJITInfo(CGThing):
|
|||
${isLazilyCachedInSlot},
|
||||
${isTypedMethod},
|
||||
${slotIndex},
|
||||
))
|
||||
},
|
||||
).to_ne_bytes()
|
||||
),
|
||||
}
|
||||
""",
|
||||
opName=opName,
|
||||
|
@ -5988,6 +5988,7 @@ def generate_imports(config, cgthings, descriptors, callbacks=None, dictionaries
|
|||
'js::error::throw_type_error',
|
||||
'js::error::throw_internal_error',
|
||||
'js::rust::wrappers::Call',
|
||||
'js::jsapi::__BindgenBitfieldUnit',
|
||||
'js::jsapi::CallArgs',
|
||||
'js::jsapi::CurrentGlobalOrNull',
|
||||
'js::rust::wrappers::GetPropertyKeys',
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#![feature(const_fn)]
|
||||
#![feature(const_transmute)]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(drain_filter)]
|
||||
#![feature(plugin)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue