This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
rustc_hir_typeck/src/fn_ctxt Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
4040pub struct FnCtxt < ' a , ' tcx > {
4141 pub ( super ) body_id : hir:: HirId ,
You can’t perform that action at this time.
0 commit comments