We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73f17a2 commit ff6cbc0Copy full SHA for ff6cbc0
1 file changed
src/registers/rflags.rs
@@ -119,16 +119,12 @@ mod x86_64 {
119
/// flags also used by Rust/LLVM can result in undefined behavior too.
120
#[inline]
121
pub unsafe fn write_raw(val: u64) {
122
+ // FIXME - There's probably a better way than saying we preserve the flags even though we actually don't
123
#[cfg(feature = "inline_asm")]
- {
124
- // FIXME - There's probably a better way than saying we preserve the flags even though we actually don't
125
- asm!("push {}; popf", in(reg) val, options(preserves_flags))
126
- };
+ asm!("push {}; popf", in(reg) val, options(preserves_flags));
127
128
#[cfg(not(feature = "inline_asm"))]
129
130
- crate::asm::x86_64_asm_write_rflags(val)
131
- }
+ crate::asm::x86_64_asm_write_rflags(val);
132
}
133
134
#[cfg(test)]
0 commit comments