We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b72505 commit 9346adcCopy full SHA for 9346adc
library/alloctests/tests/sort/known_good_stable_sort.rs
@@ -5,17 +5,17 @@
5
// Based on https://github.com/voultapher/tiny-sort-rs.
6
7
#![feature(ub_checks)]
8
-use safety::{ensures,requires};
+use alloc::alloc::{Layout, alloc, dealloc};
9
+use safety::requires;
10
+use std::ptr;
11
+
12
#[cfg(kani)]
-#[unstable(feature="kani", issue="none")]
13
+#[unstable(feature = "kani", issue = "none")]
14
use core::kani;
15
#[allow(unused_imports)]
16
#[unstable(feature = "ub_checks", issue = "none")]
17
use core::ub_checks::*;
18
-use alloc::alloc::{Layout, alloc, dealloc};
-use std::ptr;
-
19
/// Sort `v` preserving initial order of equal elements.
20
///
21
/// - Guaranteed O(N * log(N)) worst case perf
0 commit comments