]> git.lizzy.rs Git - rust.git/commitdiff
internal: remove dead code
authorAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 17 Jun 2021 08:42:43 +0000 (11:42 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Thu, 17 Jun 2021 08:42:43 +0000 (11:42 +0300)
crates/ide_db/src/helpers/famous_defs_fixture.rs

index 5aa77a24de6f0bf5f000600841769396d1fb747c..551203936bd781c4e22bf2d6c76ef9757bb4cc22 100644 (file)
@@ -26,30 +26,6 @@ pub trait Default {
     }
 }
 
-pub mod ops {
-    #[lang = "fn"]
-    pub trait Fn<Args>: FnMut<Args> {
-        extern "rust-call" fn call(&self, args: Args) -> Self::Output;
-    }
-
-    #[lang = "fn_mut"]
-    pub trait FnMut<Args>: FnOnce<Args> {
-        extern "rust-call" fn call_mut(&mut self, args: Args) -> Self::Output;
-    }
-    #[lang = "fn_once"]
-    pub trait FnOnce<Args> {
-        #[lang = "fn_once_output"]
-        type Output;
-        extern "rust-call" fn call_once(self, args: Args) -> Self::Output;
-    }
-
-    #[lang = "deref"]
-    pub trait Deref {
-        type Target: ?Sized;
-        fn deref(&self) -> &Self::Target;
-    }
-}
-
 pub mod option {
     pub enum Option<T> {
         None,