File tree 1 file changed +12
-0
lines changed
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:
739
739
* ` concat! ` : concatenates a comma-separated list of literals
740
740
* ` concat_idents! ` : create a new identifier by concatenating the arguments
741
741
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
+
742
751
# Crates and source files
743
752
744
753
Rust is a * compiled* language. Its semantics obey a * phase distinction*
@@ -2041,6 +2050,9 @@ type int8_t = i8;
2041
2050
item] ( #language-items ) for more details.
2042
2051
- ` test ` - indicates that this function is a test function, to only be compiled
2043
2052
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.
2044
2056
2045
2057
### Static-only attributes
2046
2058
You can’t perform that action at this time.
0 commit comments