|
178 | 178 | //! this is not implemented however: a mono item will be produced |
179 | 179 | //! regardless of whether it is actually needed or not. |
180 | 180 |
|
181 | | -use crate::monomorphize; |
182 | | - |
183 | 181 | use rustc_data_structures::fx::{FxHashMap, FxHashSet}; |
184 | 182 | use rustc_data_structures::sync::{par_iter, MTLock, MTRef, ParallelIterator}; |
185 | 183 | use rustc_errors::{ErrorReported, FatalError}; |
@@ -1052,7 +1050,7 @@ fn find_vtable_types_for_unsizing<'tcx>( |
1052 | 1050 | assert_eq!(source_adt_def, target_adt_def); |
1053 | 1051 |
|
1054 | 1052 | let CustomCoerceUnsized::Struct(coerce_index) = |
1055 | | - monomorphize::custom_coerce_unsize_info(tcx, source_ty, target_ty); |
| 1053 | + crate::custom_coerce_unsize_info(tcx, source_ty, target_ty); |
1056 | 1054 |
|
1057 | 1055 | let source_fields = &source_adt_def.non_enum_variant().fields; |
1058 | 1056 | let target_fields = &target_adt_def.non_enum_variant().fields; |
@@ -1085,7 +1083,7 @@ fn create_fn_mono_item<'tcx>( |
1085 | 1083 | let def_id = instance.def_id(); |
1086 | 1084 | if tcx.sess.opts.debugging_opts.profile_closures && def_id.is_local() && tcx.is_closure(def_id) |
1087 | 1085 | { |
1088 | | - monomorphize::util::dump_closure_profile(tcx, instance); |
| 1086 | + crate::util::dump_closure_profile(tcx, instance); |
1089 | 1087 | } |
1090 | 1088 |
|
1091 | 1089 | respan(source, MonoItem::Fn(instance.polymorphize(tcx))) |
|
0 commit comments