]> git.lizzy.rs Git - rust.git/blob - crates/ide_db/src/helpers/famous_defs_fixture.rs
internal: remove dead code
[rust.git] / crates / ide_db / src / helpers / famous_defs_fixture.rs
1 //- /libcore.rs crate:core
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 convert {
14     pub trait From<T> {
15         fn from(t: T) -> Self;
16     }
17
18     pub trait Into<T> {
19         pub fn into(self) -> T;
20     }
21 }
22
23 pub mod default {
24     pub trait Default {
25         fn default() -> Self;
26     }
27 }
28
29 pub mod option {
30     pub enum Option<T> {
31         None,
32         Some(T),
33     }
34 }
35
36 pub mod prelude {
37     pub mod rust_2018 {
38         pub use crate::{
39             cmp::Ord,
40             convert::{From, Into},
41             default::Default,
42             iter::{IntoIterator, Iterator},
43             ops::{Fn, FnMut, FnOnce},
44             option::Option::{self, *},
45         };
46     }
47 }
48 #[prelude_import]
49 pub use prelude::rust_2018::*;
50 //- /libstd.rs crate:std deps:core
51 //! Signatures of traits, types and functions from the std lib for use in tests.
52
53 /// Docs for return_keyword
54 mod return_keyword {}
55
56 /// Docs for prim_str
57 mod prim_str {}
58
59 pub use core::ops;