about summary refs log tree commit diff
path: root/src/libsyntax/parse/mod.rs
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2017-02-26 03:25:22 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2017-02-28 22:15:12 +0000
commit61a9a14d29529dee188d76dbf5c9faaefa9fce87 (patch)
treecec5d4b58fe52015afc4e6b4988995b401214546 /src/libsyntax/parse/mod.rs
parent7f822c800d6304466be666937539117d95a58022 (diff)
downloadrust-61a9a14d29529dee188d76dbf5c9faaefa9fce87.tar.gz
rust-61a9a14d29529dee188d76dbf5c9faaefa9fce87.zip
Add warning cycle.
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
-rw-r--r--src/libsyntax/parse/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs
index 78fd706b27a..6fec49b229a 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -46,6 +46,7 @@ pub struct ParseSess {
     pub span_diagnostic: Handler,
     pub unstable_features: UnstableFeatures,
     pub config: CrateConfig,
+    pub missing_fragment_specifiers: RefCell<HashSet<Span>>,
     /// Used to determine and report recursive mod inclusions
     included_mod_stack: RefCell<Vec<PathBuf>>,
     code_map: Rc<CodeMap>,
@@ -66,6 +67,7 @@ impl ParseSess {
             span_diagnostic: handler,
             unstable_features: UnstableFeatures::from_environment(),
             config: HashSet::new(),
+            missing_fragment_specifiers: RefCell::new(HashSet::new()),
             included_mod_stack: RefCell::new(vec![]),
             code_map: code_map
         }