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:
commit
d26ca984c3
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue