diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-10-07 00:15:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-07 00:15:58 +0200 |
| commit | d26ca984c32152d97eee51b7a7a400b75d2fff68 (patch) | |
| tree | c674a93588e7d629b013f255c419f24828c5047c /compiler/rustc_span | |
| parent | 9fdaeb393a16951f6fdef087193fef576e36aba6 (diff) | |
| parent | 63e72348d192dfedfb84510a88099cd6523c187b (diff) | |
| download | rust-d26ca984c32152d97eee51b7a7a400b75d2fff68.tar.gz rust-d26ca984c32152d97eee51b7a7a400b75d2fff68.zip | |
Rollup merge of #76784 - lzutao:rd_doc, r=GuillaumeGomez
Add some docs to rustdoc::clean::inline and def_id functions Split from #76571 .
Diffstat (limited to 'compiler/rustc_span')
| -rw-r--r-- | compiler/rustc_span/src/def_id.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/def_id.rs b/compiler/rustc_span/src/def_id.rs index aae778217d3..b24ede9c53a 100644 --- a/compiler/rustc_span/src/def_id.rs +++ b/compiler/rustc_span/src/def_id.rs @@ -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 |
