Auto merge of #95156 - audunhalland:fix-rustc_const_eval_transform-comments, r=Dylan-DPC

fix two comments referring to moved code (now rustc_mir_transform::generator)

This caused me some confusion when trying to find the related code.
This commit is contained in:
bors 2022-03-21 00:14:29 +00:00
commit eded76b6f1
2 changed files with 2 additions and 2 deletions

View file

@ -698,7 +698,7 @@ impl<'tcx> GeneratorSubsts<'tcx> {
}
/// This returns the types of the MIR locals which had to be stored across suspension points.
/// It is calculated in rustc_const_eval::transform::generator::StateTransform.
/// It is calculated in rustc_mir_transform::generator::StateTransform.
/// All the types here must be in the tuple in GeneratorInterior.
///
/// The locals are grouped by their variant number. Note that some locals may

View file

@ -1,6 +1,6 @@
//! This calculates the types which has storage which lives across a suspension point in a
//! generator from the perspective of typeck. The actual types used at runtime
//! is calculated in `rustc_const_eval::transform::generator` and may be a subset of the
//! is calculated in `rustc_mir_transform::generator` and may be a subset of the
//! types computed here.
use self::drop_ranges::DropRanges;