diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-02-19 02:49:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-19 02:49:12 +0100 |
| commit | d9bc16cf368f1a8701295ed83f0337461acd6963 (patch) | |
| tree | f488908a9af717c89d066768b94c05feb42df380 /src/test/rustdoc-ui/commandline-argfile.rs | |
| parent | cc01bbe8f0cf7b19053c5f0578992cb7d2f4bba8 (diff) | |
| parent | 755b3fc722c36d9761bf49c246b5f7c85a62380d (diff) | |
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.
Diffstat (limited to 'src/test/rustdoc-ui/commandline-argfile.rs')
| -rw-r--r-- | src/test/rustdoc-ui/commandline-argfile.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/commandline-argfile.rs b/src/test/rustdoc-ui/commandline-argfile.rs new file mode 100644 index 00000000000..cc8c8722c1c --- /dev/null +++ b/src/test/rustdoc-ui/commandline-argfile.rs @@ -0,0 +1,13 @@ +// Check to see if we can get parameters from an @argsfile file +// +// check-pass +// compile-flags: --cfg cmdline_set @{{src-base}}/commandline-argfile.args + +#[cfg(not(cmdline_set))] +compile_error!("cmdline_set not set"); + +#[cfg(not(unbroken))] +compile_error!("unbroken not set"); + +fn main() { +} |
