rust/src/librustdoc
bors 5e9d3d8a03 Auto merge of #106561 - GuillaumeGomez:warning-block, r=rustdoc
Add warning block support in rustdoc

Fixes https://github.com/rust-lang/rust/issues/79710.

You can test it [here](https://rustdoc.crud.net/imperio/warning-block/foo/struct.Foo.html). It currently looks like this:

![image](https://user-images.githubusercontent.com/3050060/211413494-e1cf04e4-c081-4a9d-97db-27329405cfa7.png)

So a few things to note:

 * Since it's a new add and it's changing the UI, we'll need to go through an FCP.
 * Does the UI looks good?
 * Is the way picked to add a warning block ok for everyone? The discussion on the issue seemed to be in favour of this solution but it doesn't hurt to double-check.

cc `@rust-lang/rustdoc`
2023-08-21 09:26:02 +00:00
..
clean Rollup merge of #114822 - GuillaumeGomez:code-readability-improvement, r=notriddle 2023-08-16 20:10:38 +02:00
doctest pass unused_extern_crates in librustdoc::doctest::make_test 2023-04-25 17:20:58 +03:00
formats Store the laziness of type aliases in the DefKind 2023-08-07 15:54:31 +02:00
html Auto merge of #106561 - GuillaumeGomez:warning-block, r=rustdoc 2023-08-21 09:26:02 +00:00
json Improve code readability by moving fmt args directly into the string 2023-08-16 16:35:23 +02:00
passes Fix format 2023-08-18 15:56:40 +08:00
theme Spelling librustdoc 2023-04-16 21:44:12 -04:00
askama.toml Remove unneeded minus sign in jinja tags 2023-03-06 11:38:15 +01:00
Cargo.toml rustdoc: DocFS: Replace rayon with threadpool and enable it for all targets 2023-03-14 20:28:00 +01:00
config.rs Improve code readability by moving fmt args directly into the string 2023-08-16 16:35:23 +02:00
core.rs Improve code readability by moving fmt args directly into the string 2023-08-16 16:35:23 +02:00
docfs.rs Use more named format args 2023-08-16 16:35:23 +02:00
doctest.rs Rollup merge of #112751 - ehuss:persist-test-run-directory, r=jsha 2023-08-17 08:39:20 +02:00
error.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
externalfiles.rs Use more named format args 2023-08-16 16:35:23 +02:00
fold.rs clean: Always store enum disriminant. 2023-01-01 18:11:53 +00:00
lib.rs Improve code readability by moving fmt args directly into the string 2023-08-16 16:35:23 +02:00
lint.rs Add warn level lint redundant_explicit_links 2023-08-18 15:19:08 +08:00
markdown.rs Use more named format args 2023-08-16 16:35:23 +02: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 Improve code readability by moving fmt args directly into the string 2023-08-16 16:35:23 +02:00
theme.rs Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
visit.rs clean: Always store enum disriminant. 2023-01-01 18:11:53 +00:00
visit_ast.rs Improve code readability by moving fmt args directly into the string 2023-08-16 16:35:23 +02:00
visit_lib.rs Correctly handle --document-hidden-items 2023-07-14 17:25:09 +02:00

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