about summary refs log tree commit diff
path: root/compiler/rustc_const_eval
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2021-10-02 12:59:26 +0100
committerGary Guo <gary@garyguo.net>2021-11-07 03:59:06 +0000
commit02c1774cd3e4239c26b67ae78a21a87f4e460fad (patch)
tree7deb64813c4b5b61f7f3d0672789f865a2e6707a /compiler/rustc_const_eval
parent089a016919b0a9daaed9f676804102d6ba3f8f9d (diff)
downloadrust-02c1774cd3e4239c26b67ae78a21a87f4e460fad.tar.gz
rust-02c1774cd3e4239c26b67ae78a21a87f4e460fad.zip
Give inline const separate DefKind
Diffstat (limited to 'compiler/rustc_const_eval')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/eval_queries.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
index 57af0ff0714..6d3a89c0a8a 100644
--- a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
+++ b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
@@ -42,6 +42,7 @@ fn eval_body_using_ecx<'mir, 'tcx>(
                     | DefKind::Static
                     | DefKind::ConstParam
                     | DefKind::AnonConst
+                    | DefKind::InlineConst
                     | DefKind::AssocConst
             ),
         "Unexpected DefKind: {:?}",