We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f786179 + 50a067d commit dff600dCopy full SHA for dff600d
src/base.rs
@@ -682,7 +682,6 @@ fn codegen_stmt<'tcx>(
682
args,
683
ty::ClosureKind::FnOnce,
684
)
685
- .expect("failed to normalize and resolve closure during codegen")
686
.polymorphize(fx.tcx);
687
let func_ref = fx.get_function_ref(instance);
688
let func_addr = fx.bcx.ins().func_addr(fx.pointer_type, func_ref);
src/intrinsics/mod.rs
@@ -443,6 +443,12 @@ fn codegen_regular_intrinsic_call<'tcx>(
443
444
ret.write_cvalue(fx, a);
445
}
446
+ sym::is_val_statically_known => {
447
+ intrinsic_args!(fx, args => (_a); intrinsic);
448
+
449
+ let res = fx.bcx.ins().iconst(types::I8, 0);
450
+ ret.write_cvalue(fx, CValue::by_val(res, ret.layout()));
451
+ }
452
sym::breakpoint => {
453
intrinsic_args!(fx, args => (); intrinsic);
454
0 commit comments