diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-07-11 16:59:19 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-07-11 16:59:19 -0700 |
| commit | c9f7a3d2060a7b2c6f691f4f4b32328edffcf5bd (patch) | |
| tree | 18674ec831dfedb3218155643a354ab6d9df2520 /src/libsyntax/parse/parser.rs | |
| parent | 4bb6b4a5ed1cd377c5cfd97721ad12f52e63dd41 (diff) | |
| download | rust-c9f7a3d2060a7b2c6f691f4f4b32328edffcf5bd.tar.gz rust-c9f7a3d2060a7b2c6f691f4f4b32328edffcf5bd.zip | |
Emit dropped unemitted errors to aid in ICE debugging
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 83dbff6b2d5..871fc0e7062 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -6666,12 +6666,13 @@ impl<'a> Parser<'a> { } /// Reads a module from a source file. - fn eval_src_mod(&mut self, - path: PathBuf, - directory_ownership: DirectoryOwnership, - name: String, - id_sp: Span) - -> PResult<'a, (ast::Mod, Vec<Attribute> )> { + fn eval_src_mod( + &mut self, + path: PathBuf, + directory_ownership: DirectoryOwnership, + name: String, + id_sp: Span, + ) -> PResult<'a, (ast::Mod, Vec<Attribute>)> { let mut included_mod_stack = self.sess.included_mod_stack.borrow_mut(); if let Some(i) = included_mod_stack.iter().position(|p| *p == path) { let mut err = String::from("circular modules: "); |
