Add a red-box warning to the macros guide
This commit is contained in:
parent
dfcfd008fa
commit
58c428fbf2
2 changed files with 14 additions and 0 deletions
|
@ -1,5 +1,14 @@
|
||||||
% The Rust Macros Guide
|
% 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
|
# Introduction
|
||||||
|
|
||||||
Functions are the primary tool that programmers can use to build abstractions.
|
Functions are the primary tool that programmers can use to build abstractions.
|
||||||
|
|
|
@ -338,6 +338,11 @@ pre.rust { position: relative; }
|
||||||
transform: scaleX(-1);
|
transform: scaleX(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.unstable-feature {
|
||||||
|
border: 2px solid red;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 1170px) {
|
@media (min-width: 1170px) {
|
||||||
pre {
|
pre {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue