| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-01-30 | rustdoc tweaking | bors | -24/+22 | |
| * Reuse memory * simplify `next_def_id`, avoid multiple hashing and unnecessary lookups * remove `all_fake_def_ids`, use the global map instead (probably not a good step toward parallelization, though...) * convert `add_deref_target` to iterative implementation * use `ArrayVec` where we know the max number of elements * minor touchups here and there * avoid building temporary vectors that get appended to other vectors At most places I may or may not be doing the compiler's job is this PR. | ||||
| 2020-12-24 | rustdoc: Highlight edition-specific keywords correctly in code blocks, ↵ | ThePuzzlemaker | -7/+15 | |
| accounting for code block edition modifiers This is a squash of these commits: - Highlight edition-specific keywords correctly in code blocks, accounting for code block edition modifiers - Fix unit tests - Revert changes to rustc_span::symbol to prepare for merge of #80272 - Use new Symbol::is_reserved API from #80272 - Remove unused import added by accident when merging | ||||
| 2020-12-23 | Update HTML DOM attribute "edition" to "data-edition" | Guillaume Gomez | -1/+1 | |
| 2020-12-05 | Move tooltips messages to CSS instead of inside HTML | Guillaume Gomez | -5/+10 | |
| 2020-11-17 | Rollup merge of #79069 - jyn514:class-none, r=GuillaumeGomez | Mara Bos | -17/+16 | |
| Get rid of `highlight::Class::None` This is mostly me learning the codebase for https://github.com/rust-lang/rust/pull/77939, so feel free to close the PR. It does have the small benefit that we statically know rustdoc isn't generating useless `span`s, though. r? `@GuillaumeGomez` cc `@matklad` | ||||
| 2020-11-17 | Rollup merge of #77939 - GuillaumeGomez:fix-source-code-dos-backline, r=jyn514 | Mara Bos | -1/+3 | |
| Ensure that the source code display is working with DOS backline Fixes #76361. cc ````@lzutao```` r? ````@jyn514```` | ||||
| 2020-11-15 | Add test to ensure that no DOS backline (\r\n) doesn't create extra backline ↵ | Guillaume Gomez | -3/+3 | |
| in source rendering | ||||
| 2020-11-15 | Make all rustdoc functions and structs crate-private | Joshua Nelson | -1/+1 | |
| This gives warnings about dead code. | ||||
| 2020-11-15 | Ensure that the source code display is working with DOS backline | Guillaume Gomez | -0/+2 | |
| 2020-11-15 | Get rid of `Class::None` | Joshua Nelson | -17/+16 | |
| This is mostly me learning the codebase, so feel free to close the PR. It does have the small benefit that we statically know rustdoc isn't generating useless `span`s, though. | ||||
| 2020-08-31 | Fix strings indent | Guillaume Gomez | -1/+1 | |
| 2020-08-27 | Remove dependency on StringReader from rustdoc highlighter | Aleksey Kladov | -330/+224 | |
| rustc_lexer is the lossless lexer, which is a better fit for approximate syntax highlighting. As a side-effect, we can now syntax-highlight even broken code. | ||||
| 2020-07-14 | rustdoc: glue tokens before highlighting | Andy Russell | -14/+37 | |
| Fixes #72684. This commit also modifies the signature of `Classifier::new` to avoid copying the source being highlighted. | ||||
| 2020-04-16 | Dogfood or_patterns in rustdoc | Josh Stone | -6/+2 | |
| 2020-03-06 | fix various typos | Matthias Krüger | -1/+1 | |
| 2020-02-29 | Rename `syntax` to `rustc_ast` in source code | Vadim Petrochenkov | -1/+1 | |
| 2020-02-29 | Make it build again | Vadim Petrochenkov | -1/+1 | |
| 2020-02-22 | Rename CodeMap to SourceMap follow up | Maxim Zholobak | -2/+2 | |
| 2020-02-01 | 1. move node_id to syntax | Mazdak Farrokhzad | -1/+1 | |
| 2. invert rustc_session & syntax deps 3. drop rustc_session dep in rustc_hir | ||||
| 2020-01-26 | Fix run button positionning in case of scrolling | Guillaume Gomez | -7/+4 | |
| 2020-01-17 | rustdoc: Catch fatal errors when syntax highlighting | Oliver Middleton | -2/+3 | |
| For some errors the lexer will unwind so we need to handle that in addition to handling `token::Unknown`. | ||||
| 2020-01-15 | rustdoc: HTML escape codeblocks which fail syntax highlighting | Oliver Middleton | -1/+1 | |
| 2020-01-02 | Normalize `syntax::symbol` imports. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-02 | Normalize `syntax::source_map` imports. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -1/+1 | |
| 2019-12-22 | Format the world | Mark Rousskov | -61/+81 | |
| 2019-11-20 | Delete ProcessCfgMod | Mark Rousskov | -2/+1 | |
| The previous commit removes the use of this, and now we cleanup. | ||||
| 2019-11-10 | move syntax::parse -> librustc_parse | Mazdak Farrokhzad | -2/+2 | |
| also move MACRO_ARGUMENTS -> librustc_parse | ||||
| 2019-11-10 | move config.rs to libsyntax_expand | Mazdak Farrokhzad | -1/+2 | |
| 2019-11-07 | syntax::parser::token -> syntax::token | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-03 | use silent emitter for rustdoc highlighting pass | Andy Russell | -2/+2 | |
| 2019-10-15 | syntax::parse::sess -> syntax::sess | Mazdak Farrokhzad | -2/+2 | |
| 2019-08-05 | adapt rustdoc to infailable lexer | Aleksey Kladov | -13/+14 | |
| 2019-08-05 | add unknown token | Aleksey Kladov | -1/+1 | |
| 2019-07-04 | cleanup lexer constructors | Aleksey Kladov | -11/+11 | |
| 2019-07-04 | remove StringReader::peek | Aleksey Kladov | -9/+20 | |
| The reader itself doesn't need ability to peek tokens, so it's better if clients implement this functionality. This hopefully becomes especially easy once we use iterator interface for lexer, but this is not too easy at the moment, because of buffered errors. | ||||
| 2019-06-08 | syntax: Move most of the `TokenKind` methods to `Token` | Vadim Petrochenkov | -1/+1 | |
| 2019-06-06 | syntax: Remove duplicate span from `token::Ident` | Vadim Petrochenkov | -2/+2 | |
| 2019-06-06 | syntax: Use `Token` in `StringReader` and `TokenTreesReader` | Vadim Petrochenkov | -5/+5 | |
| 2019-06-06 | syntax: Use `Token` in `TokenTree::Token` | Vadim Petrochenkov | -2/+2 | |
| 2019-06-06 | syntax: Rename `TokenAndSpan` into `Token` | Vadim Petrochenkov | -15/+15 | |
| 2019-05-23 | syntax: Turn `token::Lit` into a struct | Vadim Petrochenkov | -7/+7 | |
| 2019-05-22 | Restore the old behavior of the rustdoc keyword check + Fix rebase | Vadim Petrochenkov | -7/+7 | |
| 2019-05-11 | Keep the original token in `ast::Lit` | Vadim Petrochenkov | -0/+2 | |
| 2019-02-23 | Transition librustdoc to 2018 edition | Hirokazu Hata | -1/+1 | |
| 2019-02-10 | rustc: doc comments | Alexander Regueiro | -1/+1 | |
| 2019-01-20 | Auto merge of #56884 - euclio:codeblock-diagnostics, r=QuietMisdreavus | bors | -37/+55 | |
| rustdoc: overhaul code block lexing errors Fixes #53919. This PR moves the reporting of code block lexing errors from rendering time to an early pass, so we can use the compiler's error reporting mechanisms. This dramatically improves the diagnostics in this situation: we now de-emphasize the lexing errors as a note under a warning that has a span and suggestion instead of just emitting errors at the top level. Additionally, this PR generalizes the markdown -> source span calculation function, which should allow other rustdoc warnings to use better spans in the future. Last, the PR makes sure that the code block is always emitted in the docs, even if it fails to highlight correctly. Of note: - The new pass unfortunately adds another pass over the docs to gather the doc blocks for syntax-checking. I wonder if this could be combined with the pass that looks for testable blocks? I'm not familiar with that code, so I don't know how feasible that is. - `pulldown_cmark` doesn't make it easy to find the spans of the code blocks, so the code that calculates the spans is a little nasty. It works for all the test cases I threw at it, but I wouldn't be surprised if an edge case would break it. Should have a thorough review. - This PR worsens the state of #56885, since those certain fatal lexing errors are now emitted before docs get generated at all. | ||||
| 2019-01-18 | Add token::Err | Yuki Okushi | -1/+1 | |
| 2019-01-14 | rustdoc: check code block syntax in early pass | Andy Russell | -37/+55 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
