Improve terminology around "after typeck"
This commit is contained in:
@@ -864,7 +864,7 @@ pub struct LocalDecl<'tcx> {
|
||||
/// across a suspension point against the type components of the generator
|
||||
/// which type checking knows are live across a suspension point. We need to
|
||||
/// flag drop flags to avoid triggering this check as they are introduced
|
||||
/// after typeck.
|
||||
/// outside of type inference.
|
||||
///
|
||||
/// This should be sound because the drop flags are fully algebraic, and
|
||||
/// therefore don't affect the auto-trait or outlives properties of the
|
||||
|
||||
@@ -211,7 +211,7 @@ pub struct CommonLifetimes<'tcx> {
|
||||
/// `ReStatic`
|
||||
pub re_static: Region<'tcx>,
|
||||
|
||||
/// Erased region, used after type-checking
|
||||
/// Erased region, used outside of type inference.
|
||||
pub re_erased: Region<'tcx>,
|
||||
}
|
||||
|
||||
@@ -351,7 +351,7 @@ pub struct TypeckResults<'tcx> {
|
||||
field_indices: ItemLocalMap<usize>,
|
||||
|
||||
/// Stores the types for various nodes in the AST. Note that this table
|
||||
/// is not guaranteed to be populated until after typeck. See
|
||||
/// is not guaranteed to be populated outside inference. See
|
||||
/// typeck::check::fn_ctxt for details.
|
||||
node_types: ItemLocalMap<Ty<'tcx>>,
|
||||
|
||||
|
||||
@@ -16,8 +16,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>,
|
||||
|
||||
@@ -1391,11 +1391,11 @@ pub enum RegionKind {
|
||||
/// Static data that has an "infinite" lifetime. Top in the region lattice.
|
||||
ReStatic,
|
||||
|
||||
/// A region variable. Should not exist after typeck.
|
||||
/// A region variable. Should not exist outside of type inference.
|
||||
ReVar(RegionVid),
|
||||
|
||||
/// A placeholder region -- basically, the higher-ranked version of `ReFree`.
|
||||
/// Should not exist after typeck.
|
||||
/// Should not exist outside of type inference.
|
||||
RePlaceholder(ty::PlaceholderRegion),
|
||||
|
||||
/// Empty lifetime is for data that is never accessed. We tag the
|
||||
|
||||
Reference in New Issue
Block a user