Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f10803c

Browse files
committed
Minor fixes
1 parent 1c6a935 commit f10803c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustc_codegen_ssa/mir/block.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
975975
}
976976
}
977977
mir::InlineAsmOperand::SymFn { ref value } => {
978-
if let ty::FnDef(def_id, substs) = value.literal.ty.kind {
978+
let literal = self.monomorphize(&value.literal);
979+
if let ty::FnDef(def_id, substs) = literal.ty.kind {
979980
let instance = ty::Instance::resolve(
980981
bx.tcx(),
981982
ty::ParamEnv::reveal_all(),

src/librustc_feature/active.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ declare_features! (
228228
(active, hexagon_target_feature, "1.27.0", Some(44839), None),
229229
(active, powerpc_target_feature, "1.27.0", Some(44839), None),
230230
(active, mips_target_feature, "1.27.0", Some(44839), None),
231-
(active, riscv_target_feature, "1.27.0", Some(44839), None),
232231
(active, avx512_target_feature, "1.27.0", Some(44839), None),
233232
(active, mmx_target_feature, "1.27.0", Some(44839), None),
234233
(active, sse4a_target_feature, "1.27.0", Some(44839), None),
@@ -239,6 +238,7 @@ declare_features! (
239238
(active, movbe_target_feature, "1.34.0", Some(44839), None),
240239
(active, rtm_target_feature, "1.35.0", Some(44839), None),
241240
(active, f16c_target_feature, "1.36.0", Some(44839), None),
241+
(active, riscv_target_feature, "1.45.0", Some(44839), None),
242242

243243
// -------------------------------------------------------------------------
244244
// feature-group-end: actual feature gates (target features)

0 commit comments

Comments
 (0)