rust/src/librustdoc
Dylan DPC 5a7f09d9a3
Rollup merge of #93950 - T-O-R-U-S:use-modern-formatting-for-format!-macros, r=Mark-Simulacrum
Use modern formatting for format! macros

This updates the standard library's documentation to use the new format_args syntax.
The documentation is worthwhile to update as it should be more idiomatic
(particularly for features like this, which are nice for users to get acquainted
with). The general codebase is likely more hassle than benefit to update: it'll
hurt git blame, and generally updates can be done by folks updating the code if
(and when) that makes things more readable with the new format.

A few places in the compiler and library code are updated (mostly just due to
already having been done when this commit was first authored).

`eprintln!("{}", e)` becomes `eprintln!("{e}")`, but `eprintln!("{}", e.kind())` remains untouched.
2022-03-10 23:12:57 +01:00
..
clean Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
doctest Rename TestOptions to GlobalTestOptions 2021-12-12 17:46:19 -08:00
formats fix #90187: Replace all def_id_no_primitives with def_id 2022-01-17 13:41:59 +01:00
html Rollup merge of #93950 - T-O-R-U-S:use-modern-formatting-for-format!-macros, r=Mark-Simulacrum 2022-03-10 23:12:57 +01:00
json make generic projection types print correctly 2022-03-03 13:01:35 -08:00
passes Auto merge of #93805 - petrochenkov:doclinkself, r=camelid,GuillaumeGomez 2022-03-06 02:14:49 +00:00
theme Clean up rustdoc static files 2021-07-07 17:52:18 +02:00
askama.toml Move back templates into html folder 2022-01-19 11:13:24 +01:00
Cargo.toml Update minifier version 2022-03-07 15:10:24 +01:00
config.rs Wire up --check-cfg to rustdoc 2022-02-25 02:18:49 +01:00
core.rs Wire up --check-cfg to rustdoc 2022-02-25 02:18:49 +01:00
docfs.rs rustdoc: Remove a single-use macro 2021-10-28 18:39:32 -07:00
doctest.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
error.rs Simplify rendering of stylesheet links into HTML 2021-11-24 19:41:47 -08:00
externalfiles.rs rustdoc: Fix some unescaped HTML tags in docs 2021-11-19 15:54:05 -05:00
fold.rs make GATs print properly in traits 2022-02-27 21:36:29 -08:00
lib.rs Auto merge of #94009 - compiler-errors:gat-rustdoc, r=GuillaumeGomez 2022-03-04 00:27:23 +00:00
lint.rs Warn when rustdoc:: group is omitted from lint names 2021-07-03 15:32:09 -04:00
markdown.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
scrape_examples.rs Rollup merge of #93497 - willcrichton:rustdoc-scrape-test, r=GuillaumeGomez 2022-02-18 23:23:05 +01:00
theme.rs fix clippy::single_char_pattern perf findings 2021-12-14 12:40:28 +01:00
visit.rs make GATs print properly in traits 2022-02-27 21:36:29 -08:00
visit_ast.rs resolve: Fix incorrect results of opt_def_kind query for some built-in macros 2022-02-24 22:54:36 +03:00
visit_lib.rs rustc_metadata: Rename item_children(_untracked) to module_children(_untracked) 2022-01-09 09:22:06 +08:00

For more information about how librustdoc works, see the rustc dev guide.