]> git.lizzy.rs Git - rust.git/blobdiff - crates/ide/src/hover/tests.rs
Refactor ide handling for paths in derive inputs
[rust.git] / crates / ide / src / hover / tests.rs
index e684b77c4fbada914e41bc7e539e1d97cfee1b89..2aa54fc33ff33cd1a703422f3218031f7d19be13 100644 (file)
@@ -2268,8 +2268,8 @@ fn foo() {
                                     file_id: FileId(
                                         1,
                                     ),
-                                    full_range: 254..436,
-                                    focus_range: 293..299,
+                                    full_range: 276..458,
+                                    focus_range: 315..321,
                                     name: "Future",
                                     kind: Trait,
                                     description: "pub trait Future",
@@ -3651,6 +3651,7 @@ mod bar {
 fn hover_attribute_in_macro() {
     check(
         r#"
+//- minicore:derive
 macro_rules! identity {
     ($struct:item) => {
         $struct
@@ -3681,6 +3682,7 @@ macro_rules! identity {
 fn hover_derive_input() {
     check(
         r#"
+//- minicore:derive
 #[rustc_builtin_macro]
 pub macro Copy {}
 #[derive(Copy$0)]
@@ -3700,6 +3702,7 @@ fn hover_derive_input() {
     );
     check(
         r#"
+//- minicore:derive
 mod foo {
     #[rustc_builtin_macro]
     pub macro Copy {}