File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
compiler/rustc_middle/src/mir Expand file tree Collapse file tree 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> {
20172017 from_end : bool ,
20182018 } ,
20192019
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.
20232021 ///
20242022 /// The included Symbol is the name of the variant, used for printing MIR.
20252023 Downcast ( Option < Symbol > , VariantIdx ) ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use rustc_target::abi::VariantIdx;
1212#[ derive( Copy , Clone , Debug , TypeFoldable ) ]
1313pub struct PlaceTy < ' tcx > {
1414 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.
1616 pub variant_index : Option < VariantIdx > ,
1717}
1818
You can’t perform that action at this time.
0 commit comments