about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-11 22:00:00 +0000
committerbors <bors@rust-lang.org>2020-12-11 22:00:00 +0000
commit9eb3a7ceafd1e2c1924177caa18c7cc0c25b413e (patch)
treea68004e4e691ad675d5faa8ef2722ecfd13ba126 /src/tools/compiletest
parent2225ee1b62ff089917434aefd9b2bf509cfa087f (diff)
parentd93f1d6c04fab017a24d868dd766a290321e636c (diff)
downloadrust-9eb3a7ceafd1e2c1924177caa18c7cc0c25b413e.tar.gz
rust-9eb3a7ceafd1e2c1924177caa18c7cc0c25b413e.zip
Auto merge of #79349 - Nemo157:issue-79201, r=jyn514
Apply `doc(cfg)` from parent items while collecting trait impls

Because trait impls bypass the standard `clean` hierarchy they do not participate in the `propagate_doc_cfg` pass, so instead we need to pre-collect all possible `doc(cfg)` attributes that will apply to them when cleaning.

fixes #79201
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/runtest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index e9089b4b15b..ccef005173d 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -2442,7 +2442,7 @@ impl<'test> TestCx<'test> {
             })
         };
         let mut diff = Command::new("diff");
-        diff.args(&["-u", "-r"]).args(&[out_dir, &compare_dir]);
+        diff.args(&["-u", "-r"]).args(&[&compare_dir, out_dir]);
 
         let output = if let Some(pager) = pager {
             let diff_pid = diff.stdout(Stdio::piped()).spawn().expect("failed to run `diff`");