Port sort-research-rs test suite Rust stdlib tests · qinheping/verify-rust-std@cbc9e28 (original) (raw)

`@@ -19,20 +19,6 @@ use core::cmp::Ordering::{self, Less};

`

19

19

`use core::mem::{self, MaybeUninit};

`

20

20

`#[cfg(not(no_global_oom_handling))]

`

21

21

`use core::ptr;

`

22

``

`-

#[cfg(not(no_global_oom_handling))]

`

23

``

`-

use core::slice::sort;

`

24

``

-

25

``

`-

use crate::alloc::Allocator;

`

26

``

`-

#[cfg(not(no_global_oom_handling))]

`

27

``

`-

use crate::alloc::Global;

`

28

``

`-

#[cfg(not(no_global_oom_handling))]

`

29

``

`-

use crate::borrow::ToOwned;

`

30

``

`-

use crate::boxed::Box;

`

31

``

`-

use crate::vec::Vec;

`

32

``

-

33

``

`-

#[cfg(test)]

`

34

``

`-

mod tests;

`

35

``

-

36

22

`#[unstable(feature = "array_chunks", issue = "74985")]

`

37

23

`pub use core::slice::ArrayChunks;

`

38

24

`#[unstable(feature = "array_chunks", issue = "74985")]

`

`@@ -43,6 +29,8 @@ pub use core::slice::ArrayWindows;

`

43

29

`pub use core::slice::EscapeAscii;

`

44

30

`#[stable(feature = "slice_get_slice", since = "1.28.0")]

`

45

31

`pub use core::slice::SliceIndex;

`

``

32

`+

#[cfg(not(no_global_oom_handling))]

`

``

33

`+

use core::slice::sort;

`

46

34

`#[stable(feature = "slice_group_by", since = "1.77.0")]

`

47

35

`pub use core::slice::{ChunkBy, ChunkByMut};

`

48

36

`#[stable(feature = "rust1", since = "1.0.0")]

`

`@@ -83,6 +71,14 @@ pub use hack::into_vec;

`

83

71

`#[cfg(test)]

`

84

72

`pub use hack::to_vec;

`

85

73

``

``

74

`+

use crate::alloc::Allocator;

`

``

75

`+

#[cfg(not(no_global_oom_handling))]

`

``

76

`+

use crate::alloc::Global;

`

``

77

`+

#[cfg(not(no_global_oom_handling))]

`

``

78

`+

use crate::borrow::ToOwned;

`

``

79

`+

use crate::boxed::Box;

`

``

80

`+

use crate::vec::Vec;

`

``

81

+

86

82

`` // HACK(japaric): With cfg(test) impl [T] is not available, these three

``

87

83

`` // functions are actually methods that are in impl [T] but not in

``

88

84

`` // core::slice::SliceExt - we need to supply these functions for the

``