diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-26 10:55:11 +0000 | 
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-26 10:55:11 +0000 | 
| commit | 4f2532fb531919478b2655925cacb614d8c9f569 (patch) | |
| tree | 0301835a02d9d86f42ed4d10f8c065cf4a858e51 /compiler/rustc_monomorphize/src/lib.rs | |
| parent | 071f737a571c2931f9d1a338cd6eb52c5e4bc488 (diff) | |
| download | rust-4f2532fb531919478b2655925cacb614d8c9f569.tar.gz rust-4f2532fb531919478b2655925cacb614d8c9f569.zip | |
Switch `ty::TraitRef::from_lang_item` from using `TyCtxtAt` to `TyCtxt` and a `Span`
Diffstat (limited to 'compiler/rustc_monomorphize/src/lib.rs')
| -rw-r--r-- | compiler/rustc_monomorphize/src/lib.rs | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/compiler/rustc_monomorphize/src/lib.rs b/compiler/rustc_monomorphize/src/lib.rs index c71ee8e74d1..7253acf61e6 100644 --- a/compiler/rustc_monomorphize/src/lib.rs +++ b/compiler/rustc_monomorphize/src/lib.rs @@ -31,8 +31,9 @@ fn custom_coerce_unsize_info<'tcx>( target_ty: Ty<'tcx>, ) -> CustomCoerceUnsized { let trait_ref = ty::Binder::dummy(ty::TraitRef::from_lang_item( - tcx, + tcx.tcx, LangItem::CoerceUnsized, + tcx.span, [source_ty, target_ty], )); | 
