rust/src/librustdoc
Matthias Krüger 73038c0874
Rollup merge of #122840 - GuillaumeGomez:rustdoc-test-too-many-args, r=notriddle,Urgau,jieyouxu
`rustdoc --test`: Prevent reaching the maximum size of command-line by using files for arguments if there are too many

Fixes #122722.

Thanks to this I discovered that rust was using ``@`` to add arguments from a file, quite convenient.

If there are too many `cfg` arguments given to `rustdoc --test`, it'll now put them into a temporary file and passing it as argument to the rustc command.

I added a test with 100_000 `cfg` arguments to ensure it'll not break again.

r? `@notrid`
2024-03-24 01:05:53 +01:00
..
clean Make RawPtr take Ty and Mutbl separately 2024-03-22 11:13:29 -04:00
doctest add extra indent spaces for rust-playground link 2024-02-15 18:57:21 +08:00
formats Change DefKind::Static to a struct variant 2024-03-12 05:53:46 +00:00
html some minor code simplifications 2024-03-17 13:44:44 +01:00
json rustdoc: cross-crate re-exports: correctly render late-bound params in source order even if early-bound params are present 2024-02-15 01:40:38 +01:00
passes Programmatically convert some of the pat ctors 2024-03-22 11:13:29 -04:00
theme rustdoc: merge theme css into rustdoc.css 2023-09-15 07:40:17 -07:00
askama.toml Remove unneeded minus sign in jinja tags 2023-03-06 11:38:15 +01:00
Cargo.toml bump itertools to 0.12 2024-03-08 12:34:05 +03:00
config.rs rustdoc: add --test-builder-wrapper argument 2024-03-15 01:41:37 -07:00
core.rs Merge collect_mod_item_types query into check_well_formed 2024-03-07 14:26:31 +00:00
docfs.rs remove redundant imports 2023-12-10 10:56:22 +08:00
doctest.rs Rename RustdocTestOptions into IndividualTestOptions 2024-03-23 15:00:37 +01:00
error.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
externalfiles.rs Shorten some error invocations. 2024-01-10 07:33:06 +11:00
fold.rs rustdoc: bind typedef inner type items to the folding system 2023-08-26 00:15:02 +02:00
lib.rs rustdoc --test: Prevent reaching the maximum size of command-line by using files for arguments if there are too many 2024-03-23 14:42:48 +01:00
lint.rs fix some typos found scrolling through the docs 2023-12-22 18:28:19 -05:00
markdown.rs rustdoc --test: Prevent reaching the maximum size of command-line by using files for arguments if there are too many 2024-03-23 14:42:48 +01: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 rustdoc: remove unchecked_claim_error_was_emitted call in main_args. 2024-02-07 18:57:46 +11:00
theme.rs Shorten some error invocations. 2024-01-10 07:33:06 +11:00
visit.rs rustdoc: Rename clean items from typedef to type alias 2023-08-21 13:56:22 -07:00
visit_ast.rs Rename Session::span_diagnostic as Session::dcx. 2023-12-18 16:06:21 +11: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.