about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPulkit Goyal <7895pulkit@gmail.com>2018-01-16 19:09:32 +0530
committerPulkit Goyal <7895pulkit@gmail.com>2018-01-16 19:09:32 +0530
commitbd70f0fa66853125797bfa4cdea37b9ca2120159 (patch)
tree9617311f11ec0208da2f1aeed1b0427d8c1124a9
parent567b07c9e693758b3f4607573a2f276f43116f7b (diff)
downloadrust-bd70f0fa66853125797bfa4cdea37b9ca2120159.tar.gz
rust-bd70f0fa66853125797bfa4cdea37b9ca2120159.zip
add a comment about parsing only prefix in header.rs
-rw-r--r--src/tools/compiletest/src/header.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs
index a10372fd745..ff662736bdd 100644
--- a/src/tools/compiletest/src/header.rs
+++ b/src/tools/compiletest/src/header.rs
@@ -41,6 +41,8 @@ impl EarlyProps {
         iter_header(testfile,
                     None,
                     &mut |ln| {
+            // we should check if any only-<platform> exists and if it exists
+            // and does not matches the current platform, skip the test
             props.ignore =
                 props.ignore ||
                 config.parse_cfg_name_directive(ln, "ignore") ||