We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f5ea63 commit dcecefcCopy full SHA for dcecefc
src/librustc_mir/transform/check_consts/qualifs.rs
@@ -32,9 +32,8 @@ pub trait Qualif {
32
/// of the type.
33
fn in_any_value_of_ty(_cx: &ConstCx<'_, 'tcx>, _ty: Ty<'tcx>) -> bool;
34
35
- fn in_static(_cx: &ConstCx<'_, 'tcx>, _static: &Static<'tcx>) -> bool {
36
- // FIXME(eddyb) should we do anything here for value properties?
37
- false
+ fn in_static(cx: &ConstCx<'_, 'tcx>, statik: &Static<'tcx>) -> bool {
+ Self::in_any_value_of_ty(cx, statik.ty)
38
}
39
40
fn in_projection_structurally(
0 commit comments