about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2017-04-10 09:55:52 -0500
committerJorge Aparicio <japaricious@gmail.com>2017-04-10 09:55:52 -0500
commite192fb3d892f04e90a78378bd772cc003304a887 (patch)
tree46f8c8ff51b347129fba6d19357e0c8ed54cedb5
parent251d9be42933e4cc4660802dc449d9466f54209b (diff)
downloadrust-e192fb3d892f04e90a78378bd772cc003304a887.tar.gz
rust-e192fb3d892f04e90a78378bd772cc003304a887.zip
explain why we have a fake cfail test
-rw-r--r--src/test/compile-fail/feature-gate-linker-flavor.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/compile-fail/feature-gate-linker-flavor.rs b/src/test/compile-fail/feature-gate-linker-flavor.rs
index 68679d7dac8..955ec39cda1 100644
--- a/src/test/compile-fail/feature-gate-linker-flavor.rs
+++ b/src/test/compile-fail/feature-gate-linker-flavor.rs
@@ -8,6 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// This is a fake compile fail test as there's no way to generate a
+// `#![feature(linker_flavor)]` error. The only reason we have a `linker_flavor`
+// feature gate is to be able to document `-Z linker-flavor` in the unstable
+// book
+
 #[used]
 fn foo() {}
 //~^^ ERROR the `#[used]` attribute is an experimental feature