]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/ty/normalize_erasing_regions.rs
Rollup merge of #90277 - pierwill:fix-70258-inference-terms, r=jackh726
[rust.git] / compiler / rustc_middle / src / ty / normalize_erasing_regions.rs
index 84ab42a760b933a785b9482949f539c9c7aa6c30..b3b2bb4459f7df376a5aeb6c07b2f8332956e879 100644 (file)
@@ -34,8 +34,8 @@ impl<'tcx> TyCtxt<'tcx> {
     /// Erase the regions in `value` and then fully normalize all the
     /// types found within. The result will also have regions erased.
     ///
-    /// This is appropriate to use only after type-check: it assumes
-    /// that normalization will succeed, for example.
+    /// This should only be used outside of type inference. For example,
+    /// it assumes that normalization will succeed.
     pub fn normalize_erasing_regions<T>(self, param_env: ty::ParamEnv<'tcx>, value: T) -> T
     where
         T: TypeFoldable<'tcx>,