diff options
| author | bors <bors@rust-lang.org> | 2021-01-02 15:31:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-01-02 15:31:53 +0000 |
| commit | fd85ca02f6da4531bcec65b8309ecf38e0eb8938 (patch) | |
| tree | 1be9b90cb754d2a6dc5623050918ec92d7c67c44 /compiler/rustc_codegen_llvm/src | |
| parent | 90ccf4f5adfb2562fc95c996b97faac7775a34bb (diff) | |
| parent | f07354333f254fc7d3f20c939b29ba93143b8671 (diff) | |
| download | rust-fd85ca02f6da4531bcec65b8309ecf38e0eb8938.tar.gz rust-fd85ca02f6da4531bcec65b8309ecf38e0eb8938.zip | |
Auto merge of #80550 - bugadani:markdown-refactor, r=jyn514
Cleanup markdown span handling, take 2 This PR includes the cleanups made in #80244 except for the removal of `locate()`. While the biggest conceptual part in #80244 was the removal of `locate()`, it introduced a diagnostic regression. Additional cleanup: - Use `RefCell` to avoid building two separate vectors for the links Work to do: - [ ] Decide if `locate()` can be simplified by assuming `s` is always in `md` - [ ] Should probably add some tests that still provide the undesired diagnostics causing #80381 cc `@jyn514` This is the best I can do without patching Pulldown to provide multiple ranges for reference-style links. Also, since `locate` is probably more efficient than `rfind` (at least it's constant time), I decided to not check the link type and just cover every &str as it was before.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
