about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/base.rs
diff options
context:
space:
mode:
authorBoxy <supbscripter@gmail.com>2023-04-27 08:34:11 +0100
committerBoxy <supbscripter@gmail.com>2023-04-27 08:35:19 +0100
commitf04b8fe0af291a444ecfcf774337966a5cc9d7db (patch)
tree3b983a3805c4275580f8ac059910de6429875bbd /compiler/rustc_codegen_cranelift/src/base.rs
parente3ccd4b9a51ded19bf1c3f6c647c96b6dd52eced (diff)
downloadrust-f04b8fe0af291a444ecfcf774337966a5cc9d7db.tar.gz
rust-f04b8fe0af291a444ecfcf774337966a5cc9d7db.zip
rename `needs_infer` to `has_infer`
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/base.rs')
-rw-r--r--compiler/rustc_codegen_cranelift/src/base.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/base.rs b/compiler/rustc_codegen_cranelift/src/base.rs
index 98ba23c6f57..c181c73e4be 100644
--- a/compiler/rustc_codegen_cranelift/src/base.rs
+++ b/compiler/rustc_codegen_cranelift/src/base.rs
@@ -28,7 +28,7 @@ pub(crate) fn codegen_fn<'tcx>(
     module: &mut dyn Module,
     instance: Instance<'tcx>,
 ) -> CodegenedFunction {
-    debug_assert!(!instance.substs.needs_infer());
+    debug_assert!(!instance.substs.has_infer());
 
     let symbol_name = tcx.symbol_name(instance).name.to_string();
     let _timer = tcx.prof.generic_activity_with_arg("codegen fn", &*symbol_name);