Skip to content

Commit fa637fa

Browse files
Only permit taking buffered lints inside lint internals
1 parent 949874a commit fa637fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/lint/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ impl LintBuffer {
643643
}
644644
}
645645

646-
pub fn take(&mut self, id: ast::NodeId) -> Vec<BufferedEarlyLint> {
646+
fn take(&mut self, id: ast::NodeId) -> Vec<BufferedEarlyLint> {
647647
self.map.remove(&id).unwrap_or_default()
648648
}
649649
}

0 commit comments

Comments
 (0)