]> git.lizzy.rs Git - rust.git/commitdiff
update doc links
authorlcnr <rust@lcnr.de>
Thu, 20 Oct 2022 21:47:49 +0000 (23:47 +0200)
committerlcnr <rust@lcnr.de>
Thu, 20 Oct 2022 21:47:49 +0000 (23:47 +0200)
compiler/rustc_hir_analysis/src/collect.rs
compiler/rustc_hir_typeck/src/fn_ctxt/mod.rs

index 5c76016c6625883110b62875d45eb390479eb6a3..66ca7d7aa08f9cd1d23bfb0ab1afa32d4f684453 100644 (file)
@@ -100,13 +100,12 @@ pub fn provide(providers: &mut Providers) {
 /// It's also used for the bodies of items like structs where the body (the fields)
 /// are just signatures.
 ///
-/// This is in contrast to [`FnCtxt`], which is used to type-check bodies of
+/// This is in contrast to `FnCtxt`, which is used to type-check bodies of
 /// functions, closures, and `const`s -- anywhere that expressions and statements show up.
 ///
 /// An important thing to note is that `ItemCtxt` does no inference -- it has no [`InferCtxt`] --
 /// while `FnCtxt` does do inference.
 ///
-/// [`FnCtxt`]: crate::check::FnCtxt
 /// [`InferCtxt`]: rustc_infer::infer::InferCtxt
 ///
 /// # Trait predicates
index a8004d90a4522e209309b6aa156bb8fc07196373..0c600daf4459e8e6886f6042f927eb4b2e78a549 100644 (file)
@@ -35,7 +35,7 @@
 ///
 /// See [`ItemCtxt`]'s docs for more.
 ///
-/// [`ItemCtxt`]: crate::collect::ItemCtxt
+/// [`ItemCtxt`]: rustc_hir_analysis::collect::ItemCtxt
 /// [`InferCtxt`]: infer::InferCtxt
 pub struct FnCtxt<'a, 'tcx> {
     pub(super) body_id: hir::HirId,