Skip to content

Commit 58c428f

Browse files
author
Keegan McAllister
committed
Add a red-box warning to the macros guide
1 parent dfcfd00 commit 58c428f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/doc/guide-macros.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
% The Rust Macros Guide
22

3+
<div class="unstable-feature">
4+
<b>Warning:</b> There are currently various problems with invoking macros, how
5+
they interact with their environment, and how they are used outside of the
6+
location in which they are defined. Macro definitions are likely to change
7+
slightly in the future. For this reason, they are hidden behind the
8+
<code>macro_rules</code> <a href="reference.html#compiler-features">feature
9+
attribute</a>.
10+
</div>
11+
312
# Introduction
413

514
Functions are the primary tool that programmers can use to build abstractions.

src/doc/rust.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,11 @@ pre.rust { position: relative; }
338338
transform: scaleX(-1);
339339
}
340340

341+
.unstable-feature {
342+
border: 2px solid red;
343+
padding: 5px;
344+
}
345+
341346
@media (min-width: 1170px) {
342347
pre {
343348
font-size: 15px;

0 commit comments

Comments
 (0)