File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -815,6 +815,16 @@ pub enum Delimiter {
815
815
/// "macro variable" `$var`. It is important to preserve operator priorities in cases like
816
816
/// `$var * 3` where `$var` is `1 + 2`.
817
817
/// Invisible delimiters might not survive roundtrip of a token stream through a string.
818
+ ///
819
+ /// <div class="warning">
820
+ ///
821
+ /// Note: rustc currently (1.77 and below) ignores the grouping of tokens
822
+ /// delimited by `None` in the output of a proc_macro. Thus it will not
823
+ /// preserve operator priorities as indicated above. The other `Delimiter`
824
+ /// variants should be used instead in this context. For details, see
825
+ /// [rust-lang/rust#67062](https://github.com/rust-lang/rust/issues/67062).
826
+ ///
827
+ /// </div>
818
828
#[ stable( feature = "proc_macro_lib2" , since = "1.29.0" ) ]
819
829
None ,
820
830
}
You can’t perform that action at this time.
0 commit comments