aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/src/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide_db/src/helpers')
-rw-r--r--crates/ide_db/src/helpers/famous_defs_fixture.rs59
1 files changed, 0 insertions, 59 deletions
diff --git a/crates/ide_db/src/helpers/famous_defs_fixture.rs b/crates/ide_db/src/helpers/famous_defs_fixture.rs
deleted file mode 100644
index 551203936..000000000
--- a/crates/ide_db/src/helpers/famous_defs_fixture.rs
+++ /dev/null
@@ -1,59 +0,0 @@
1//- /libcore.rs crate:core
2//! Signatures of traits, types and functions from the core lib for use in tests.
3pub 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
13pub 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
23pub mod default {
24 pub trait Default {
25 fn default() -> Self;
26 }
27}
28
29pub mod option {
30 pub enum Option<T> {
31 None,
32 Some(T),
33 }
34}
35
36pub 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]
49pub 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
54mod return_keyword {}
55
56/// Docs for prim_str
57mod prim_str {}
58
59pub use core::ops;