diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-08-25 10:11:26 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-25 10:11:26 +0100 |
commit | 96cbad9fb5a67dd6cd83fe217716d932300122b5 (patch) | |
tree | b62378abb477d2cdfedf462c1b25b6d9fecc9f75 /crates/ide/src/mock_analysis.rs | |
parent | b4bc34649857cfcf7fcb39b9af02342fb7b8c89e (diff) | |
parent | b835f06cecd2189cb32a431fdb85245fbf53032a (diff) |
Merge #4873
4873: Resolve links in hover documentation r=matklad a=zacps
This PR resolves links in hover documentation. Both the upcoming intra-doc-links style and the old "path-based" style.
## Todo
* [x] More tests
* [ ] Benchmark (Is there an easy way to benchmark this?)
* [x] ~~Resolve issues with the markdown parser/get rid of it~~ Migrate to `pulldown_cmark_to_cmark`
* [x] Reorganise code (Tips appreciated)
---
Fixes #503
Co-authored-by: Zac Pullar-Strecker <[email protected]>
Diffstat (limited to 'crates/ide/src/mock_analysis.rs')
-rw-r--r-- | crates/ide/src/mock_analysis.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/mock_analysis.rs b/crates/ide/src/mock_analysis.rs index 363e6d27e..235796dbc 100644 --- a/crates/ide/src/mock_analysis.rs +++ b/crates/ide/src/mock_analysis.rs | |||
@@ -115,7 +115,7 @@ impl MockAnalysis { | |||
115 | root_crate = Some(crate_graph.add_crate_root( | 115 | root_crate = Some(crate_graph.add_crate_root( |
116 | file_id, | 116 | file_id, |
117 | edition, | 117 | edition, |
118 | None, | 118 | Some("test".to_string()), |
119 | cfg, | 119 | cfg, |
120 | env, | 120 | env, |
121 | Default::default(), | 121 | Default::default(), |