Use conservative, type-based qualifcation for statics

This commit is contained in:
Dylan MacKenzie 2019-09-25 11:56:31 -07:00
parent 2f5ea633d4
commit dcecefcb71

View file

@ -32,9 +32,8 @@ pub trait Qualif {
/// of the type.
fn in_any_value_of_ty(_cx: &ConstCx<'_, 'tcx>, _ty: Ty<'tcx>) -> bool;
fn in_static(_cx: &ConstCx<'_, 'tcx>, _static: &Static<'tcx>) -> bool {
// FIXME(eddyb) should we do anything here for value properties?
false
fn in_static(cx: &ConstCx<'_, 'tcx>, statik: &Static<'tcx>) -> bool {
Self::in_any_value_of_ty(cx, statik.ty)
}
fn in_projection_structurally(