mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
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:
@@ -698,7 +698,7 @@ pub fn discr_ty(&self, tcx: TyCtxt<'tcx>) -> Ty<'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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user