rust/src/librustdoc/html
Noah Lev 4478ecc352 Don't panic if close_tag() is called without tags to close
This can happen when a tag is opened after the length limit is reached;
the tag will not end up being added to `unclosed_tags` because the queue
will never be flushed. So, now, if the `unclosed_tags` stack is empty,
`close_tag()` does nothing.

This change fixes a panic in the `limit_0` unit test.
2021-08-25 20:09:17 -07:00
..
highlight Fix invalid generation of HTML in highlight 2021-08-05 23:08:29 +02:00
length_limit Don't panic if close_tag() is called without tags to close 2021-08-25 20:09:17 -07:00
markdown Add tests for HtmlWithLimit 2021-08-25 20:03:25 -07:00
render Rollup merge of #87178 - moxian:rd-use, r=jyn514 2021-08-16 23:37:25 +02:00
static Rollup merge of #88111 - GuillaumeGomez:background-color-jump-to-def, r=jhpratt 2021-08-18 19:55:03 +02:00
templates Updates favicon order of precedence as it matters to Chrome 2021-08-12 21:08:14 -07:00
toc Format the world 2019-12-22 17:42:47 -05:00
escape.rs rustdoc tweaking 2021-01-30 01:02:18 +00:00
format.rs Add missing root_path when generating links using href 2021-08-05 23:08:29 +02:00
highlight.rs Remove LightSpan and use Span directly 2021-08-05 23:08:29 +02:00
layout.rs Use Tera templates for rustdoc. 2021-06-20 23:07:28 -07:00
length_limit.rs Don't panic if close_tag() is called without tags to close 2021-08-25 20:09:17 -07:00
markdown.rs Use the length limit as the initial capacity 2021-08-21 16:58:29 -07:00
mod.rs Refactor Markdown length-limited summary implementation 2021-08-19 16:22:54 -07:00
sources.rs Remove LightSpan and use Span directly 2021-08-05 23:08:29 +02:00
static_files.rs Simplify usage of CSS background-image 2021-08-03 20:03:07 +02:00
tests.rs rustdoc: use more precise relative URLS 2021-04-17 09:21:52 -07:00
toc.rs clippy fixes for librustdoc 2021-01-01 21:19:10 +01:00