File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ pub(crate) fn hover(
155
155
if let res@Some ( _) = try_hover_for_lint( & attr, & token) {
156
156
return res;
157
157
} else {
158
+ range = Some ( token. text_range( ) ) ;
158
159
try_resolve_derive_input_at( & sema, & attr, & token) . map( Definition :: Macro )
159
160
}
160
161
} else {
@@ -3906,7 +3907,7 @@ pub macro Copy {}
3906
3907
struct Foo;
3907
3908
"# ,
3908
3909
expect ! [ [ r#"
3909
- *( Copy) *
3910
+ *Copy*
3910
3911
3911
3912
```rust
3912
3913
test
@@ -3927,7 +3928,7 @@ mod foo {
3927
3928
struct Foo;
3928
3929
"# ,
3929
3930
expect ! [ [ r#"
3930
- *(foo:: Copy) *
3931
+ *Copy*
3931
3932
3932
3933
```rust
3933
3934
test
Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ use crate::{
12
12
// Assist: invert_if
13
13
//
14
14
// This transforms if expressions of the form `if !x {A} else {B}` into `if x {B} else {A}`
15
- // This also works with `!=`. This assist can only be applied with the cursor
16
- // on `if`.
15
+ // This also works with `!=`. This assist can only be applied with the cursor on `if`.
17
16
//
18
17
// ```
19
18
// fn main() {
You can’t perform that action at this time.
0 commit comments