We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 414d8d9 commit b9b342fCopy full SHA for b9b342f
crates/ra_ide/src/hover.rs
@@ -844,4 +844,29 @@ fn func(foo: i32) { if true { <|>foo; }; }
844
&["fn foo()\n```\n\n<- `\u{3000}` here"],
845
);
846
}
847
+
848
+ #[test]
849
+ fn test_hover_function_show_qualifiers() {
850
+ check_hover_result(
851
+ "
852
+ //- /lib.rs
853
+ async fn foo<|>() {}
854
+ ",
855
+ &["async fn foo()"],
856
+ );
857
858
859
860
+ pub const unsafe fn foo<|>() {}
861
862
+ &["pub const unsafe fn foo()"],
863
864
865
+ r#"
866
867
+ pub(crate) async unsafe extern "C" fn foo<|>() {}
868
+ "#,
869
+ &[r#"pub(crate) async unsafe extern "C" fn foo()"#],
870
871
+ }
872
0 commit comments