about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/transform
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-11-17 13:00:35 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-11-21 20:33:55 +0000
commitec8d01fdccbe68d9a2ad6f2c2fbe000a9a6da530 (patch)
tree1c7aced8f51ff8c698b9218529b5bfc168c1159f /compiler/rustc_const_eval/src/transform
parentbd40c10751baf6c0c5fc52c99900c0b9066ed11b (diff)
downloadrust-ec8d01fdccbe68d9a2ad6f2c2fbe000a9a6da530.tar.gz
rust-ec8d01fdccbe68d9a2ad6f2c2fbe000a9a6da530.zip
Allow iterators instead of requiring slices that will get turned into iterators
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
-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 8c43f93a917..4f1878a3f25 100644
--- a/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs
+++ b/compiler/rustc_const_eval/src/transform/check_consts/qualifs.rs
@@ -160,7 +160,7 @@ impl Qualif for NeedsNonConstDrop {
             ObligationCause::dummy(),
             cx.param_env,
             ty::Binder::dummy(ty::TraitPredicate {
-                trait_ref: cx.tcx.mk_trait_ref(destruct, ty, &[]),
+                trait_ref: cx.tcx.mk_trait_ref(destruct, ty, []),
                 constness: ty::BoundConstness::ConstIfConst,
                 polarity: ty::ImplPolarity::Positive,
             }),