Only permit taking buffered lints inside lint internals
This commit is contained in:
parent
f530156ef5
commit
1bd6b48914
@ -643,7 +643,7 @@ impl LintBuffer {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn take(&mut self, id: ast::NodeId) -> Vec<BufferedEarlyLint> {
|
||||
fn take(&mut self, id: ast::NodeId) -> Vec<BufferedEarlyLint> {
|
||||
self.map.remove(&id).unwrap_or_default()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user