]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #82261 - ojeda:rustdoc-argfile, r=jyn514
authorDylan DPC <dylan.dpc@gmail.com>
Fri, 19 Feb 2021 01:49:12 +0000 (02:49 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Feb 2021 01:49:12 +0000 (02:49 +0100)
commitd9bc16cf368f1a8701295ed83f0337461acd6963
treef488908a9af717c89d066768b94c05feb42df380
parentcc01bbe8f0cf7b19053c5f0578992cb7d2f4bba8
parent755b3fc722c36d9761bf49c246b5f7c85a62380d
Rollup merge of #82261 - ojeda:rustdoc-argfile, r=jyn514

rustdoc: Support argument files

Factors out the `rustc_driver` logic that handles argument files so that rustdoc supports them as well, e.g.:

    rustdoc `@argfile`

This is needed to be able to generate docs for projects that already use argument files when compiling them, e.g. projects that pass a huge number of `--cfg` arguments.

The feature was stabilized for `rustc` in #66172.
compiler/rustc_driver/src/lib.rs
src/librustdoc/lib.rs