diff options
| author | Trevor Spiteri <tspiteri@ieee.org> | 2020-01-30 15:49:21 +0100 |
|---|---|---|
| committer | Trevor Spiteri <tspiteri@ieee.org> | 2020-01-30 15:49:29 +0100 |
| commit | aa046da61f8722dfe46204cb303dbc9d2b4cb32e (patch) | |
| tree | fdc588a407951502d7182fe96a0b972e337cf985 | |
| parent | 3024c4e7396106eacedd7eb94d7b681b3e82f78a (diff) | |
| download | rust-aa046da61f8722dfe46204cb303dbc9d2b4cb32e.tar.gz rust-aa046da61f8722dfe46204cb303dbc9d2b4cb32e.zip | |
rustdoc: attempt full build for compile_fail test
Some code fails when doing a full build but does not fail when only emitting metadata. This commit makes sure compile_fail tests for such code behave as expected, that is, the test succeeds because the compilation fails.
| -rw-r--r-- | src/librustdoc/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/test.rs b/src/librustdoc/test.rs index d89dc2adafe..37ff292205a 100644 --- a/src/librustdoc/test.rs +++ b/src/librustdoc/test.rs @@ -282,7 +282,7 @@ fn run_test( for debugging_option_str in &options.debugging_options_strs { compiler.arg("-Z").arg(&debugging_option_str); } - if no_run { + if no_run && !compile_fail { compiler.arg("--emit=metadata"); } compiler.arg("--target").arg(target.to_string()); |
