Skip to content

Commit 7428e2d

Browse files
camelidJoshua Nelson
and
Joshua Nelson
authored
Apply suggestions from code review
Co-authored-by: Joshua Nelson <[email protected]>
1 parent e636805 commit 7428e2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustdoc/clean/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl Item {
293293

294294
/// See the documentation for [`next_def_id()`].
295295
///
296-
/// [`next_def_id()`]: crate::core::DocContext::next_def_id()
296+
/// [`next_def_id()`]: DocContext::next_def_id()
297297
crate fn is_fake(&self) -> bool {
298298
MAX_DEF_ID.with(|m| {
299299
m.borrow().get(&self.def_id.krate).map(|id| self.def_id >= *id).unwrap_or(false)

src/librustdoc/core.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl<'tcx> DocContext<'tcx> {
123123
/// Create a new "fake" [`DefId`].
124124
///
125125
/// This is an ugly hack, but it's the simplest way to handle synthetic impls without greatly
126-
/// refactoring either `librustdoc` or [`rustc_middle`]. In particular, allowing new [`DefId`]s
126+
/// refactoring either rustdoc or [`rustc_middle`]. In particular, allowing new [`DefId`]s
127127
/// to be registered after the AST is constructed would require storing the [`DefId`] mapping
128128
/// in a [`RefCell`], decreasing the performance for normal compilation for very little gain.
129129
///

0 commit comments

Comments
 (0)