about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-09 01:52:19 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-10-16 10:59:54 +0200
commit904168fe144b5ebabe6d691930a59127b049ac74 (patch)
treed37a36abc423d806029156911e8dd12cfa96576c
parent9dc07b05d5a293339f544dcb31df8c57604ad417 (diff)
downloadrust-904168fe144b5ebabe6d691930a59127b049ac74.tar.gz
rust-904168fe144b5ebabe6d691930a59127b049ac74.zip
mbe: leave a FIXME
-rw-r--r--src/libsyntax_expand/mbe/macro_parser.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax_expand/mbe/macro_parser.rs b/src/libsyntax_expand/mbe/macro_parser.rs
index 2edb4925512..3efe22626a9 100644
--- a/src/libsyntax_expand/mbe/macro_parser.rs
+++ b/src/libsyntax_expand/mbe/macro_parser.rs
@@ -890,6 +890,9 @@ fn may_begin_with(token: &Token, name: Name) -> bool {
 ///
 /// The parsed non-terminal.
 fn parse_nt(p: &mut Parser<'_>, sp: Span, name: Symbol) -> Nonterminal {
+    // FIXME(Centril): Consider moving this to `parser.rs` to make
+    // the visibilities of the methods used below `pub(super)` at most.
+
     if name == sym::tt {
         return token::NtTT(p.parse_token_tree());
     }