Only permit taking buffered lints inside lint internals
This commit is contained in:
parent
f530156ef5
commit
1bd6b48914
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
self.map.remove(&id).unwrap_or_default()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue