Skip to content

Commit 8f9f18e

Browse files
committed
Fix compilation
Signed-off-by: Yonghao Zou <zouyonghao@live.cn>
1 parent ab374ab commit 8f9f18e

2 files changed

Lines changed: 3 additions & 15 deletions

File tree

lock-protocol/src/exec/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ pub fn alloc_page_table<C: PageTableConfig>(
148148
// level == 1
149149
// }
150150

151-
open spec fn is_last_spec(&self, level: PagingLevel) -> bool {
152-
level == 1
153-
}
151+
/// open spec fn is_last_spec(&self, level: PagingLevel) -> bool {
152+
/// level == 1
153+
/// }
154154
// fn new_page(
155155
// paddr: crate::mm::Paddr,
156156
// level: crate::mm::PagingLevel,

lock-protocol/src/mm/page_table/mod.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -396,18 +396,6 @@ Sized {
396396
/// This can be done for both present and absent PTEs.
397397
fn set_paddr(&mut self, paddr: Paddr);
398398

399-
/// If the PTE maps a page rather than a child page table.
400-
///
401-
/// The level of the page table the entry resides is given since architectures
402-
/// like amd64 only uses a huge bit in intermediate levels.
403-
#[verifier::when_used_as_spec(is_last_spec)]
404-
fn is_last(&self, level: PagingLevel) -> (res: bool)
405-
ensures
406-
res == self.is_last_spec(level),
407-
;
408-
409-
spec fn is_last_spec(&self, level: PagingLevel) -> bool;
410-
411399
// It seems we cannot specify a clone spec for a trait in Verus.
412400
fn clone_pte(&self) -> (res: Self)
413401
ensures

0 commit comments

Comments
 (0)