Skip to content

Commit 52a2c24

Browse files
committed
chore: remove external_body for upper API
1 parent eec1034 commit 52a2c24

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

ostd/src/sync/rwlock.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ impl<T /*: ?Sized*/, G: SpinGuardian> RwLock<T, G> {
244244
/// upgrading upreaders present. There is no guarantee for the order
245245
/// in which other readers or writers waiting simultaneously will
246246
/// obtain the lock.
247-
#[verifier::external_body]
248247
#[verifier::exec_allows_no_decreases_clause]
249248
pub fn read(&self) -> RwLockReadGuard<T, G> {
250249
loop {
@@ -262,7 +261,6 @@ impl<T /*: ?Sized*/, G: SpinGuardian> RwLock<T, G> {
262261
/// for compile-time checked lifetimes of the read guard.
263262
///
264263
/// [`read`]: Self::read
265-
#[verifier::external_body]
266264
#[verifier::exec_allows_no_decreases_clause]
267265
pub fn read_arc(self: &Arc<Self>) -> ArcRwLockReadGuard<T, G> {
268266
loop {
@@ -280,7 +278,6 @@ impl<T /*: ?Sized*/, G: SpinGuardian> RwLock<T, G> {
280278
/// upreaders or readers present. There is no guarantee for the order
281279
/// in which other readers or writers waiting simultaneously will
282280
/// obtain the lock.
283-
#[verifier::external_body]
284281
#[verifier::exec_allows_no_decreases_clause]
285282
pub fn write(&self) -> RwLockWriteGuard<T, G> {
286283
loop {
@@ -299,7 +296,6 @@ impl<T /*: ?Sized*/, G: SpinGuardian> RwLock<T, G> {
299296
///
300297
/// [`write`]: Self::write
301298
#[verifier::exec_allows_no_decreases_clause]
302-
#[verifier::external_body]
303299
pub fn write_arc(self: &Arc<Self>) -> ArcRwLockWriteGuard<T, G> {
304300
loop {
305301
if let Some(writeguard) = self.try_write_arc() {
@@ -320,7 +316,6 @@ impl<T /*: ?Sized*/, G: SpinGuardian> RwLock<T, G> {
320316
/// and reader do not differ before invoking the upgrade method. However,
321317
/// only one upreader can exist at any time to avoid deadlock in the
322318
/// upgrade method.
323-
#[verifier::external_body]
324319
#[verifier::exec_allows_no_decreases_clause]
325320
pub fn upread(&self) -> RwLockUpgradeableGuard<T, G> {
326321
loop {
@@ -339,7 +334,6 @@ impl<T /*: ?Sized*/, G: SpinGuardian> RwLock<T, G> {
339334
///
340335
/// [`upread`]: Self::upread
341336
#[verifier::exec_allows_no_decreases_clause]
342-
#[verifier::external_body]
343337
pub fn upread_arc(self: &Arc<Self>) -> ArcRwLockUpgradeableGuard<T, G> {
344338
loop {
345339
if let Some(guard) = self.try_upread_arc() {

0 commit comments

Comments
 (0)