aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
authoradamrk <[email protected]>2020-06-20 10:04:46 +0100
committeradamrk <[email protected]>2020-06-20 10:04:46 +0100
commitf0c8058f1236474b22b69971524015558384c077 (patch)
tree600ce31914c990f04a2e3f359eb7d6c0c04e0411 /crates/ra_ide
parent38f6cdbc8a83b081ad1cef9171e28431be09db01 (diff)
Fixes to callable_sig_from_fn_trait
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/hover.rs9
1 files changed, 7 insertions, 2 deletions
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; }; }
2438 r#" 2438 r#"
2439 //- /lib.rs deps:std 2439 //- /lib.rs deps:std
2440 2440
2441 #[lang = "fn"] 2441 #[lang = "fn_once"]
2442 pub trait Fn<Args> { 2442 pub trait FnOnce<Args> {
2443 type Output; 2443 type Output;
2444 2444
2445 extern "rust-call" fn call_once(&self, args: Args) -> Self::Output;
2446 }
2447
2448 #[lang = "fn"]
2449 pub trait Fn<Args>:FnOnce<Args> {
2445 extern "rust-call" fn call(&self, args: Args) -> Self::Output; 2450 extern "rust-call" fn call(&self, args: Args) -> Self::Output;
2446 } 2451 }
2447 2452