]> git.lizzy.rs Git - rust.git/commitdiff
Add a red-box warning to the macros guide
authorKeegan McAllister <kmcallister@mozilla.com>
Fri, 26 Sep 2014 19:52:37 +0000 (12:52 -0700)
committerKeegan McAllister <kmcallister@mozilla.com>
Wed, 1 Oct 2014 20:21:52 +0000 (13:21 -0700)
src/doc/guide-macros.md
src/doc/rust.css

index 83571b60d3ae2e829a41a401f9aa3ee0db75afe0..50b2c281fcf38a49c2f5ecf9b3e1bfe4389fedd4 100644 (file)
@@ -1,5 +1,14 @@
 % The Rust Macros Guide
 
+<div class="unstable-feature">
+<b>Warning:</b> There are currently various problems with invoking macros, how
+they interact with their environment, and how they are used outside of the
+location in which they are defined. Macro definitions are likely to change
+slightly in the future. For this reason, they are hidden behind the
+<code>macro_rules</code> <a href="reference.html#compiler-features">feature
+attribute</a>.
+</div>
+
 # Introduction
 
 Functions are the primary tool that programmers can use to build abstractions.
index cf7e74e34301d1bd0eb3290debe47d004184f38b..22e360d2015d6ccc69b7c657106610188b48fd1f 100644 (file)
@@ -338,6 +338,11 @@ pre.rust { position: relative; }
     transform: scaleX(-1);
 }
 
+.unstable-feature {
+    border: 2px solid red;
+    padding: 5px;
+}
+
 @media (min-width: 1170px) {
     pre {
         font-size: 15px;