Skip to content

Commit f2e7faf

Browse files
Revert "Use conservative, type-based qualifcation for statics"
This reverts commit ac7a343cef8287427a98b9210cdb1a772486be10.
1 parent 8bfe82b commit f2e7faf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc_mir/transform/check_consts/qualifs.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ pub trait Qualif {
3434
/// of the type.
3535
fn in_any_value_of_ty(_cx: &ConstCx<'_, 'tcx>, _ty: Ty<'tcx>) -> bool;
3636

37-
fn in_static(cx: &ConstCx<'_, 'tcx>, statik: &Static<'tcx>) -> bool {
38-
Self::in_any_value_of_ty(cx, statik.ty)
37+
fn in_static(_cx: &ConstCx<'_, 'tcx>, _static: &Static<'tcx>) -> bool {
38+
// FIXME(eddyb) should we do anything here for value properties?
39+
false
3940
}
4041

4142
fn in_projection_structurally(

0 commit comments

Comments
 (0)