Only permit taking buffered lints inside lint internals

This commit is contained in:
Mark Rousskov 2019-10-25 08:08:53 -04:00
parent f530156ef5
commit 1bd6b48914

View file

@ -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()
}
}