Skip to content

Commit 9dc07b0

Browse files
committed
parser: leave a FIXME for later
1 parent bf02d49 commit 9dc07b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libsyntax/parse/parser/module.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ impl<'a> Parser<'a> {
3939
/// Parses a `mod <foo> { ... }` or `mod <foo>;` item.
4040
pub(super) fn parse_item_mod(&mut self, outer_attrs: &[Attribute]) -> PResult<'a, ItemInfo> {
4141
let (in_cfg, outer_attrs) = {
42+
// FIXME(Centril): This results in a cycle between config and parsing.
43+
// Consider using dynamic dispatch via `self.sess` to disentangle the knot.
4244
let mut strip_unconfigured = crate::config::StripUnconfigured {
4345
sess: self.sess,
4446
features: None, // Don't perform gated feature checking.

0 commit comments

Comments
 (0)