dump lints _after_ parsing macros
This commit is contained in:
parent
b206aedb1b
commit
6cb09ccf9f
2 changed files with 12 additions and 10 deletions
|
@ -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,
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue