From a624e2ea8d6fc97df03f663581e082541fd0348f Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 11 Apr 2021 00:31:20 -0700 Subject: Adds impl Deref assist --- crates/ide_db/src/helpers/famous_defs_fixture.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crates/ide_db/src/helpers/famous_defs_fixture.rs') diff --git a/crates/ide_db/src/helpers/famous_defs_fixture.rs b/crates/ide_db/src/helpers/famous_defs_fixture.rs index 4d79e064e..29ae12dcf 100644 --- a/crates/ide_db/src/helpers/famous_defs_fixture.rs +++ b/crates/ide_db/src/helpers/famous_defs_fixture.rs @@ -112,6 +112,12 @@ pub mod ops { 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 { @@ -141,3 +147,5 @@ mod return_keyword {} /// Docs for prim_str mod prim_str {} + +pub use core::ops; \ No newline at end of file -- cgit v1.2.3