diff options
Diffstat (limited to 'crates/ide/src/doc_links.rs')
-rw-r--r-- | crates/ide/src/doc_links.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/ide/src/doc_links.rs b/crates/ide/src/doc_links.rs index 367fac05e..1ff818de2 100644 --- a/crates/ide/src/doc_links.rs +++ b/crates/ide/src/doc_links.rs | |||
@@ -464,7 +464,7 @@ mod tests { | |||
464 | fn test_doc_url_struct() { | 464 | fn test_doc_url_struct() { |
465 | check( | 465 | check( |
466 | r#" | 466 | r#" |
467 | pub struct Fo<|>o; | 467 | pub struct Fo$0o; |
468 | "#, | 468 | "#, |
469 | expect![[r#"https://docs.rs/test/*/test/struct.Foo.html"#]], | 469 | expect![[r#"https://docs.rs/test/*/test/struct.Foo.html"#]], |
470 | ); | 470 | ); |
@@ -474,7 +474,7 @@ pub struct Fo<|>o; | |||
474 | fn test_doc_url_fn() { | 474 | fn test_doc_url_fn() { |
475 | check( | 475 | check( |
476 | r#" | 476 | r#" |
477 | pub fn fo<|>o() {} | 477 | pub fn fo$0o() {} |
478 | "#, | 478 | "#, |
479 | expect![[r##"https://docs.rs/test/*/test/fn.foo.html#method.foo"##]], | 479 | expect![[r##"https://docs.rs/test/*/test/fn.foo.html#method.foo"##]], |
480 | ); | 480 | ); |
@@ -487,7 +487,7 @@ pub fn fo<|>o() {} | |||
487 | pub struct Foo; | 487 | pub struct Foo; |
488 | 488 | ||
489 | impl Foo { | 489 | impl Foo { |
490 | pub fn met<|>hod() {} | 490 | pub fn met$0hod() {} |
491 | } | 491 | } |
492 | 492 | ||
493 | "#, | 493 | "#, |
@@ -500,7 +500,7 @@ impl Foo { | |||
500 | check( | 500 | check( |
501 | r#" | 501 | r#" |
502 | pub trait Bar { | 502 | pub trait Bar { |
503 | fn met<|>hod() {} | 503 | fn met$0hod() {} |
504 | } | 504 | } |
505 | 505 | ||
506 | "#, | 506 | "#, |
@@ -513,7 +513,7 @@ pub trait Bar { | |||
513 | check( | 513 | check( |
514 | r#" | 514 | r#" |
515 | pub trait Foo { | 515 | pub trait Foo { |
516 | fn met<|>hod(); | 516 | fn met$0hod(); |
517 | } | 517 | } |
518 | 518 | ||
519 | "#, | 519 | "#, |
@@ -526,7 +526,7 @@ pub trait Foo { | |||
526 | check( | 526 | check( |
527 | r#" | 527 | r#" |
528 | pub struct Foo { | 528 | pub struct Foo { |
529 | pub fie<|>ld: () | 529 | pub fie$0ld: () |
530 | } | 530 | } |
531 | 531 | ||
532 | "#, | 532 | "#, |
@@ -539,7 +539,7 @@ pub struct Foo { | |||
539 | check( | 539 | check( |
540 | r#" | 540 | r#" |
541 | pub mod foo { | 541 | pub mod foo { |
542 | pub mod ba<|>r {} | 542 | pub mod ba$0r {} |
543 | } | 543 | } |
544 | "#, | 544 | "#, |
545 | expect![[r#"https://docs.rs/test/*/test/foo/bar/index.html"#]], | 545 | expect![[r#"https://docs.rs/test/*/test/foo/bar/index.html"#]], |
@@ -564,7 +564,7 @@ pub mod wrapper { | |||
564 | } | 564 | } |
565 | 565 | ||
566 | fn foo() { | 566 | fn foo() { |
567 | let bar: wrapper::It<|>em; | 567 | let bar: wrapper::It$0em; |
568 | } | 568 | } |
569 | "#, | 569 | "#, |
570 | expect![[r#"https://docs.rs/test/*/test/wrapper/module/struct.Item.html"#]], | 570 | expect![[r#"https://docs.rs/test/*/test/wrapper/module/struct.Item.html"#]], |