File tree 2 files changed +2
-4
lines changed
compiler/rustc_middle/src/mir
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2017,9 +2017,7 @@ pub enum ProjectionElem<V, T> {
2017
2017
from_end : bool ,
2018
2018
} ,
2019
2019
2020
- /// "Downcast" to a variant of an ADT. Currently, we only introduce
2021
- /// this for ADTs with more than one variant. It may be better to
2022
- /// just introduce it always, or always for enums.
2020
+ /// "Downcast" to a variant of an enum or a generator.
2023
2021
///
2024
2022
/// The included Symbol is the name of the variant, used for printing MIR.
2025
2023
Downcast ( Option < Symbol > , VariantIdx ) ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use rustc_target::abi::VariantIdx;
12
12
#[ derive( Copy , Clone , Debug , TypeFoldable ) ]
13
13
pub struct PlaceTy < ' tcx > {
14
14
pub ty : Ty < ' tcx > ,
15
- /// Downcast to a particular variant of an enum, if included.
15
+ /// Downcast to a particular variant of an enum or a generator , if included.
16
16
pub variant_index : Option < VariantIdx > ,
17
17
}
18
18
You can’t perform that action at this time.
0 commit comments