Skip to content

Commit 4a6af11

Browse files
committedJan 22, 2015
Document remaining attributes and macros
Fixes #6444
1 parent 6869645 commit 4a6af11

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎src/doc/reference.md

+12
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,15 @@ Rust syntax is restricted in two ways:
739739
* `concat!` : concatenates a comma-separated list of literals
740740
* `concat_idents!` : create a new identifier by concatenating the arguments
741741

742+
The following attributes are used for quasiquoting in procedural macros:
743+
744+
* `quote_expr!`
745+
* `quote_item!`
746+
* `quote_pat!`
747+
* `quote_stmt!`
748+
* `quote_tokens!`
749+
* `quote_ty!`
750+
742751
# Crates and source files
743752

744753
Rust is a *compiled* language. Its semantics obey a *phase distinction*
@@ -2041,6 +2050,9 @@ type int8_t = i8;
20412050
item](#language-items) for more details.
20422051
- `test` - indicates that this function is a test function, to only be compiled
20432052
in case of `--test`.
2053+
- `should_fail` - indicates that this test function should panic, inverting the success condition.
2054+
- `cold` - The function is unlikely to be executed, so optimize it (and calls
2055+
to it) differently.
20442056

20452057
### Static-only attributes
20462058

0 commit comments

Comments
 (0)