rust/src/librustdoc
Stuart Cook 38483d8eb1
Rollup merge of #145216 - eval-exec:fix-145125-enum-rustdoc, r=fmease
rustdoc: correct negative-to-implicit discriminant display

This PR want to fix rust-lang/rust#145125

In:
7f7b8ef27d/compiler/rustc_middle/src/ty/util.rs (L33-L38)

the `Discr`'s `val` field is `u128`, so we can't use `discr.val as i128` to represent `Discr`'s signed value.

We should use `Discr`'s `Display` trait to display signed value.

7f7b8ef27d/compiler/rustc_middle/src/ty/util.rs (L60-L73)
2025-08-12 20:37:52 +10:00
..
clean Propagate TraitImplHeader to hir 2025-08-11 17:05:42 -05:00
doctest Display total time and compilation time of merged doctests 2025-07-24 11:06:28 +02:00
formats Rollup merge of #141658 - lolbinarycat:rustdoc-search-stability-rank-138067, r=GuillaumeGomez 2025-08-09 13:58:42 +10:00
html rustdoc: Use discrs Display impl to render the value with the correct signedness 2025-08-10 23:33:23 +08:00
json Rollup merge of #144700 - aDotInTheVoid:macro-rules-for-macro-fools, r=GuillaumeGomez 2025-08-01 00:38:20 -04:00
passes Rollup merge of #144921 - lolbinarycat:rustdoc-intra-doc-gfm-141866, r=fmease,GuillaumeGomez 2025-08-12 20:37:50 +10:00
theme rustdoc: merge theme css into rustdoc.css 2023-09-15 07:40:17 -07:00
askama.toml Update to new rinja version (askama) 2025-04-03 15:38:08 +02:00
build.rs Auto merge of #136253 - notriddle:notriddle/aot-minify, r=GuillaumeGomez 2025-02-05 18:28:16 +00:00
Cargo.toml librustdoc: use tidy for sorting attrs and deps 2025-06-28 19:25:35 +00:00
config.rs Fix rustdoc scrape-examples feature crash 2025-08-06 17:14:49 +02:00
core.rs rustdoc: save target modifiers 2025-07-27 05:21:47 +02:00
display.rs x clippy src/librustdoc --fix 2025-03-06 16:06:41 +00:00
docfs.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
doctest.rs Use new public libtest ERROR_EXIT_CODE constant in rustdoc 2025-08-09 01:31:23 +02:00
error.rs Fix clippy lints 2024-08-29 12:14:41 +02:00
externalfiles.rs Ensure external paths passed via flags end up in rustdoc depinfo 2025-07-28 20:53:01 +02:00
fold.rs Rename TyMethodItem -> RequiredMethodItem 2024-12-19 10:48:51 -08:00
lib.rs remove rustc_attr_data_structures 2025-07-31 14:19:27 +02:00
lint.rs rustdoc: remove unportable markdown lint and old parser 2025-05-06 10:33:04 -07:00
markdown.rs Lazy-ify some markdown rendering 2025-06-29 12:41:16 +00: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 Fix rustdoc scrape-examples feature crash 2025-08-06 17:14:49 +02:00
theme.rs Fix new clippy lints 2024-11-28 03:05:43 +01:00
visit.rs Rename TyMethodItem -> RequiredMethodItem 2024-12-19 10:48:51 -08:00
visit_ast.rs Retire hir::ForeignItemRef. 2025-07-13 13:50:00 +00:00
visit_lib.rs librustdoc: flatten nested ifs 2025-03-06 08:16:28 +00:00

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