From f0c8058f1236474b22b69971524015558384c077 Mon Sep 17 00:00:00 2001 From: adamrk Date: Sat, 20 Jun 2020 11:04:46 +0200 Subject: Fixes to callable_sig_from_fn_trait --- crates/ra_ide/src/hover.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide') diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs index 9a88b4977..a03024d09 100644 --- a/crates/ra_ide/src/hover.rs +++ b/crates/ra_ide/src/hover.rs @@ -2438,10 +2438,15 @@ fn func(foo: i32) { if true { <|>foo; }; } r#" //- /lib.rs deps:std - #[lang = "fn"] - pub trait Fn { + #[lang = "fn_once"] + pub trait FnOnce { type Output; + extern "rust-call" fn call_once(&self, args: Args) -> Self::Output; + } + + #[lang = "fn"] + pub trait Fn:FnOnce { extern "rust-call" fn call(&self, args: Args) -> Self::Output; } -- cgit v1.2.3