about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2021-01-05 19:46:51 -0800
committerGitHub <noreply@github.com>2021-01-05 19:46:51 -0800
commit7428e2d1349fe03da821ee2181ccf7395b9cfe30 (patch)
tree88caff0481d178225b271ea7a1cc1409afd229a6 /src/librustdoc
parente636805eee49ff2e8bc30429ab91a8e2508656b3 (diff)
downloadrust-7428e2d1349fe03da821ee2181ccf7395b9cfe30.tar.gz
rust-7428e2d1349fe03da821ee2181ccf7395b9cfe30.zip
Apply suggestions from code review
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
Diffstat (limited to 'src/librustdoc')
-rw-r--r--src/librustdoc/clean/types.rs2
-rw-r--r--src/librustdoc/core.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs
index 0364bfd5951..38791fcea54 100644
--- a/src/librustdoc/clean/types.rs
+++ b/src/librustdoc/clean/types.rs
@@ -293,7 +293,7 @@ impl Item {
 
     /// See the documentation for [`next_def_id()`].
     ///
-    /// [`next_def_id()`]: crate::core::DocContext::next_def_id()
+    /// [`next_def_id()`]: DocContext::next_def_id()
     crate fn is_fake(&self) -> bool {
         MAX_DEF_ID.with(|m| {
             m.borrow().get(&self.def_id.krate).map(|id| self.def_id >= *id).unwrap_or(false)
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs
index ac3b8895996..43aaefa0870 100644
--- a/src/librustdoc/core.rs
+++ b/src/librustdoc/core.rs
@@ -123,7 +123,7 @@ impl<'tcx> DocContext<'tcx> {
     /// Create a new "fake" [`DefId`].
     ///
     /// This is an ugly hack, but it's the simplest way to handle synthetic impls without greatly
-    /// refactoring either `librustdoc` or [`rustc_middle`]. In particular, allowing new [`DefId`]s
+    /// refactoring either rustdoc or [`rustc_middle`]. In particular, allowing new [`DefId`]s
     /// to be registered after the AST is constructed would require storing the [`DefId`] mapping
     /// in a [`RefCell`], decreasing the performance for normal compilation for very little gain.
     ///