diff --git a/src/librustc/lint/mod.rs b/src/librustc/lint/mod.rs index 3b460c29b0c..49a90aee245 100644 --- a/src/librustc/lint/mod.rs +++ b/src/librustc/lint/mod.rs @@ -643,7 +643,7 @@ impl LintBuffer { } } - pub fn take(&mut self, id: ast::NodeId) -> Vec { + fn take(&mut self, id: ast::NodeId) -> Vec { self.map.remove(&id).unwrap_or_default() } }