diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-17 13:00:35 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-21 20:33:55 +0000 |
| commit | ec8d01fdccbe68d9a2ad6f2c2fbe000a9a6da530 (patch) | |
| tree | 1c7aced8f51ff8c698b9218529b5bfc168c1159f /compiler/rustc_monomorphize/src | |
| parent | bd40c10751baf6c0c5fc52c99900c0b9066ed11b (diff) | |
| download | rust-ec8d01fdccbe68d9a2ad6f2c2fbe000a9a6da530.tar.gz rust-ec8d01fdccbe68d9a2ad6f2c2fbe000a9a6da530.zip | |
Allow iterators instead of requiring slices that will get turned into iterators
Diffstat (limited to 'compiler/rustc_monomorphize/src')
| -rw-r--r-- | compiler/rustc_monomorphize/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/lib.rs b/compiler/rustc_monomorphize/src/lib.rs index 669599a424a..8eb489bb596 100644 --- a/compiler/rustc_monomorphize/src/lib.rs +++ b/compiler/rustc_monomorphize/src/lib.rs @@ -29,7 +29,7 @@ fn custom_coerce_unsize_info<'tcx>( ) -> CustomCoerceUnsized { let def_id = tcx.require_lang_item(LangItem::CoerceUnsized, None); - let trait_ref = ty::Binder::dummy(tcx.mk_trait_ref(def_id, source_ty, &[target_ty.into()])); + let trait_ref = ty::Binder::dummy(tcx.mk_trait_ref(def_id, source_ty, [target_ty.into()])); match tcx.codegen_select_candidate((ty::ParamEnv::reveal_all(), trait_ref)) { Ok(traits::ImplSource::UserDefined(traits::ImplSourceUserDefinedData { |
