Skip to content

Commit 9b5a550

Browse files
committed
rustfmt fixes
1 parent 0da3dca commit 9b5a550

File tree

1 file changed

+7
-7
lines changed
  • crates/core_arch/src/x86

1 file changed

+7
-7
lines changed

crates/core_arch/src/x86/rtm.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//! Intel's Restricted Transactional Memory (RTM).
2-
//!
2+
//!
33
//! This CPU feature is available on Intel Broadwell or later CPUs (and some Haswell).
4-
//!
4+
//!
55
//! The reference is [Intel 64 and IA-32 Architectures Software Developer's
66
//! Manual Volume 2: Instruction Set Reference, A-Z][intel64_ref].
7-
//!
7+
//!
88
//! [Wikipedia][wikipedia_rtm] provides a quick overview of the assembly instructions, and
99
//! Intel's [programming considerations][intel_consid] details what sorts of instructions within a
1010
//! transaction are likely to cause an abort.
11-
//!
11+
//!
1212
//! [intel64_ref]: http://www.intel.de/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-instruction-set-reference-manual-325383.pdf
1313
//! [wikipedia_rtm]: https://en.wikipedia.org/wiki/Transactional_Synchronization_Extensions#Restricted_Transactional_Memory
1414
//! [intel_consid]: https://software.intel.com/en-us/cpp-compiler-developer-guide-and-reference-intel-transactional-synchronization-extensions-intel-tsx-programming-considerations
@@ -97,7 +97,7 @@ pub unsafe fn _xtest() -> u8 {
9797
x86_xtest() as _
9898
}
9999

100-
/// Retrieves the parameter passed to [`_xabort`] when [`_xbegin`]'s status has the
100+
/// Retrieves the parameter passed to [`_xabort`] when [`_xbegin`]'s status has the
101101
/// `_XABORT_EXPLICIT` flag set.
102102
#[inline]
103103
pub const fn _xabort_code(status: u32) -> u32 {
@@ -119,7 +119,7 @@ mod tests {
119119
x += 1;
120120
rtm::_xend();
121121
assert_eq!(x, 1);
122-
break
122+
break;
123123
}
124124
assert_eq!(x, 0);
125125
}
@@ -158,7 +158,7 @@ mod tests {
158158
// putting the assert inside the transaction would abort the transaction on fail
159159
// without any output/panic/etc
160160
assert_eq!(in_tx, 1);
161-
break
161+
break;
162162
}
163163
}
164164
}

0 commit comments

Comments
 (0)