diff options
| author | mark <markm@cs.wisc.edu> | 2018-07-13 23:40:29 -0500 |
|---|---|---|
| committer | mark <markm@cs.wisc.edu> | 2018-07-23 21:55:51 -0500 |
| commit | 6cb09ccf9f524590d7cc9f8c97732742446ae2b2 (patch) | |
| tree | be8a3be455c2faa6f3923ce43132823dacfb51dd /src/libsyntax | |
| parent | b206aedb1bbdd45578668afd7f5589b1b812fd22 (diff) | |
| download | rust-6cb09ccf9f524590d7cc9f8c97732742446ae2b2.tar.gz rust-6cb09ccf9f524590d7cc9f8c97732742446ae2b2.zip | |
dump lints _after_ parsing macros
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 5dbf569766e..d029509f0c1 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -96,14 +96,14 @@ impl ParseSess { id: NodeId, msg: &str, ) { - self.buffered_lints - .borrow_mut() - .push(BufferedEarlyLint{ + self.buffered_lints.with_lock(|buffered_lints| { + buffered_lints.push(BufferedEarlyLint{ span: span.into(), id, msg: msg.into(), lint_id, }); + }); } } |
