Skip to content

Commit 43f2b16

Browse files
committed
rename needs_infer to has_infer
1 parent 403ebdc commit 43f2b16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/callee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::context::CodegenCx;
1717
pub fn get_fn<'gcc, 'tcx>(cx: &CodegenCx<'gcc, 'tcx>, instance: Instance<'tcx>) -> Function<'gcc> {
1818
let tcx = cx.tcx();
1919

20-
assert!(!instance.substs.needs_infer());
20+
assert!(!instance.substs.has_infer());
2121
assert!(!instance.substs.has_escaping_bound_vars());
2222

2323
let sym = tcx.symbol_name(instance).name;

src/mono_item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl<'gcc, 'tcx> PreDefineMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
3131

3232
#[cfg_attr(not(feature="master"), allow(unused_variables))]
3333
fn predefine_fn(&self, instance: Instance<'tcx>, linkage: Linkage, visibility: Visibility, symbol_name: &str) {
34-
assert!(!instance.substs.needs_infer());
34+
assert!(!instance.substs.has_infer());
3535

3636
let fn_abi = self.fn_abi_of_instance(instance, ty::List::empty());
3737
self.linkage.set(base::linkage_to_gcc(linkage));

0 commit comments

Comments
 (0)