about summary refs log tree commit diff
path: root/compiler/rustc_const_eval
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-06-16 00:43:16 +0000
committerMichael Goulet <michael@errs.io>2023-06-17 03:32:45 +0000
commit9e68b6f50515ef2e402c7b945bc2041d5cbaa5ca (patch)
tree5a599b04f05343bba9e374400c2386e7c3cff483 /compiler/rustc_const_eval
parent1704481bfa782409e77307149c59c87356b5a262 (diff)
downloadrust-9e68b6f50515ef2e402c7b945bc2041d5cbaa5ca.tar.gz
rust-9e68b6f50515ef2e402c7b945bc2041d5cbaa5ca.zip
Simplify some impl source candidates
Diffstat (limited to 'compiler/rustc_const_eval')
-rw-r--r--compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs
index 1da20579021..a2d23425f3b 100644
--- a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs
+++ b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs
@@ -172,7 +172,7 @@ impl Qualif for NeedsNonConstDrop {
 
         if !matches!(
             impl_src,
-            ImplSource::ConstDestruct(_) | ImplSource::Param(_, ty::BoundConstness::ConstIfConst)
+            ImplSource::Builtin(_) | ImplSource::Param(_, ty::BoundConstness::ConstIfConst)
         ) {
             // If our const destruct candidate is not ConstDestruct or implied by the param env,
             // then it's bad