| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-12-18 | Rename many `DiagCtxt` arguments. | Nicholas Nethercote | -2/+2 | |
| 2023-12-18 | Rename `Handler` as `DiagCtxt`. | Nicholas Nethercote | -2/+2 | |
| 2023-09-15 | rustdoc: merge theme css into rustdoc.css | Michael Howell | -0/+3 | |
| Based on https://github.com/rust-lang/rust/pull/115812#issuecomment-1717960119 Having them in separate files used to make more sense, before the migration to CSS variables made the theme files as small as they are nowadays. This is already how docs.rs and mdBook do it. | ||||
| 2023-05-03 | Restrict `From<S>` for `{D,Subd}iagnosticMessage`. | Nicholas Nethercote | -1/+1 | |
| Currently a `{D,Subd}iagnosticMessage` can be created from any type that impls `Into<String>`. That includes `&str`, `String`, and `Cow<'static, str>`, which are reasonable. It also includes `&String`, which is pretty weird, and results in many places making unnecessary allocations for patterns like this: ``` self.fatal(&format!(...)) ``` This creates a string with `format!`, takes a reference, passes the reference to `fatal`, which does an `into()`, which clones the reference, doing a second allocation. Two allocations for a single string, bleh. This commit changes the `From` impls so that you can only create a `{D,Subd}iagnosticMessage` from `&str`, `String`, or `Cow<'static, str>`. This requires changing all the places that currently create one from a `&String`. Most of these are of the `&format!(...)` form described above; each one removes an unnecessary static `&`, plus an allocation when executed. There are also a few places where the existing use of `&String` was more reasonable; these now just use `clone()` at the call site. As well as making the code nicer and more efficient, this is a step towards possibly using `Cow<'static, str>` in `{D,Subd}iagnosticMessage::{Str,Eager}`. That would require changing the `From<&'a str>` impls to `From<&'static str>`, which is doable, but I'm not yet sure if it's worthwhile. | ||||
| 2022-09-15 | Correctly handle parens | Guillaume Gomez | -7/+21 | |
| 2022-09-14 | Remove duplicate warnings | Guillaume Gomez | -2/+0 | |
| 2022-09-14 | Add check for missing CSS variables | Guillaume Gomez | -2/+12 | |
| 2022-09-14 | Simplify CSS parser to check themes | Guillaume Gomez | -205/+164 | |
| 2022-06-07 | Update minifier version to 0.2.1 | Guillaume Gomez | -0/+1 | |
| 2022-05-21 | Remove `crate` visibility modifier in libs, tests | Jacob Pratt | -6/+6 | |
| 2022-04-10 | rustdoc: Reduce allocations in a `theme` function | Roc Yu | -7/+9 | |
| 2021-12-14 | fix clippy::single_char_pattern perf findings | Matthias Krüger | -5/+5 | |
| 2021-05-03 | Change librustdoc write(.. \n) to writeln(..); fix comment in grammar | mautamu | -1/+1 | |
| More grammar | ||||
| 2021-01-09 | Replace under-used ImplPolarity enum with a boolean | Guillaume Gomez | -1/+4 | |
| 2021-01-01 | clippy fixes for librustdoc | Matthias Krüger | -5/+2 | |
| fixes clippy warnings of type: match_like_matches_macro or_fun_call op_ref needless_return let_and_return single_char_add_str useless_format unnecessary_sort_by match_ref_pats redundant_field_names | ||||
| 2020-11-15 | Make all rustdoc functions and structs crate-private | Joshua Nelson | -6/+6 | |
| This gives warnings about dead code. | ||||
| 2020-04-02 | Expand and remove try_something macro. | Alex Aktsipetrov | -13/+7 | |
| Since https://github.com/rust-lang/rust/commit/2f6226518bd5085896a0f27cfd3ea396367ecd50 there has been only one invocation. | ||||
| 2020-03-21 | remove redundant returns (clippy::needless_return) | Matthias Krüger | -3/+1 | |
| 2020-02-28 | use is_empty() instead of len() == x to determine if structs are empty. | Matthias Krüger | -1/+1 | |
| 2020-02-24 | don't explicitly compare against true or false | Matthias Krüger | -2/+2 | |
| 2020-02-12 | Minify CSS rules to be able to handle minified theme files as well | Guillaume Gomez | -14/+17 | |
| 2020-01-10 | nix syntax::errors & prefer rustc_errors over errors | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-22 | Format the world | Mark Rousskov | -38/+30 | |
| 2019-11-18 | Warn instead of failing for themes | Guillaume Gomez | -0/+1 | |
| 2019-08-02 | librustdoc: Unconfigure tests during normal build | Vadim Petrochenkov | -106/+3 | |
| 2019-06-20 | Improve theme checker by removing unneeded conditions | Guillaume Gomez | -6/+14 | |
| 2019-06-20 | Add test for empty css file check | Guillaume Gomez | -0/+6 | |
| 2019-06-20 | Fix theme-checker failure | Guillaume Gomez | -1/+1 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-12-07 | use top level `fs` functions where appropriate | Andy Russell | -7/+3 | |
| This commit replaces many usages of `File::open` and reading or writing with `fs::read_to_string`, `fs::read` and `fs::write`. This reduces code complexity, and will improve performance for most reads, since the functions allocate the buffer to be the size of the file. I believe that this commit will not impact behavior in any way, so some matches will check the error kind in case the file was not valid UTF-8. Some of these cases may not actually care about the error. | ||||
| 2018-09-02 | Auto merge of #53599 - matthiaskrgr:split_str__to__split_char, r=frewsxcv | bors | -1/+1 | |
| use char pattern for single-character splits: a.split("x") -> a.split('x') | ||||
| 2018-08-28 | Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc. | Eduard-Mihai Burtescu | -4/+4 | |
| 2018-08-22 | use char pattern for single-character splits: a.split("x") -> a.split('x') | Matthias Krüger | -1/+1 | |
| 2018-05-14 | replace error/warning println with structured diag | QuietMisdreavus | -5/+9 | |
| 2018-02-08 | Pass themes folder as parameter | Guillaume Gomez | -1/+1 | |
| 2018-02-08 | Add tests for themes | Guillaume Gomez | -19/+39 | |
| 2018-02-08 | Improve output a bit in case of error | Guillaume Gomez | -4/+17 | |
| 2018-02-08 | Handle comments in css selector and add tests | Guillaume Gomez | -23/+80 | |
| 2018-02-08 | get differences | Guillaume Gomez | -9/+40 | |
| 2018-02-08 | Add theme tests | Guillaume Gomez | -0/+258 | |
