Skip to content

Commit

Permalink
Try disabling one more clause
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Aug 9, 2024
1 parent 4156263 commit 5231a68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/alloc/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ impl Layout {
/// On arithmetic overflow, returns `LayoutError`.
#[unstable(feature = "alloc_layout_extra", issue = "55724")]
#[inline]
#[ensures(|result| result.is_err() || n == 0 || result.as_ref().unwrap().0.size() % n == 0)]
// the below modulo operation might be too costly to prove
// #[ensures(|result| result.is_err() || n == 0 || result.as_ref().unwrap().0.size() % n == 0)]
#[ensures(|result| result.is_err() || n == 0 || result.as_ref().unwrap().0.size() >= self.size())]
// the below multiplication might be too costly to prove at this time
// #[ensures(|result| result.is_err() || result.as_ref().unwrap().0.size() == n * result.as_ref().unwrap().1)]
Expand Down

0 comments on commit 5231a68

Please sign in to comment.