mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 07:13:24 +03:00
Make doctests collect and emit the unused externs
This commit is contained in:
@@ -485,6 +485,10 @@ pub fn get(&self, key: &str) -> Option<&ExternEntry> {
|
||||
pub fn iter(&self) -> BTreeMapIter<'_, String, ExternEntry> {
|
||||
self.0.iter()
|
||||
}
|
||||
|
||||
pub fn len(&self) -> usize {
|
||||
self.0.len()
|
||||
}
|
||||
}
|
||||
|
||||
impl ExternEntry {
|
||||
|
||||
Reference in New Issue
Block a user