Skip to content

Commit adc700b

Browse files
committed
update doc links
1 parent 8eb2b75 commit adc700b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

compiler/rustc_hir_analysis/src/collect.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,12 @@ pub fn provide(providers: &mut Providers) {
100100
/// It's also used for the bodies of items like structs where the body (the fields)
101101
/// are just signatures.
102102
///
103-
/// This is in contrast to [`FnCtxt`], which is used to type-check bodies of
103+
/// This is in contrast to `FnCtxt`, which is used to type-check bodies of
104104
/// functions, closures, and `const`s -- anywhere that expressions and statements show up.
105105
///
106106
/// An important thing to note is that `ItemCtxt` does no inference -- it has no [`InferCtxt`] --
107107
/// while `FnCtxt` does do inference.
108108
///
109-
/// [`FnCtxt`]: crate::check::FnCtxt
110109
/// [`InferCtxt`]: rustc_infer::infer::InferCtxt
111110
///
112111
/// # Trait predicates

compiler/rustc_hir_typeck/src/fn_ctxt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use std::ops::Deref;
3535
///
3636
/// See [`ItemCtxt`]'s docs for more.
3737
///
38-
/// [`ItemCtxt`]: crate::collect::ItemCtxt
38+
/// [`ItemCtxt`]: rustc_hir_analysis::collect::ItemCtxt
3939
/// [`InferCtxt`]: infer::InferCtxt
4040
pub struct FnCtxt<'a, 'tcx> {
4141
pub(super) body_id: hir::HirId,

0 commit comments

Comments
 (0)