diff options
author | Aleksey Kladov <[email protected]> | 2021-06-17 22:30:22 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-06-17 22:30:22 +0100 |
commit | ebb591a5704f767d783d57af7022272f665318ac (patch) | |
tree | 76a5268851cf7b79447d5de79514c0d0b579e823 /crates/ide_db/src/helpers | |
parent | 9b013ffcae672595aeb1aee9de907e05fb7ca065 (diff) |
internal: add derive and ord support to minicore
Diffstat (limited to 'crates/ide_db/src/helpers')
-rw-r--r-- | crates/ide_db/src/helpers/famous_defs_fixture.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/crates/ide_db/src/helpers/famous_defs_fixture.rs b/crates/ide_db/src/helpers/famous_defs_fixture.rs index fa4fc5307..6310fc0e1 100644 --- a/crates/ide_db/src/helpers/famous_defs_fixture.rs +++ b/crates/ide_db/src/helpers/famous_defs_fixture.rs | |||
@@ -1,15 +1,5 @@ | |||
1 | //- /libcore.rs crate:core | 1 | //- /libcore.rs crate:core |
2 | //! Signatures of traits, types and functions from the core lib for use in tests. | 2 | //! Signatures of traits, types and functions from the core lib for use in tests. |
3 | pub mod cmp { | ||
4 | |||
5 | pub trait Ord { | ||
6 | fn cmp(&self, other: &Self) -> Ordering; | ||
7 | fn max(self, other: Self) -> Self; | ||
8 | fn min(self, other: Self) -> Self; | ||
9 | fn clamp(self, min: Self, max: Self) -> Self; | ||
10 | } | ||
11 | } | ||
12 | |||
13 | pub mod prelude { | 3 | pub mod prelude { |
14 | pub mod rust_2018 { | 4 | pub mod rust_2018 { |
15 | pub use crate::{ | 5 | pub use crate::{ |