diff options
| author | Audun Halland <audun.halland@pm.me> | 2022-03-20 23:31:04 +0100 |
|---|---|---|
| committer | Audun Halland <audun.halland@pm.me> | 2022-03-20 23:31:04 +0100 |
| commit | cd762d869477aa56503d72849f6fb9fe6e8e26b0 (patch) | |
| tree | 1e4c4c74e4b42593861b146809d2dab9de4750fe | |
| parent | c84f39e6c08397d4ab9b51b472002a8bfc3b5b59 (diff) | |
| download | rust-cd762d869477aa56503d72849f6fb9fe6e8e26b0.tar.gz rust-cd762d869477aa56503d72849f6fb9fe6e8e26b0.zip | |
fix two comments referring to moved code (rustc_mir_transform::generator)
| -rw-r--r-- | compiler/rustc_middle/src/ty/sty.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_typeck/src/check/generator_interior.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs index b5bc4893ef3..93ece753728 100644 --- a/compiler/rustc_middle/src/ty/sty.rs +++ b/compiler/rustc_middle/src/ty/sty.rs @@ -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 diff --git a/compiler/rustc_typeck/src/check/generator_interior.rs b/compiler/rustc_typeck/src/check/generator_interior.rs index e9537af25a0..e584c9ad201 100644 --- a/compiler/rustc_typeck/src/check/generator_interior.rs +++ b/compiler/rustc_typeck/src/check/generator_interior.rs @@ -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; |
