diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-08 21:43:43 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-16 10:59:54 +0200 |
| commit | 9dc07b05d5a293339f544dcb31df8c57604ad417 (patch) | |
| tree | 95ba2522147c7c6201d3dba25362b13bda9398b9 /src/libsyntax/parse/parser | |
| parent | bf02d49e848e331ba8bf3d14e3b3443bc68ab7f3 (diff) | |
| download | rust-9dc07b05d5a293339f544dcb31df8c57604ad417.tar.gz rust-9dc07b05d5a293339f544dcb31df8c57604ad417.zip | |
parser: leave a FIXME for later
Diffstat (limited to 'src/libsyntax/parse/parser')
| -rw-r--r-- | src/libsyntax/parse/parser/module.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser/module.rs b/src/libsyntax/parse/parser/module.rs index 1a8178f0bec..3e88c98b856 100644 --- a/src/libsyntax/parse/parser/module.rs +++ b/src/libsyntax/parse/parser/module.rs @@ -39,6 +39,8 @@ impl<'a> Parser<'a> { /// Parses a `mod <foo> { ... }` or `mod <foo>;` item. pub(super) fn parse_item_mod(&mut self, outer_attrs: &[Attribute]) -> PResult<'a, ItemInfo> { let (in_cfg, outer_attrs) = { + // FIXME(Centril): This results in a cycle between config and parsing. + // Consider using dynamic dispatch via `self.sess` to disentangle the knot. let mut strip_unconfigured = crate::config::StripUnconfigured { sess: self.sess, features: None, // Don't perform gated feature checking. |
