@@ -6,8 +6,8 @@ use syntax_pos::DUMMY_SP;
66
77use super :: { ConstKind , Item as ConstCx } ;
88
9- pub fn in_any_value_of_ty ( cx : & ConstCx < ' _ , ' tcx > , ty : Ty < ' tcx > ) -> QualifSet {
10- QualifSet {
9+ pub fn in_any_value_of_ty ( cx : & ConstCx < ' _ , ' tcx > , ty : Ty < ' tcx > ) -> ConstQualifs {
10+ ConstQualifs {
1111 has_mut_interior : HasMutInterior :: in_any_value_of_ty ( cx, ty) ,
1212 needs_drop : NeedsDrop :: in_any_value_of_ty ( cx, ty) ,
1313 }
@@ -26,7 +26,7 @@ pub trait Qualif {
2626 /// Whether this `Qualif` is cleared when a local is moved from.
2727 const IS_CLEARED_ON_MOVE : bool = false ;
2828
29- fn in_qualif_set ( set : & QualifSet ) -> bool ;
29+ fn in_qualifs ( qualifs : & ConstQualifs ) -> bool ;
3030
3131 /// Return the qualification that is (conservatively) correct for any value
3232 /// of the type.
@@ -121,7 +121,7 @@ pub trait Qualif {
121121 Self :: in_any_value_of_ty ( cx, constant. literal . ty )
122122 } else {
123123 let qualifs = cx. tcx . at ( constant. span ) . mir_const_qualif ( def_id) ;
124- let qualif = Self :: in_qualif_set ( & qualifs) ;
124+ let qualif = Self :: in_qualifs ( & qualifs) ;
125125
126126 // Just in case the type is more specific than
127127 // the definition, e.g., impl associated const
@@ -209,8 +209,8 @@ pub struct HasMutInterior;
209209impl Qualif for HasMutInterior {
210210 const ANALYSIS_NAME : & ' static str = "flow_has_mut_interior" ;
211211
212- fn in_qualif_set ( set : & QualifSet ) -> bool {
213- set . has_mut_interior
212+ fn in_qualifs ( qualifs : & ConstQualifs ) -> bool {
213+ qualifs . has_mut_interior
214214 }
215215
216216 fn in_any_value_of_ty ( cx : & ConstCx < ' _ , ' tcx > , ty : Ty < ' tcx > ) -> bool {
@@ -278,8 +278,8 @@ impl Qualif for NeedsDrop {
278278 const ANALYSIS_NAME : & ' static str = "flow_needs_drop" ;
279279 const IS_CLEARED_ON_MOVE : bool = true ;
280280
281- fn in_qualif_set ( set : & QualifSet ) -> bool {
282- set . needs_drop
281+ fn in_qualifs ( qualifs : & ConstQualifs ) -> bool {
282+ qualifs . needs_drop
283283 }
284284
285285 fn in_any_value_of_ty ( cx : & ConstCx < ' _ , ' tcx > , ty : Ty < ' tcx > ) -> bool {
0 commit comments