mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Solve platform-specific issues
This commit is contained in:
parent
12292e445a
commit
b64c31c40a
2 changed files with 8 additions and 10 deletions
|
@ -128,7 +128,7 @@ use foo$0::Foo;
|
|||
//- /lib.rs crate:foo
|
||||
pub struct Foo;
|
||||
"#,
|
||||
Some(&OsStr::new("/home/user/project/")),
|
||||
Some(&OsStr::new("/home/user/project")),
|
||||
Some(expect![[r#"https://docs.rs/foo/*/foo/index.html"#]]),
|
||||
Some(expect![[r#"file:///home/user/project/doc/foo/index.html"#]]),
|
||||
);
|
||||
|
@ -141,7 +141,7 @@ fn external_docs_doc_url_std_crate() {
|
|||
//- /main.rs crate:std
|
||||
use self$0;
|
||||
"#,
|
||||
Some(&OsStr::new("/home/user/project/")),
|
||||
Some(&OsStr::new("/home/user/project")),
|
||||
Some(expect!["https://doc.rust-lang.org/stable/std/index.html"]),
|
||||
None,
|
||||
);
|
||||
|
@ -154,7 +154,7 @@ fn external_docs_doc_url_struct() {
|
|||
//- /main.rs crate:foo
|
||||
pub struct Fo$0o;
|
||||
"#,
|
||||
Some(&OsStr::new("/home/user/project/")),
|
||||
Some(&OsStr::new("/home/user/project")),
|
||||
Some(expect![[r#"https://docs.rs/foo/*/foo/struct.Foo.html"#]]),
|
||||
Some(expect![[r#"file:///home/user/project/doc/foo/struct.Foo.html"#]]),
|
||||
);
|
||||
|
@ -169,7 +169,7 @@ pub struct Fo$0o;
|
|||
"#,
|
||||
Some(&OsStr::new(r"C:\Users\user\project")),
|
||||
Some(expect![[r#"https://docs.rs/foo/*/foo/struct.Foo.html"#]]),
|
||||
Some(expect![[r#"file:///C:\Users\user\project/doc/foo/struct.Foo.html"#]]),
|
||||
Some(expect![[r#"file:///C:/Users/user/project/doc/foo/struct.Foo.html"#]]),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue