1
Fork 0

Rollup merge of #76784 - lzutao:rd_doc, r=GuillaumeGomez

Add some docs to rustdoc::clean::inline and def_id functions

Split from #76571 .
This commit is contained in:
Dylan DPC 2020-10-07 00:15:58 +02:00 committed by GitHub
commit d26ca984c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -159,6 +159,7 @@ impl DefId {
DefId { krate: LOCAL_CRATE, index }
}
/// Returns whether the item is defined in the crate currently being compiled.
#[inline]
pub fn is_local(self) -> bool {
self.krate == LOCAL_CRATE