File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -685,6 +685,16 @@ pub enum Delimiter {
685
685
/// operator priorities in cases like `$var * 3` where `$var` is `1 + 2`.
686
686
/// Invisible delimiters may not survive roundtrip of a token stream through
687
687
/// a string.
688
+ ///
689
+ /// <div class="warning">
690
+ ///
691
+ /// Note: rustc currently (1.77 and below) ignores the grouping of tokens
692
+ /// delimited by `None` in the output of a proc_macro. Thus it will not
693
+ /// preserve operator priorities as indicated above. The other `Delimiter`
694
+ /// variants should be used instead in this context. For details, see
695
+ /// [rust-lang/rust#67062](https://github.com/rust-lang/rust/issues/67062).
696
+ ///
697
+ /// </div>
688
698
None ,
689
699
}
690
700
You can’t perform that action at this time.
0 commit comments