File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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
744753Rust 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
You can’t perform that action at this time.
0 commit comments