about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-24 01:05:53 +0100
committerGitHub <noreply@github.com>2024-03-24 01:05:53 +0100
commit73038c08748f7b79329658feae0bf4a5455babcb (patch)
treebcfa9db30863cfadb7a7af555ed484456b68a934 /compiler/rustc_interface/src
parent2dcc96883e0cee1d08e17003383f1ca408d64d2d (diff)
parentbc4f1697fad9a12d5096e63f45890ff289a3c349 (diff)
downloadrust-73038c08748f7b79329658feae0bf4a5455babcb.tar.gz
rust-73038c08748f7b79329658feae0bf4a5455babcb.zip
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`
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions