File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ pub(crate) fn get_function_sig<'tcx>(
70
70
default_call_conv : CallConv ,
71
71
inst : Instance < ' tcx > ,
72
72
) -> Signature {
73
- assert ! ( !inst. substs. needs_infer ( ) ) ;
73
+ assert ! ( !inst. substs. has_infer ( ) ) ;
74
74
clif_sig_from_fn_abi (
75
75
tcx,
76
76
default_call_conv,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub(crate) fn codegen_fn<'tcx>(
28
28
module : & mut dyn Module ,
29
29
instance : Instance < ' tcx > ,
30
30
) -> CodegenedFunction {
31
- debug_assert ! ( !instance. substs. needs_infer ( ) ) ;
31
+ debug_assert ! ( !instance. substs. has_infer ( ) ) ;
32
32
33
33
let symbol_name = tcx. symbol_name ( instance) . name . to_string ( ) ;
34
34
let _timer = tcx. prof . generic_activity_with_arg ( "codegen fn" , & * symbol_name) ;
You can’t perform that action at this time.
0 commit comments