Skip to content

Commit 71362c7

Browse files
committed
remove FIXME and add test
1 parent ce5ed5b commit 71362c7

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs

-2
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,6 @@ where
344344
};
345345

346346
// Check the qualifs of the value of `const` items.
347-
// FIXME(valtrees): check whether const qualifs should behave the same
348-
// way for type and mir constants.
349347
let uneval = match constant.literal {
350348
ConstantKind::Ty(ct)
351349
if matches!(

tests/ui/match/issue-113012.rs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// run-pass
2+
3+
#![allow(dead_code)]
4+
struct Foo(());
5+
6+
const FOO: Foo = Foo(match 0 {
7+
0.. => (),
8+
_ => (),
9+
});
10+
11+
fn main() {
12+
}

0 commit comments

Comments
 (0)