Skip to content

Commit c833a9b

Browse files
committed
update comment
1 parent 01ad0ad commit c833a9b

File tree

1 file changed

+4
-7
lines changed
  • compiler/rustc_infer/src/infer/higher_ranked

1 file changed

+4
-7
lines changed

compiler/rustc_infer/src/infer/higher_ranked/mod.rs

+4-7
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,11 @@ impl<'a, 'tcx> CombineFields<'a, 'tcx> {
5858
}
5959

6060
impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
61-
/// Replaces all regions (resp. types) bound by `binder` with placeholder
62-
/// regions (resp. types) and return a map indicating which bound-region
63-
/// placeholder region. This is the first step of checking subtyping
64-
/// when higher-ranked things are involved.
61+
/// Replaces all bound variables (lifetimes, types, and constants) bound by
62+
/// `binder` with placeholder variables.
6563
///
66-
/// **Important:** You have to be careful to not leak these placeholders,
67-
/// for more information about how placeholders and HRTBs work, see
68-
/// the [rustc dev guide].
64+
/// This is the first step of checking subtyping when higher-ranked things are involved.
65+
/// For more details visit the relevant sections of the [rustc dev guide].
6966
///
7067
/// [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/traits/hrtb.html
7168
pub fn replace_bound_vars_with_placeholders<T>(&self, binder: ty::Binder<'tcx, T>) -> T

0 commit comments

Comments
 (0)