Revert "Use conservative, type-based qualifcation for statics"

This reverts commit ac7a343cef8287427a98b9210cdb1a772486be10.
This commit is contained in:
Dylan MacKenzie 2019-09-25 14:56:50 -07:00
parent 8bfe82bfad
commit f2e7faf153

View file

@ -34,8 +34,9 @@ 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>, statik: &Static<'tcx>) -> bool {
Self::in_any_value_of_ty(cx, statik.ty)
fn in_static(_cx: &ConstCx<'_, 'tcx>, _static: &Static<'tcx>) -> bool {
// FIXME(eddyb) should we do anything here for value properties?
false
}
fn in_projection_structurally(